Skip to content

Commit

Permalink
Merge pull request #26 from dawoe/feature/icon-component
Browse files Browse the repository at this point in the history
#19 use umb-icon component
  • Loading branch information
dawoe authored Jul 25, 2022
2 parents bc4b05b + bbd0bba commit 78bade5
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/Dawoe.OEmbedPickerPropertyEditor.UI/wwwroot/views/editor.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<div ng-controller="Dawoe.OEmbedPickerEditorController as vm" class="Dawoe-OEmbedPicker umb-property-editor umb-mediapicker umb-mediapicker-multiple">
<ng-form name="vm.oembedform">
<div ui-sortable="sortableOptions" ng-model="vm.items" class="items-container" ng-hide="!model.value">
<div class="umb-sortable-thumbnails umb-table-row" ng-repeat="embed in vm.items track by $index">
<div class="sort-icon" ng-if="vm.allowMultiple === true && vm.items.length > 1">
<i class="icon icon-navigation handle" aria-hidden="true"></i>
</div>
<div class="preview-item">
<span ng-bind-html="vm.trustHtml(embed.preview)"></span>
</div>
<div class="umb-sortable-thumbnails__actions">
<button type="button" class="umb-node-preview__action" ng-click="vm.edit($index, $event)">
<i class="icon icon-edit" aria-hidden="true"></i>
</button>
<button type="button" class="umb-node-preview__action umb-node-preview__action--red" ng-click="vm.remove($index, $event)">
<i class="icon icon-delete" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<div class="picker-btn" ng-hide="vm.allowMultiple === false && vm.items.length == 1">
<button type="button" class="add-link btn-reset umb-outline umb-outline--surrounding add-link-square" ng-click="vm.add($event)">
<i class="icon icon-add large" aria-hidden="true"></i>
</button>
</div>
<input type="hidden" name="itemCount" ng-model="vm.items.length" val-property-validator="vm.validateMandatory" />
</ng-form>
</div>
<div ng-controller="Dawoe.OEmbedPickerEditorController as vm" class="Dawoe-OEmbedPicker umb-property-editor umb-mediapicker umb-mediapicker-multiple">
<ng-form name="vm.oembedform">
<div ui-sortable="sortableOptions" ng-model="vm.items" class="items-container" ng-hide="!model.value">
<div class="umb-sortable-thumbnails umb-table-row" ng-repeat="embed in vm.items track by $index">
<div class="sort-icon" ng-if="vm.allowMultiple === true && vm.items.length > 1">
<umb-icon icon="icon-navigation" class="icon handle"></umb-icon>
</div>
<div class="preview-item">
<span ng-bind-html="vm.trustHtml(embed.preview)"></span>
</div>
<div class="umb-sortable-thumbnails__actions">
<button type="button" class="umb-node-preview__action" ng-click="vm.edit($index, $event)">
<umb-icon icon="icon-edit" class="icon"></umb-icon>
</button>
<button type="button" class="umb-node-preview__action umb-node-preview__action--red" ng-click="vm.remove($index, $event)">
<umb-icon icon="icon-delete" class="icon"></umb-icon>
</button>
</div>
</div>
</div>
<div class="picker-btn" ng-hide="vm.allowMultiple === false && vm.items.length == 1">
<button type="button" class="add-link btn-reset umb-outline umb-outline--surrounding add-link-square" ng-click="vm.add($event)">
<umb-icon icon="icon-add" class="icon large"></umb-icon>
</button>
</div>
<input type="hidden" name="itemCount" ng-model="vm.items.length" val-property-validator="vm.validateMandatory" />
</ng-form>
</div>

0 comments on commit 78bade5

Please sign in to comment.