SmartIT_Extensions/BMC/smart-it-full-helix/views/resource/rs-dwp-catalog.html

38 lines
2.6 KiB
HTML

<div ux-id="rs-dwp-catalog" class="rs-group" aria-labelledby="rs-group__tickets-header">
<h3 class="rs-group__header" id="rs-group__tickets-header" tabindex="0">
{{'search.results.catalogs' | i18n}} <span ux-id="templates-count" ng-if="templates.length">({{templates.length}})</span>
</h3>
<div class="rs-group__searching" ng-if="state.isDataLoading">
<div loading-spinner if="true"></div>
<span class="rs-group__searching-label">{{'resourceSlice.search.label' | i18n}}</span>
</div>
<div class="rs-group__list" role="list" ng-if="!state.isDataLoading">
<div class='rs-group-list-item_empty' ng-if="!templates.length" tabindex="0">
{{'resourceSlice.emptyList.recommendedCatalogs.label' | i18n}}
</div>
<div ux-id="template_{{$index}}" class="rs-group-list-item clearfix" role="listitem" tabindex="0"
ng-repeat="template in templates | limitTo: state.itemLimit" ng-class="{'rs-group-list-item_preview':isResourcePreview(template)}">
<div class="rs-group-list-item__icon-container">
<i ux-id="toggle-selection" class="rs-group-list-item__icon_action {{savedTemplateId === template.id ? 'icon-check_circle' : 'icon-circle_thin_o'}}"
ng-click="toggleTemplateSelection(template)" ng-enter="toggleTemplateSelection(template)"
aria-label="{{(savedTemplateId === template.id ? 'common.button.unselect' : 'common.button.select') | i18n}} {{'common.label.resource' | i18n}}" role="button" tabindex="0">
</i>
<i ux-id="template-icon" class="rs-group-list-item__icon icon-file_template_o"></i>
</div>
<div ng-click="toggleTemplateSelection(template)" ng-enter="toggleTemplateSelection(template)" ux-id="show-preview" class="rs-group-list-item__info" tabindex="0">
<div ng-if="template.type === 'dwpcTemplate'" class="ellipsis-title">
<div ux-id="template-type" class="rs-group-list-item__title" tooltip="{{ template.templateObject.displayCategory ? template.templateObject.displayCategory : 'dwp.uncategorized.service.label' | i18n }}" tooltip-append-to-body="true">{{ template.templateObject.displayCategory ? template.templateObject.displayCategory : 'dwp.uncategorized.service.label' | i18n }}</div>
<div ux-id="template-name" class="rs-group-list-item__description">{{template.name}}</div>
</div>
</div>
</div>
</div>
<show-more-less ux-id="show-more" limit="state.itemLimit" size="{{templates.length}}" chunk-size="15"></show-more-less>
</div>