Skip to content

Commit

Permalink
StudentSupportCallForm: Implement initial ipa-pill component #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Jan 16, 2018
1 parent 99fb488 commit ff5532e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Empty file.
11 changes: 11 additions & 0 deletions app/shared/directives/ipaPill/ipaPill.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="ipa-pill">
<div class="ipa-pill__text">
{{ text }}
</div>
<div
class="ipa-pill__delete-container"
ng-show="canDelete"
ng-click="onDelete()">
<i class="ipa-pill__delete-btn glyphicon glyphicon-remove"></i>
</div>
</div>
15 changes: 15 additions & 0 deletions app/shared/directives/ipaPill/ipaPill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sharedApp.directive("ipaPill", this.ipaPill = function () {
return {
restrict: 'E',
templateUrl: 'ipaPill.html',
replace: true,
scope: {
canDelete: '<?',
onDelete: '&?',
text: '<?'
},
link: function(scope, element, attrs) {
// Intentionally empty
}
};
});

0 comments on commit ff5532e

Please sign in to comment.