-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
65 additions
and
43 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
79 changes: 45 additions & 34 deletions
79
src/VirtoCommerce.OrdersModule.Web/Scripts/blades/filter-detail.tpl.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,53 +1,64 @@ | ||
<div class="blade-content"> | ||
<div class="blade-inner"> | ||
<div class="inner-block clearfix"> | ||
<form class="form" name="formScope"> | ||
<legend>{{ 'orders.blades.filter-detail.labels.criteria' | translate }}</legend> | ||
<div class="blade-inner"> | ||
<div class="inner-block clearfix"> | ||
<form class="form" name="formScope"> | ||
<legend>{{ 'orders.blades.filter-detail.labels.criteria' | translate }}</legend> | ||
|
||
<div class="form-group" ng-init="setForm(formScope)"> | ||
<label class="form-label">{{ 'orders.blades.filter-detail.labels.name' | translate }}</label> | ||
<div class="form-input"> | ||
<input ng-model="blade.currentEntity.name" required placeholder="{{ 'orders.blades.filter-detail.labels.name_' | translate }}" /> | ||
</div> | ||
</div> | ||
|
||
<va-metaform registered-inputs="blade.metaFields" blade="blade"></va-metaform> | ||
</form> | ||
<div class="form-group" ng-init="setForm(formScope)"> | ||
<label class="form-label">{{ 'orders.blades.filter-detail.labels.name' | translate }}</label> | ||
<div class="form-input"> | ||
<input ng-model="blade.currentEntity.name" required placeholder="{{ 'orders.blades.filter-detail.labels.name_' | translate }}" /> | ||
</div> | ||
</div> | ||
|
||
<va-metaform registered-inputs="blade.metaFields" blade="blade"></va-metaform> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script type="text/ng-template" id="statusesSelector.html"> | ||
<div class="form-input"> | ||
<ui-select multiple ng-model="blade.currentEntity.statuses"> | ||
<ui-select-match placeholder="{{ 'orders.blades.filter-detail.placeholders.all' | translate }}">{{$item.value}}</ui-select-match> | ||
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}"> | ||
<span ng-bind-html="x.value | highlight: $select.search"></span> | ||
</ui-select-choices> | ||
</ui-select> | ||
</div> | ||
<div class="form-input"> | ||
<ui-select multiple ng-model="blade.currentEntity.statuses"> | ||
<ui-select-match placeholder="{{ 'orders.blades.filter-detail.placeholders.all' | translate }}">{{$item.value}}</ui-select-match> | ||
<ui-select-choices repeat="x.key as x in blade.statuses | filter: {'value': $select.search}"> | ||
<span ng-bind-html="x.value | highlight: $select.search"></span> | ||
</ui-select-choices> | ||
</ui-select> | ||
</div> | ||
</script> | ||
|
||
<script type="text/ng-template" id="storeSelector.html"> | ||
<div class="form-input"> | ||
<va-store-selector multiple ng-model="blade.currentEntity.storeIds" placeholder="'orders.blades.filter-detail.placeholders.all'"></va-store-selector> | ||
</div> | ||
<div class="form-input"> | ||
<va-store-selector multiple ng-model="blade.currentEntity.storeIds" placeholder="'orders.blades.filter-detail.placeholders.all'"></va-store-selector> | ||
</div> | ||
</script> | ||
|
||
<script type="text/ng-template" id="customerSelector.html"> | ||
<div class="form-input"> | ||
<ui-scroll-drop-down data="blade.fetchCustomers(criteria)" | ||
ng-model="blade.currentEntity.customerId" | ||
placeholder="'orders.blades.filter-detail.placeholders.all'"> | ||
</ui-scroll-drop-down> | ||
</div> | ||
<div class="form-input"> | ||
<ui-scroll-drop-down data="blade.fetchCustomers(criteria)" | ||
ng-model="blade.currentEntity.customerId" | ||
placeholder="'orders.blades.filter-detail.placeholders.all'"> | ||
</ui-scroll-drop-down> | ||
</div> | ||
</script> | ||
|
||
<script type="text/ng-template" id="filter-employeeSelector.html"> | ||
<div class="form-input"> | ||
<ui-scroll-drop-down data="blade.fetchEmployees(criteria)" | ||
ng-model="blade.currentEntity.employeeId" | ||
placeholder="'orders.blades.filter-detail.placeholders.all'"> | ||
</ui-scroll-drop-down> | ||
</div> | ||
</script> | ||
|
||
<script type="text/ng-template" id="filter-withPrototypes.html"> | ||
<div class="form-group"> | ||
<div class="form-input"> | ||
<ui-scroll-drop-down data="blade.fetchEmployees(criteria)" | ||
ng-model="blade.currentEntity.employeeId" | ||
placeholder="'orders.blades.filter-detail.placeholders.all'"> | ||
</ui-scroll-drop-down> | ||
<label class="form-label __switch"> | ||
<input type="checkbox" ng-model="blade.currentEntity.withPrototypes"> | ||
<span class="switch"></span> | ||
</label> | ||
</div> | ||
</div> | ||
</script> |
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
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