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-25 18:18:05 +02:00
|
|
|
data-toggle="popover" data-trigger="hover" data-placement="auto 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">
|
2016-06-05 19:39:06 +02:00
|
|
|
<div ng-class="{'input-group': !!option.suffix}">
|
|
|
|
<div class="form-group has-feedback" ng-class="[optionStatus.getStatusFeedbackStyle()]">
|
2016-06-19 17:10:26 +02:00
|
|
|
<input class="form-control" type="text" placeholder="{{::placeholder}}" ng-disabled="!!option.readonly"
|
2016-06-05 19:39:06 +02:00
|
|
|
ng-if="option.type == 'string' || option.type == 'integer' || option.type == 'float'"
|
|
|
|
ng-model="optionValue" ng-change="changeValue(optionValue, true)"/>
|
2016-06-19 17:10:26 +02:00
|
|
|
<textarea class="form-control" rows="6" placeholder="{{::placeholder}}" ng-disabled="!!option.readonly"
|
2016-06-05 19:39:06 +02:00
|
|
|
ng-if="option.type == 'text'"
|
|
|
|
ng-model="optionValue" ng-change="changeValue(optionValue, true)"></textarea>
|
|
|
|
<select class="form-control" style="width: 100%;" ng-disabled="!!option.readonly"
|
|
|
|
ng-if="option.type == 'boolean' || option.type == 'option'"
|
|
|
|
ng-model="optionValue" ng-change="changeValue(optionValue, false)"
|
|
|
|
ng-options="item.value as (item.name | translate) for item in option.options">
|
|
|
|
</select>
|
|
|
|
<div class="form-control-icon" ng-if="optionStatus.isShowStatusIcon()">
|
2016-06-19 12:30:33 +02:00
|
|
|
<i class="fa form-control-feedback" ng-class="[optionStatus.getStatusIcon()]"></i>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-05 19:39:06 +02:00
|
|
|
<span class="input-group-addon" ng-if="!!option.suffix" ng-bind="option.suffix | translate"></span>
|
2016-06-01 17:31:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|