SmartIT_Extensions/BMC/smart-it-full/views/change/create-change-class-selecti...

60 lines
2.8 KiB
HTML

<div class="create-change__content-scratch">
<div class="change-template__input-field">
<label class="label_control-wrap">
<span class="label_text">{{ 'create.change.locationCompany' | i18n }}</span><!--
--><selection
selection-items="selections.companies"
selected-item="draftTicket.company"
selection-callback="setCompany(item)"
title-text=""
label="name"
value="name"
update-selected-item="true" auto-focus
selection-filter="true"
selection-filter-placeholder-text="assignBlade.searchCompany"
show-chunking-tooltip="true"
typeahead-mode="state.tooManyCompanies"
typeahead-details="company as company.name for company in getList($viewValue)"
typeahead-get-list="getCompaniesByName(name)">
</selection>
</label>
</div>
<div class="change-template__input-field">
<label class="label_control-wrap">
<span class="label_text">{{'create.change.requestedFor' | i18n}}</span><!--
--><input type="text"
aria-required="true"
title="{{ 'create.change.requestedFor' | i18n }}"
class="custom-input"
ng-model="draftTicket.customer"
ng-blur="onInputFocusBlur(); validateRequestedFor()"
role="combobox"
typeahead-min-length="3"
typeahead-template-url="views/create/custom-add-user-dropdown.html"
typeahead="customer as customer.firstName + ' ' + customer.lastName for customer in getListPersons('person', $viewValue)"
placeholder="{{ 'create.change.requestedFor.placeholder' | i18n }}"
set-focus="focusElement"
typeahead-on-select="setChangeLocation()"
uib-tooltip="{{'search.category.exceedsChunkSize' | i18n}}"
tooltip-is-open="$parent.$parent.isTooltipOpenRequestedFor"
tooltip-enable="$parent.$parent.exceedsChunkSizeRequestedFor"
tooltip-trigger="'none'"
tooltip-placement="top"/>
</label>
<div loading-spinner if="state.searchingPersons" inline="true"></div>
<i class="icon-cross item-input__delete-btn" tabindex=0 role="link"
title="{{'common.button.clear' | i18n}} {{ 'create.change.requestedFor' | i18n }}" ng-if="draftTicket.customer && !state.searchingPersons"
focus-input-on-clear ng-click="clearRequestedFor()" ng-enter="clearRequestedFor()">
</i>
</div>
</div>
<div class="create-change__heading" tabindex="0">{{'create.change.fromScratch.heading' | i18n}}</div>
<div class="create-change__class-list">
<div class="create-change__timing-item" ng-repeat="timing in changeMetadata.timings" ng-click="createDraftChangeForClass(timing)"
ng-enter="createDraftChangeForClass(timing)" ng-class="{'create-change__timing-item_first-row': $index<3, 'create-change__timing-item_first-col': $index%3==0}"
tabindex="0" role="link">
<span class="create-change__timing-name">{{timing.label}}</span>
<span>{{'create.change.fromScratch.classDescription.' + timing.index | i18n}}</span>
</div>
</div>