PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Form:Event: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
Tag: Manual revert
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{info|add title=Add a new Event|edit title=Edit Event}}}
<noinclude>
{{#forminput: form=Event
|button text=Create or Edit Event Entry
|autocomplete on category=Events
|no autofocus
}}
{{DISPLAYTITLE: Add a New Event}}
</noinclude><includeonly>
{{{info|add title=Add a new Event Entry|edit title=Edit Event Entry}}}


{{{for template|Event}}}
{{{for template|Event}}}
<div style="max-width:800px; background:#fff; border:1px solid #ccc; padding:20px; font-family:sans-serif;">
{{form row
|{{{field
  |Image
  |input type=text
  |uploadable
  |class=form-control
}}}
|label=Cover Image:
|property=Image
}}
{{form row
|{{{field
  |Related game
  |input type=tokens
  |delimiter=,
  |values from category=Games
  |placeholder=e.g. Half-Life
  |class=form-control
}}}
|label=Game:
|property=Related game
}}
{{form row
|{{{field
  |Genre
  |input type=checkboxes
  |property=Has genre
  |delimiter=,
  |class=form-control
}}}
|label=Genre:
|property=Has genre
}}
{{form row
|{{{field
  |Has short description
  |input type=textarea
  |rows=3
  |class=form-control
}}}
|label=Short description:
|property=Has short description
}}
{{form row
|{{{field
  |Has start date
  |input type=datepicker
  |class=form-control
}}}
|label=Start date:
|property=Has start date
}}
{{form row
|{{{field
  |Has end date
  |input type=datepicker
  |class=form-control
}}}
|label=End date:
|property=Has end date
}}
{{form row
|{{{field
  |Has tag
  |input type=tokens
  |delimiter=,
  |class=form-control
}}}
|label=Tags:
|property=Has tag
}}


  <div style="font-size:1.5em; font-weight:bold; border-bottom:2px solid #2a4b8d; margin-bottom:20px;">
== Links ==
    Add Gaming Event
{{{field|Event links|holds template}}}
  </div>
{{{end template}}}
 
{{{for template|Event link|multiple|embed in field=Event[Event links]|add button text=Add event link}}}
  <div style="margin-bottom:15px;">
{{Link fields|Event links}}
    <strong>Event Name:</strong><br>
{{{end template}}}
    {{{field|Name|input type=text|size=50|placeholder=Game Event}}}
  </div>


  <div style="display:flex; gap:20px; margin-bottom:15px;">
    <div style="flex:1;">
      <strong>Start Date & Time:</strong><br>
      {{{field|Start date|input type=datetimepicker}}}
    </div>
    <div style="flex:1;">
      <strong>End Date & Time (Optional):</strong><br>
      {{{field|End date|input type=datetimepicker}}}
    </div>
  </div>


  <div style="display:flex; gap:20px; margin-bottom:15px;">
{{{standard input|save}}}  
    <div style="flex:1;">
{{{standard input|preview}}}  
      <strong>Event Type:</strong><br>
{{{standard input|cancel}}}
      {{{field|Event type|input type=checkboxes|values=Casual Gaming, Tournament, Anniversary, Gaming|delimiter=,}}}
</includeonly>
    </div>
    <div style="flex:1;">
      <strong>Related Game:</strong><br>
      {{{field|Related game|input type=text|autocomplete|values from category=Games|size=30}}}
    </div>
  </div>
 
  <div style="margin-bottom:15px;">
    <strong>Description:</strong><br>
    {{{field|Description|input type=textarea|rows=5|style=width:100%;}}}
  </div>
 
  <div style="text-align:right; margin-top:20px;">
    {{{standard input|save}}} {{{standard input|preview}}}
  </div>
 
</div>
{{{end template}}}

Latest revision as of 23:05, 25 March 2026