{% load i18n wagtailadmin_tags %} {% trans 'Set publishing schedule' as schedule_publishing_dialog_title %} {% trans 'Choose when this page should go live and/or expire' as schedule_publishing_dialog_subtitle %} {% if page %} {% page_permissions instance as page_perms %} {% if page_perms.can_publish %} {% trans "This publishing schedule will only take effect after you have published" as message_heading %} {% else %} {% trans "Anyone with editing permissions can create schedules" as message_heading %} {% trans "But only those with publishing permissions can make them effective." as message_description %} {% endif %} {% endif %} {% dialog id='schedule-publishing-dialog' dialog_root_selector='[data-edit-form]' classname=classname icon_name='calendar-alt' title=schedule_publishing_dialog_title subtitle=schedule_publishing_dialog_subtitle message_icon_name='info' message_status='info' message_heading=message_heading message_description=message_description %} {% include 'wagtailadmin/panels/multi_field_panel.html' %} {% enddialog %}