Difference between revisions of "Form:Resources"
From Earth Science Information Partners (ESIP)
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{{info|page name=<Resources[Portal]>/{{#time:Y-m-d|<Resources[Resources topic]>}}/Resources}}} | + | {{{info|page name=<Resources[Portal]>{{#if:<Resources[Resources topic]>|/{{#time:Y-m-d|<Resources[Resources topic]>}} }}/Resources}}} |
{{{for template|Resources}}} | {{{for template|Resources}}} | ||
<div class="card bg-light shadow-sm"> | <div class="card bg-light shadow-sm"> | ||
<div class="card-body"> | <div class="card-body"> | ||
− | + | {{{field | |
− | |||
− | |||
|Portal | |Portal | ||
|input type=dropdown | |input type=dropdown | ||
|values from category=Portals | |values from category=Portals | ||
|class=form-control mb-1 | |class=form-control mb-1 | ||
− | }}} | + | |hidden |
− | + | }}}<!-- -->{{{field | |
− | |||
− | |||
− | |||
|Resources topic | |Resources topic | ||
|input type=text with autocomplete | |input type=text with autocomplete | ||
Line 21: | Line 16: | ||
|remote autocompletion | |remote autocompletion | ||
|class=form-control mb-1 | |class=form-control mb-1 | ||
− | | | + | |hidden |
− | }}} | + | }}}<!-- -->{{form-row |
− | |||
− | {{form-row | ||
|label=Description | |label=Description | ||
|label-style=align-self:start !important | |label-style=align-self:start !important | ||
Line 44: | Line 37: | ||
|delimiter=; | |delimiter=; | ||
|max values=3 | |max values=3 | ||
− | |class=form-control my- | + | |class=form-control my-1 |
}}} | }}} | ||
}} | }} | ||
+ | </div> | ||
+ | </div> | ||
{{{field | {{{field | ||
|Resources list | |Resources list | ||
|holds template | |holds template | ||
}}} | }}} | ||
− | |||
− | |||
{{{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|Resources list item|multiple|add button text=Add a resource|embed in field=Resources[Resources list]}}} | {{{for template|Resources list item|multiple|add button text=Add a resource|embed in field=Resources[Resources list]}}} | ||
Line 61: | Line 54: | ||
|label=Type | |label=Type | ||
|field={{{field | |field={{{field | ||
− | | | + | |Resources type |
|input type=radiobutton | |input type=radiobutton | ||
|values=Picture,File,URL,Video,Wiki | |values=Picture,File,URL,Video,Wiki | ||
Line 102: | Line 95: | ||
|label=Link text / Caption | |label=Link text / Caption | ||
|field={{{field | |field={{{field | ||
− | | | + | |Resources text |
|input type=text | |input type=text | ||
+ | |class=form-control mt-1 | ||
+ | }}} | ||
+ | }} | ||
+ | {{form-row | ||
+ | |label=Author(s) | ||
+ | |field={{{field | ||
+ | |Author | ||
+ | |input type=tokens | ||
+ | |values from property=Author | ||
+ | |list | ||
+ | |delimiter=; | ||
+ | |class=form-control mt-1 | ||
+ | }}} | ||
+ | }} | ||
+ | {{form-row | ||
+ | |label=Date | ||
+ | |field={{{field | ||
+ | |Has date | ||
+ | |input type=datepicker | ||
+ | }}} | ||
+ | }} | ||
+ | {{form-row | ||
+ | |label=Comment | ||
+ | |label-style=align-self:start !important | ||
+ | |class=mt-1 | ||
+ | |field={{{field | ||
+ | |Comment | ||
+ | |input type=textarea | ||
+ | |rows=3 | ||
|class=form-control | |class=form-control | ||
+ | |editor=visualeditor | ||
}}} | }}} | ||
}} | }} |