aee8ed2f3b
- Show correct last speakers on list of speakers slide. - Fixes config input type. - Fixes config style for checkboxes. - Improved line-height on projector for scaling.
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
<div class="form-group">
|
|
<label>{{ label }}</label>
|
|
|
|
<div class="input-group">
|
|
<input ng-if="type != 'choice' && type != 'textarea'"
|
|
ng-model="$parent.value"
|
|
ng-change="save(configOption.key, $parent.value)"
|
|
ng-class="{ 'form-control': type != 'checkbox' }"
|
|
id="{{ key }}"
|
|
type="{{ type }}">
|
|
|
|
<textarea ng-if="type == 'textarea'"
|
|
ng-model="$parent.value"
|
|
ng-change="save(configOption.key, $parent.value)"
|
|
id="{{ key }}" class="form-control">
|
|
</textarea>
|
|
|
|
<select ng-if="type == 'choice'"
|
|
ng-model="$parent.value"
|
|
ng-change="save(configOption.key, $parent.value)"
|
|
id="{{ key }}"
|
|
class="form-control" ng-options="option.value as option.display_name for option in choices">
|
|
</select>
|
|
|
|
<span class="input-group-btn">
|
|
<button ng-click="reset()" class="btn btn-default" title="{{ default_value }}">
|
|
<i class="fa fa-undo"></i>
|
|
<translate>Reset</translate>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
<p ng-if="help_text" class="help-block">{{ help_text }}</p>
|
|
</div>
|