{% extends "layout.html" %} {% block content_header %} {{ build_breadcrumbs(current_breadcrumbs + [ { 'name': resource.name, 'link': url_for('.ScheduleView:get', id=resource.uuid), 'icon': 'clock-o' } ]) }} {% endblock %} {% block content %} {% call build_section_row() %} {% call build_form_tabs_box() %} {% call build_tabs_navigation() %} {{ add_tab_navigation_header(_('Schedule'), resource.name, 'clock-o') }} {{ add_tab_navigation_item('general', _('General'), active=True) }} {{ add_tab_navigation_item('exceptional_periods', _('Exceptional periods')) }} {{ add_tab_navigation_item('open_periods', _('Open periods')) }} {% endcall %} {% call build_form(action=url_for('.ScheduleView:put', id=resource.id)) %} {% call build_tabs_content() %} {% call build_tab_content_item('general', active=True) %} {% call add_default_fields(form=form, submit_value=_('Update')) %} {{ render_field(form.name) }} {{ render_field(form.timezone, data_listing_href=url_for(listing_urls['timezone']), data_allow_clear='true', data_placeholder=_('Choose Timezone')) }} {{ render_field(form.closed_destination, with_label=False) }} {% endcall %} {% endcall %} {% call build_tab_content_item('exceptional_periods') %} {{ build_add_row_entry_header() }} {% call add_default_fields(form=form, submit_value=_('Update')) %} {% call build_table() %} {% call build_table_headers() %}