30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
<div class="clearfix email__truncate">
|
|
<label class="label_control-wrap">
|
|
<div ng-if="$parent.editMode">
|
|
<custom-field-label></custom-field-label>
|
|
</div>
|
|
|
|
<a aria-label="{{'personInfoCard.label.email' | i18n}} {{data.ootbValue}}"
|
|
href="mailto:{{ data.ootbValue }}?subject={{ticket.displayId}} : {{ticket.summary}}"
|
|
class="email-field" ng-if="!$parent.editMode && data.ootbValue" title="{{data.ootbValue}}">
|
|
<i class="icon-envelope dropdown-toggle" title="{{ data.label }}" aria-label="{{ data.label }}" aria-haspopup="true" aria-expanded="false">
|
|
</i>
|
|
{{ data.ootbValue ? data.ootbValue : ('customField.label.noValue' | i18n) }}
|
|
</a>
|
|
|
|
<div class="ticket__required-field" ng-if="!$parent.editMode && data.isRequired && !data.ootbValue">
|
|
<i class="icon-exclamation_triangle"></i> {{'ticket.notification.draft.missingField' | i18n:(data.label)}}
|
|
</div>
|
|
|
|
<div class="custom-field__email" ng-show="$parent.editMode">
|
|
<input type="text"
|
|
name="{{ data.name }}"
|
|
class="form-control"
|
|
aria-required="{{data.isRequired}}"
|
|
ng-required="data.isRequired"
|
|
ng-change="onFieldValueChange()"
|
|
ng-disabled="data.isReadOnly || !isEditable"
|
|
ng-model="data.ootbValue" />
|
|
</div>
|
|
</label>
|
|
</div> |