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}}}
{| class="formtable"
<div class="d-flex">
|-
  <div>Slot type:</div>
! Slot type
  <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;}}}
| {{{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>
|- id="singleDay"
<div id="singleDay" class="d-flex">
! Day of the week:
  <div>Day of the week:</div>
| {{{field|Single day|input type=dropdown|property=Day of week|mandatory}}}
  <div>{{{field|Single day|input type=dropdown|property=Day of week|mandatory}}}</div>
</div>
{|
|- id="rangeDays"
|- id="rangeDays"
! Days of the week:  
! Days of the week:  

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