1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/assets/templates/admin/settings/text.html
Sylvain 78518e17fb read stripe_currency from the UI
We prevent the currency from being changed if any stripe payment was made, because a stripe user cannot made pay with different currencies. If we try to charge a user with a different currency than the currency he used for a previous payment, this will fail; so we must prevent this case
2020-06-10 16:37:11 +02:00

21 lines
934 B
HTML

<form class="{{classes}}" name="settingTextForm">
<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}}"
class="form-control"
id="setting-{{setting.name}}"
placeholder="{{placeholder}}"
ng-model="setting.value"
ng-required="required"
ng-minlength="minLength"
ng-maxlength="maxLength"
ng-readonly="readOnly">
</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>
</form>