{%- macro _rounded_section_top(label, name, id) -%}
{%- endmacro -%} {%- macro _rounded_section_bottom() -%}
{%- endmacro -%} {%- macro text_field(label, name, id, min_length=none, max_length=none, required=false) -%} {%- endmacro -%} {%- macro textarea_field(label, name, id, min_length=none, max_length=none, required=false) -%} {%- endmacro -%} {%- macro formkey(v) -%} {% if v %} {% endif %} {%- endmacro -%} {%- macro checkbox(name, id, label, checked) -%} {%- endmacro -%} {%- macro scheduled_post_time_selection_form(v, p) -%}
{%- for day in ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] -%} {{checkbox("schedule_day_" ~ day, "scheduled-post-day-" ~ day, day.title(), p and p.contains_day_str(day))}} {%- endfor -%}
: (Note: all times are in UTC)
{{checkbox("enabled", "scheduled-post-enabled-input", "Enabled", p.task.enabled if p else true)}}
{{formkey(v)}} {%- endmacro -%}