Difference between revisions of "Form:Event"

From Earth Science Information Partners (ESIP)
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 104: Line 106:
 
}}}
 
}}}
 
}}
 
}}
 +
</div>
 +
</div>
 
{{{field
 
{{{field
 
|Event attachments
 
|Event attachments
Line 110: 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 121: 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 159: Line 163:
 
|Link text
 
|Link text
 
|input type=text
 
|input type=text
|class=form-control
+
|class=form-control mt-1
 
}}}
 
}}}
 
}}
 
}}

Revision as of 16:21, July 18, 2020