2020-06-10 16:37:11 +02:00
|
|
|
<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>
|
2020-06-01 17:32:32 +02:00
|
|
|
<input type="{{type}}"
|
2020-05-27 11:18:26 +02:00
|
|
|
class="form-control"
|
|
|
|
id="setting-{{setting.name}}"
|
|
|
|
placeholder="{{placeholder}}"
|
|
|
|
ng-model="setting.value"
|
2021-03-24 18:24:03 +01:00
|
|
|
ng-required="true"
|
2020-06-10 16:37:11 +02:00
|
|
|
ng-minlength="minLength"
|
|
|
|
ng-maxlength="maxLength"
|
|
|
|
ng-readonly="readOnly">
|
2020-05-27 11:18:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-10 16:37:11 +02:00
|
|
|
<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>
|