Form:Event: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
Line 98: Line 98:
{{{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}}}
<div class="d-flex">
<div>
   <div>Slot type:</div>
   <div>Slot type:</div>
   <div>{{{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;}}}</div>
   <div>{{{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;}}}</div>
</div>
</div>
<div id="singleDay" class="d-flex">
<div id="singleDay">
   <div>Day of the week:</div>
   <div>Day of the week:</div>
   <div>{{{field|Single day|input type=dropdown|property=Day of week|mandatory}}}</div>
   <div>{{{field|Single day|input type=dropdown|property=Day of week|mandatory}}}</div>
</div>
</div>
<div id="rangeDays" class="d-flex">
<div id="rangeDays">
   <div>Days of the week:</div>
   <div>Days of the week:</div>
   <div>{{{field|Single day from|input type=dropdown|property=Day of week|mandatory}}} &mdash; {{{field|Single day to|input type=dropdown|property=Day of week|mandatory}}}</div>
   <div>{{{field|Single day from|input type=dropdown|property=Day of week|mandatory}}} &mdash; {{{field|Single day to|input type=dropdown|property=Day of week|mandatory}}}</div>
</div>
</div>
<div id="exactDate" class="d-flex">
<div id="exactDate">
   <div>Date:</div>
   <div>Date:</div>
   <div>{{{field|Exact date|input type=datepicker}}}</div>
   <div>{{{field|Exact date|input type=datepicker}}}</div>
</div>
</div>
<div class="d-flex">
<div>
   <div>Day off</div>
   <div>Day off</div>
   <div>{{{field|Day off|input type=checkbox|show on select=No=>schedule;}}}</div>
   <div>{{{field|Day off|input type=checkbox|default=No|show on select=No=>schedule;}}}</div>
</div>
</div>
<div id="schedule" class="d-flex">
<div id="schedule">
   <div>Open hours:</div>
   <div>Open hours:</div>
   <div>{{{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}}} <!--
   <div>{{{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}}} <!--
Line 124: Line 124:
-->{{{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}}}</div>
-->{{{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}}}</div>
</div>
</div>
<div id="schedule" class="d-flex">
<div id="schedule">
   <div>Break hours:</div>
   <div>Break hours:</div>
   <div>{{{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}}} <!--
   <div>{{{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}}} <!--

Revision as of 14:41, 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.