Skip to content

Commit

Permalink
StudentSupportCallForm: add ipaInput shared component #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Jan 16, 2018
1 parent 1f0e790 commit 0f9aa3e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/shared/directives/ipaInput/ipaInput.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.ipa-input {
border: 1px solid #d9d9d9;
border-top-color: #c0c0c0;
background-color: white;
border-radius: 3px;
box-sizing: border-box;
height: 31px;
width: 100%;
padding: 5px;
}

.ipa-input:hover {
border-color: #b9b9b9;
border-top-color: #a0a0a0;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.ipa-input:focus {
outline: 0;
border-color: #4d90fe;
}
2 changes: 2 additions & 0 deletions app/shared/directives/ipaInput/ipaInput.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<input class="ipa-input" ng-model="value">
</input>
14 changes: 14 additions & 0 deletions app/shared/directives/ipaInput/ipaInput.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sharedApp.directive("ipaInput", this.ipaInput = function () {
return {
restrict: 'E',
templateUrl: 'ipaInput.html',
replace: true,
scope: {
onUpdate: '&?',
value: '='
},
link: function(scope, element, attrs) {
// Intentionally empty
}
};
});

0 comments on commit 0f9aa3e

Please sign in to comment.