38 lines
1.8 KiB
HTML
38 lines
1.8 KiB
HTML
<div class="clearfix" ng-class="{'character-limit_message' : charLimit && $parent.editMode}">
|
|
|
|
<label class="label_control-wrap">
|
|
<custom-field-label-ntt></custom-field-label-ntt>
|
|
<span class="custom-field__value" ng-if="!$parent.editMode && data.value" tooltip="{{tooltipToShow}}"
|
|
ng-bind-html="((status.isCollapsed) ? (data.value | characters: 160 : '' : 'workorder' | securelinky : '_blank') : (data.value | securelinky : '_blank')) || ('customField.label.noValue' | i18n)">
|
|
</span>
|
|
|
|
<span class="custom-field-ntt__noValue" ng-if="!$parent.editMode && !data.value"
|
|
ng-bind-html="('customField.label.noValue' | i18n)">
|
|
</span>
|
|
|
|
<div class="ticket__required-field" ng-if="!$parent.editMode && data.isRequired && !data.value">
|
|
<i class="icon-exclamation_triangle"></i> {{'ticket.notification.draft.missingField' | i18n:(data.label)}}
|
|
</div>
|
|
|
|
<div class="large-text__toggle-link row" ng-if="data.value.length > 160 && !$parent.editMode" ng-click="status.isCollapsed = !status.isCollapsed">
|
|
{{ status.isCollapsed ? ('customArea.showMore' | i18n) : ('customArea.showLess' | i18n) }}
|
|
</div>
|
|
<input class="form-control"
|
|
type="text"
|
|
name="{{ data.name }}"
|
|
title=" "
|
|
aria-required="{{data.isRequired}}"
|
|
aria-labelledby="{{data.name + 'Label'}}"
|
|
ng-change="onFieldValueChange()"
|
|
ng-model="data.value"
|
|
ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 750, 'blur': 0 }}"
|
|
ng-required="data.isRequired"
|
|
ng-disabled="data.isReadOnly || !isEditable"
|
|
ng-show="$parent.editMode"
|
|
|
|
/>
|
|
<!--max = "{{data.charLimit}}"
|
|
ng-maxlength="data.charLimit"-->
|
|
<character-limit-message field="data.value" ng-if="charLimit && $parent.editMode" limit="{{charLimit}}"></character-limit-message>
|
|
</label>
|
|
</div> |