1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/assets/templates/admin/settings/select.html

17 lines
991 B
HTML
Raw Normal View History

2020-05-27 17:07:55 +02:00
<form class="{{classes}}" name="setting-select-form">
<div class="form-group">
<label for="setting-{{setting.name}}" class="control-label m-r" translate>{{ label }}</label>
<select class="form-control"
id="setting-{{setting.name}}"
ng-model="setting.value"
ng-required="required">
<option ng-if="option1" ng-value="option1[0]" translate>{{ option1[1] }}</option>
<option ng-if="option2" ng-value="option2[0]" translate>{{ option2[1] }}</option>
<option ng-if="option2" ng-value="option3[0]" translate>{{ option3[1] }}</option>
<option ng-if="option4" ng-value="option4[0]" translate>{{ option4[1] }}</option>
<option ng-if="option5" ng-value="option5[0]" translate>{{ option5[1] }}</option>
</select>
</div>
<button name="button" class="btn btn-warning m-t" ng-click="save(setting)" ng-disabled="setting-select-form.$invalid" translate>{{ 'app.shared.buttons.save' }}</button>
</form>