superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/views/edit-time-interval.html

Summary

Maintainability
Test Coverage
<div class="form-label" translate>Schedule</div>

<div class="form__row">
    <sd-check type="radio" ng-model="wrapper.everyDay" ng-value="true" label-position="inside">{{'Every day' | translate}}</sd-check>
    <sd-check type="radio" ng-model="wrapper.everyDay" ng-value="false" label-position="inside">{{'Select days' | translate}}</sd-check>
</div>

<div
    ng-if="wrapper.everyDay !== 'true'"
    sd-weekday-picker
    data-short-weekday-labels="true"
    data-model="wrapper.customWeekdays"
    class="form__row"></div>

<div class="form-label" translate>Time</div>

<div class="form__row">
    <sd-check type="radio" ng-model="wrapper.everyHour" ng-value="true" label-position="inside">{{'Every hour' | translate}}</sd-check>
    <sd-check type="radio" ng-model="wrapper.everyHour" ng-value="false" label-position="inside">{{'Select hours' | translate}}</sd-check>
</div>

<div ng-if="wrapper.everyHour !== 'true'" class="form__row">
    <div sd-multi-select
        data-item="wrapper.customHours"
        data-list="wrapper.hoursList"
        data-change="setDirty(true)"></div>
</div>