Current File : //usr/local/jetapps/var/www/jetbackup5/docroot/app/views/accountFilterManageFields.htm |
<form data-parsley-validate="" class="form-horizontal form-label-left" novalidate>
<div class="form-group" ng-if="!saveData._id">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">{{ lang.t("Filter Type") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<select id="type" class="form-control" ng-change="loadFilterType(saveData.type, true)" data-ng-options="type.value as type.label for type in types" data-ng-model="saveData.type"></select>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">{{ lang.t("Filter Name") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" type="text" ng-model="saveData.name" value="saveData.name" />
<p class="help-block">{{ lang.t("This will be used internally for your convenience") }}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">{{ lang.t("Owner") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<md-autocomplete
md-search-text="autocomplete.accountText"
md-no-cache="true"
md-clear-button="false"
md-input-id="accountSelection"
md-menu-class="account-selection-results"
md-selected-item-change="selectCreator(account)"
md-items="account in searchCreators(autocomplete.accountText)"
md-min-length="2"
placeholder="{{ lang.t('Start typing the requested account...') }}">
<md-item-template>
<div ng-include="includePath('accountDropdown')"></div>
</md-item-template>
<md-not-found>
{{ lang.t("No account matching \"%s\" were found.", autocomplete.accountText) }}
</md-not-found>
</md-autocomplete>
<p class="help-block">{{ lang.t("Specify the owner of this filter. The owner and his parent will have permissions to modify/delete this filter") }}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">{{ lang.t("Filter Condition") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div style="line-height: 30px;">
<div class="pretty p-default p-round p-smooth" ng-repeat="condition in conditions">
<input type="radio" ng-model="saveData.condition" id="condition_{{condition.value}}" value="{{ condition.value }}" ng-checked="saveData.condition == condition.value" />
<div class="state p-primary"><label for="condition_{{condition.value}}">{{ condition.label }}</label></div>
</div>
</div>
<p class="help-block">{{ lang.t("Whether to include or exclude accounts specified on this filter") }}</p>
</div>
</div>
<div ng-include="filterType"></div>
</form>