42 lines
1.0 KiB
HTML
42 lines
1.0 KiB
HTML
|
|
<div class="form-group"
|
|
ng-if="!enabled || !showForm">
|
|
<p class="form-control-static">
|
|
{{ inputText }}
|
|
|
|
|
|
<a href=""
|
|
ng-focus="toggleForm()"
|
|
ng-click="toggleForm()"
|
|
ng-if="!showForm && enabled">
|
|
<span ng-if="inputText">
|
|
<i class="fa fa-pencil"></i>
|
|
</span>
|
|
<em ng-if="!inputText" class="text-muted">
|
|
{{emptyPrompt}}
|
|
<i class="fa fa-pencil"></i>
|
|
</em>
|
|
</a>
|
|
|
|
<span ng-if="!enabled && inputText">
|
|
{{inputText}}
|
|
</span>
|
|
|
|
<em class="text-muted"
|
|
ng-if="!inputText && !enabled">
|
|
{{emptyDisabledPrompt}}
|
|
</em>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<input id="input"
|
|
type="text"
|
|
ng-if="enabled && showForm"
|
|
class="form-control"
|
|
focus="autoFocus"
|
|
ng-blur="onInputBlur(inputText)"
|
|
ng-model="inputText"
|
|
placeholder="{{placeholder}}"
|
|
maxlength="{{maxLength}}"/>
|