Form:Event: Difference between revisions

From MoHA Wiki
No edit summary
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 4: Line 4:
if a page with that name already exists, you will be sent to a form to edit that page.
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:form=Event}}
{{#forminput:form=Event|autocomplete on category=Events}}


</noinclude><includeonly>
</noinclude><includeonly>
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">
{| class="formtable"
  <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;}}}
! width="120px"| Slot type:
</div>
|{{{field|Slot type|input type=dropdown|values=Single day,Range of days,Exact date|default=Exact date|mandatory|show on select=Single day=>singleDay;Range of days=>rangeDays;Range of days=>openClose;Single day=>openClose;Exact date=>exactDate;Exact date=>openClose;|existing values only}}}
<div id="singleDay" class="d-flex">
|- id="singleDay"
  <div>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|existing values only}}}
</div>
{|
|- id="rangeDays"
|- id="rangeDays"
! Days of the week:  
! Days of the week:
| {{{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}}}
| {{{field|Range day from|input type=dropdown|property=Day of week|mandatory|existing values only}}} &mdash; {{{field|Range day to|input type=dropdown|property=Day of week|mandatory|existing values only}}}
|- id="exactDate"
|- id="exactDate"
! Date:  
! Date:
| {{{field|Exact date|input type=datepicker}}}
| {{{field|Exact date|input type=datepicker}}}
|-  
|-  
! Day off
! Schedule type:
| {{{field|Day off|input type=checkbox|label=Day off|show on select=No=>schedule;}}}
| <span id="openClose">{{{field|Record type|input type=dropdown|values=Opening,Closing,Day off,Regular|mandatory|default=Regular|existing values only|show on select=Regular=>hours;Opening=>hours;Closing=>hours;Day off=>empty;}}}</span> <span id="hours">{{{field|Schedule type|input type=dropdown|values=Without a break,With a break|show on select=Without a break=>schedule;With a break=>schedule;With a break=>break;|default=Without a break|existing values only}}}</span>
|- 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}}} <!--
  -->&mdash; <!--
-->{{{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"
|- 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}}} <!--
| <div class="d-table">
   -->&mdash; <!--
  <div class="d-table-row">
-->{{{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}}}
  <div class="d-table-cell">'''Open hours'''</div>
  </div>
  <div class="d-table-row">
  <div class="d-table-cell">from</div>
  <div class="d-table-cell"><!--
-->{{{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|default=09|existing values only}}} <!--
-->{{{field|Minutes open from|input type=dropdown|values=00,15,30,45|default=00|existing values only}}}
  </div>
  </div>
  <div class="d-table-row">
  <div class="d-table-cell">to</div>
  <div class="d-table-cell"><!--
-->{{{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|default=18|existing values only}}} <!--
-->{{{field|Minutes open to|input type=dropdown|values=00,15,30,45|default=00|existing values only}}}
  </div>
  </div>
  </div>
|- id="break">
!
| <div class="d-table">
  <div class="d-table-row">
  <div class="d-table-cell">'''Break hours'''</div>
  </div>
  <div class="d-table-row">
  <div class="d-table-cell">from</div>
  <div class="d-table-cell"><!--
-->{{{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|default=13|existing values only}}} <!--
-->{{{field|Minutes break from|input type=dropdown|values=00,15,30,45|default=00|existing values only}}}
  </div>
  </div>
  <div class="d-table-row">
  <div class="d-table-cell">to</div>
   <div class="d-table-cell"><!--
-->{{{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|default=14|existing values only}}} <!--
-->{{{field|Minutes break to|input type=dropdown|values=00,15,30,45|default=00|existing values only}}}
  </div>
  </div>
  </div>
|- id="label">
!
| <div class="d-table">
  <div class="d-table-row">
  <div class="d-table-cell">'''Label''' ''(optional)''</div>
  </div>
  <div class="d-table-row">
  <div class="d-table-cell"><!--
-->{{{field|Label|input type=text}}}
  </div>
  </div>
  </div>
|}
|}
{{{end template}}}
{{{end template}}}

Latest revision as of 10:37, June 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.