2016-06-01 17:31:48 +02:00
|
|
|
<div class="row" data-option-key="{{option.key}}">
|
|
|
|
<div class="setting-key setting-key-without-desc col-sm-4">
|
|
|
|
<span ng-bind="option.nameKey | translate"></span>
|
|
|
|
<em ng-bind="'(' + option.key + ')'"></em>
|
2016-06-05 09:52:55 +02:00
|
|
|
<i class="icon-primary fa fa-question-circle" ng-if="(option.descriptionKey | translate) != ''"
|
2016-06-05 16:03:10 +02:00
|
|
|
data-toggle="popover" data-trigger="hover" data-placement="top" data-container="body" data-content="{{option.descriptionKey | translate}}"></i>
|
2016-06-01 17:31:48 +02:00
|
|
|
<span class="description" ng-if="option.showCount && option.split && optionValue"
|
2016-06-04 08:05:37 +02:00
|
|
|
ng-bind="'format.settings.total-count' | translate: {count: getTotalCount()}"></span>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<div ng-class="{'input-group': option.suffix}">
|
2016-06-02 18:16:27 +02:00
|
|
|
<div class="form-group" ng-if="option.type == 'string' || option.type == 'integer' || option.type == 'float'" ng-class="[optionStatus.getStatusFeedbackStyle()]">
|
2016-06-01 17:31:48 +02:00
|
|
|
<div class="has-feedback">
|
|
|
|
<input class="form-control" type="text" ng-disabled="!!option.readonly" ng-model="optionValue" ng-change="changeValue(optionValue, true)"/>
|
2016-06-02 18:16:27 +02:00
|
|
|
<div class="form-control-icon" ng-if="optionStatus.isShowStatusIcon()">
|
|
|
|
<span class="fa form-control-feedback" ng-class="[optionStatus.getStatusIcon()]"></span>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-02 18:16:27 +02:00
|
|
|
<div class="form-group" ng-if="option.type == 'text'" ng-class="[optionStatus.getStatusFeedbackStyle()]">
|
2016-06-01 17:31:48 +02:00
|
|
|
<div class="has-feedback">
|
|
|
|
<textarea class="form-control" rows="6" ng-disabled="!!option.readonly" ng-model="optionValue" ng-change="changeValue(optionValue, true)"></textarea>
|
2016-06-02 18:16:27 +02:00
|
|
|
<div class="form-control-icon" ng-if="optionStatus.isShowStatusIcon()">
|
|
|
|
<span class="fa form-control-feedback" ng-class="[optionStatus.getStatusIcon()]"></span>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-05 18:49:48 +02:00
|
|
|
<div class="form-group" ng-if="option.type == 'boolean' || option.type == 'option'" ng-class="[optionStatus.getStatusFeedbackStyle()]">
|
2016-06-01 17:31:48 +02:00
|
|
|
<div class="has-feedback">
|
|
|
|
<select class="form-control" style="width: 100%;" ng-disabled="!!option.readonly"
|
|
|
|
ng-model="optionValue" ng-change="changeValue(optionValue, false)"
|
2016-06-05 18:49:48 +02:00
|
|
|
ng-options="value.value as (value.name | translate) for value in option.options">
|
2016-06-01 17:31:48 +02:00
|
|
|
</select>
|
2016-06-02 18:16:27 +02:00
|
|
|
<div class="form-control-icon" ng-if="optionStatus.isShowStatusIcon()">
|
|
|
|
<span class="fa form-control-feedback" ng-class="[optionStatus.getStatusIcon()]"></span>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="input-group-addon" ng-if="option.suffix" ng-bind="option.suffix | translate"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|