Difference between revisions of "Form:Event"

From Earth Science Information Partners (ESIP)
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{{{info|page name=<Events[Portal]>/{{#time:Y-m-d|<Events[Start date]>}}:_<Events[Event title]>}}}
 
{{{info|page name=<Events[Portal]>/{{#time:Y-m-d|<Events[Start date]>}}:_<Events[Event title]>}}}
 
{{{for template|Events}}}
 
{{{for template|Events}}}
 +
<div class="card bg-light shadow-sm">
 +
<div class="card-body">
 
{{form-row
 
{{form-row
 
   |label=Title
 
   |label=Title
Line 9: Line 11:
 
|values from property=Event title
 
|values from property=Event title
 
|remote autocompletion
 
|remote autocompletion
|class=form-control
+
|class=form-control mb-1
 
|mandatory
 
|mandatory
 
}}}
 
}}}
}}
+
}}<!--
{{form-row
+
 
  |label=Portal
+
-->{{{field
  |field={{{field
 
 
|Portal
 
|Portal
 
|input type=dropdown
 
|input type=dropdown
 
|values from category=Portals
 
|values from category=Portals
|class=form-control
+
|class=form-control mb-1
}}}
+
|hidden
}}
 
{{form-row
 
  |label=Committee
 
  |field={{{field
 
|News feed
 
|input type=dropdown
 
|values from property=News feed
 
|class=form-control
 
 
}}}
 
}}}
}}
 
 
{{form-row
 
{{form-row
 
   |label=Participants
 
   |label=Participants
Line 45: Line 37:
 
   |label=Duration
 
   |label=Duration
 
   |label-style=align-self:start !important
 
   |label-style=align-self:start !important
   |field=from {{{field
+
   |field=<div class="mb-1">from {{{field
 
|Start date
 
|Start date
 
|input type=datepicker
 
|input type=datepicker
 
|default={{#time:Y/m/d|now}}  
 
|default={{#time:Y/m/d|now}}  
 +
|mandatory
 
}}} {{{field
 
}}} {{{field
 
|Start hour
 
|Start hour
Line 59: Line 52:
 
|values=00,05,10,15,20,25,30,35,40,45,50,55
 
|values=00,05,10,15,20,25,30,35,40,45,50,55
 
|default=00
 
|default=00
}}} m
+
}}} m</div>
 
+
<div class="mb-1">until {{{field
until {{{field
 
 
|End date
 
|End date
 
|input type=datepicker
 
|input type=datepicker
Line 75: Line 67:
 
|values=00,05,10,15,20,25,30,35,40,45,50,55
 
|values=00,05,10,15,20,25,30,35,40,45,50,55
 
|default=00
 
|default=00
}}} m
+
}}} m</div>
 
}}
 
}}
 
{{form-row
 
{{form-row
Line 83: Line 75:
 
|Event location
 
|Event location
 
|feeds to map=Events[Event coordinates]
 
|feeds to map=Events[Event coordinates]
 +
|class=form-control mb-2
 
}}}
 
}}}
  
Line 106: Line 99:
 
|Event tag
 
|Event tag
 
|input type=tokens
 
|input type=tokens
|values from property=News tag
+
|values from property=Event tag
 
|list
 
|list
 
|delimiter=;
 
|delimiter=;
 
|max values=3
 
|max values=3
|class=form-control
+
|class=form-control mt-1
 
}}}
 
}}}
 
}}
 
}}
 +
</div>
 +
</div>
 
{{{field
 
{{{field
 
|Event attachments
 
|Event attachments
Line 119: Line 114:
 
{{{end template}}}
 
{{{end template}}}
  
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}
+
{{{standard input|save|class=mw-ui-button mw-ui-progressive}}} {{{standard input|preview|class=mw-ui-button}}} <span class="d-inline-block ml-3 text-danger">{{{standard input|cancel}}}</span>
  
 
{{{for template|News attachment|multiple|add button text=Attach|embed in field=Events[Event attachments]}}}
 
{{{for template|News attachment|multiple|add button text=Attach|embed in field=Events[Event attachments]}}}
Line 130: Line 125:
 
|default=Picture
 
|default=Picture
 
|mandatory
 
|mandatory
|show on select=Picture=>media-type-image;File=>media-type-image;URL=>media-type-url;Video=>media-type-url;Wiki=>media-type-wiki;
+
|show on select=Picture=>media-type-image;File=>media-type-image;Picture=>pic-label;File=>file-label;URL=>media-type-url;Video=>media-type-url;Wiki=>media-type-wiki;
 
}}}
 
}}}
 
}}
 
}}
 
<div id="media-type-image">
 
<div id="media-type-image">
 
{{form-row
 
{{form-row
   |label=&#32;
+
   |label=<span id="pic-label">Picture</span><span id="file-label">File</span>
 
   |field={{{field
 
   |field={{{field
 
|File
 
|File
Line 168: Line 163:
 
|Link text
 
|Link text
 
|input type=text
 
|input type=text
|class=form-control
+
|class=form-control mt-1
 
}}}
 
}}}
 
}}
 
}}
 
{{{end template}}}
 
{{{end template}}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
{{#formlink: form=Event
+
Events are to be created form the [[:Category:Portals|portal]] pages.
  |link text=<span class="mw-ui-button mw-ui-progressive">Add an Event</span>
 
}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 03:25, July 29, 2020

Events are to be created form the portal pages.