Form:Event: Difference between revisions
From MoHA Wiki
No edit summary |
No edit summary |
||
Line 97: | Line 97: | ||
|} | |} | ||
{{{end template}}} | {{{end template}}} | ||
{{{for template|Open hours|multiple|embed in field=Event[Open hours]|add button text=Add open hours}}} | {{{for template|Open hours|multiple|embed in field=Event[Open hours]|add button text=Add open hours}}} | ||
{| class="formtable" | |||
|- | |||
! Slot type: | |||
|{{{field|Slot type|input type=dropdown|values=Single day,Range of days,Exact date|default=Single day|mandatory|show on select=Single day=>singleDay;Range of days=>rangeDays;Exact date=>exactDate;}}} | |||
|- id="singleDay" | |||
! Day of the week: | |||
|{{{field|Single day|input type=dropdown|property=Day of week|mandatory}}} | |||
|- id="rangeDays" | |||
!Days of the week: | |||
!{{{field|Single day from|input type=dropdown|property=Day of week|mandatory}}} — {{{field|Single day to|input type=dropdown|property=Day of week|mandatory}}} | |||
|- id="exactDate" | |||
!Date: | |||
|{{{field|Exact date|input type=datepicker}}} | |||
|- | |||
!Schedule type: | |||
|{{{field|Day off|input type=dropdown|values=Working,Day off|show on select=Working=>schedule;|default=Working}}} | |||
|- id="schedule" | |||
!Open hours: | |||
|{{{field|Hour open from|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes open from|input type=dropdown|values=00,15,30,45}}} <!-- | |||
-->— <!-- | -->— <!-- | ||
-->{{{field|Hour open to|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes open to|input type=dropdown|values=00,15,30,45}}} | -->{{{field|Hour open to|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes open to|input type=dropdown|values=00,15,30,45}}} | ||
|- id="schedule"> | |||
!Break hours: | |||
|{{{field|Hour break from|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes break from|input type=dropdown|values=00,15,30,45}}} <!-- | |||
-->— <!-- | -->— <!-- | ||
-->{{{field|Hour break to|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes break to|input type=dropdown|values=00,15,30,45}}} | -->{{{field|Hour break to|input type=dropdown|values=00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23}}}:{{{field|Minutes break to|input type=dropdown|values=00,15,30,45}}} | ||
|} | |||
{{{end template}}} | {{{end template}}} | ||
Revision as of 14:59, May 18, 2024
This is the "Event" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.