-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from dawoe/feature/icon-component
#19 use umb-icon component
- Loading branch information
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
56 changes: 28 additions & 28 deletions
56
src/Dawoe.OEmbedPickerPropertyEditor.UI/wwwroot/views/editor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |