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

22 lines
967 B
HTML
Raw Normal View History

<form class="{{classes}}" name="settingTextForm">
2020-05-27 11:18:26 +02:00
<label for="setting-{{setting.name}}" class="control-label m-r" translate>{{ label }}</label>
<div ng-class="{'form-group': faIcon}">
<div ng-class="{'input-group': faIcon}">
<div class="input-group-addon" ng-if="faIcon">
<i class="fa {{faIcon}}"></i>
</div>
<input type="{{type}}"
2020-05-27 11:18:26 +02:00
class="form-control"
id="setting-{{setting.name}}"
placeholder="{{placeholder}}"
ng-model="setting.value"
2022-06-08 10:35:53 +02:00
ng-required="required"
ng-minlength="minLength"
ng-maxlength="maxLength"
ng-trim="false"
ng-readonly="readOnly">
2020-05-27 11:18:26 +02:00
</div>
</div>
<button name="button" class="btn btn-warning m-t" ng-click="save(setting)" ng-disabled="settingTextForm.$invalid || readOnly" translate>{{ 'app.shared.buttons.save' }}</button>
2020-05-27 11:18:26 +02:00
</form>