2015-06-15 21:25:43 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label>{{ label }}</label>
|
|
|
|
|
|
|
|
<div class="input-group">
|
2016-01-09 12:51:26 +01:00
|
|
|
<input ng-if="type != 'choice' && type != 'textarea'" ng-model="value" ng-change="save(configOption.key, value)" id="{{ key }}"
|
|
|
|
type="{{ type }}" class="form-control">
|
|
|
|
|
|
|
|
<textarea ng-if="type == 'textarea'" ng-model="value" ng-change="save(configOption.key, value)" id="{{ key }}" class="form-control">
|
2015-06-29 14:17:05 +02:00
|
|
|
|
|
|
|
<select ng-if="type == 'choice'" ng-model="value" ng-change="save(configOption.key, value)" id="{{ key }}"
|
|
|
|
class="form-control" ng-options="option.value as option.display_name for option in choices">
|
|
|
|
</select>
|
|
|
|
|
2015-06-15 21:25:43 +02:00
|
|
|
<span class="input-group-btn">
|
2015-06-29 14:17:05 +02:00
|
|
|
<button ng-click="value=configOption.default_value; save(configOption.key, configOption.default_value)" class="btn btn-default" translate>
|
2015-06-15 21:25:43 +02:00
|
|
|
<i class="fa fa-undo"></i>
|
|
|
|
<translate>Reset</translate>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<p ng-if="help_text" class="help-block">{{ help_text }}</p>
|
|
|
|
</div>
|