Form:Program: Difference between revisions
From MoHA Wiki
No edit summary |
mNo edit summary |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | ||
{{{for template|Program}}} | {{{for template|Program}}} | ||
<p>'''Parent Program: '''</p> | <p>'''Parent Program: '''</p> | ||
{{{field|Parent program|input type= | {{{field|Parent program|input type=combobox|values={{#ask:[[Category:Programs]][[!{{PAGENAME}}]]|link=none|format=array|sep=,|order=asc|limit=500|searchlabel=}}|max values=1|existing values only}}} | ||
<p>''' | <p>'''Program type *: </p> | ||
{{{field|Program | {{{field|Program type|input type=tokens|values from property=Program type|mandatory|list|delimiter=;}}} | ||
<p>''' | <p>'''Program short description *: </p> | ||
{{{field|Program | {{{field|Program short description|input type=textarea|autogrow|class=form-control}}} | ||
<p>''' | <p>'''Program dates: </p> | ||
{{{field|Program | <div class="mb-3">Start {{{field|Program start date|input type=datepicker}}} End {{{field|Program end date|input type=datepicker}}} | ||
<p>''' | </div> | ||
<p>'''Program image: </p> | |||
{{{field|Program image|input type=text|uploadable|image preview}}} | |||
<p>'''Program image caption: </p> | |||
{{{field|Program image caption|input type=textarea|rows=2|autogrow}}} | |||
=== Related persons === | |||
{{{field|Related persons|holds template}}} | |||
=== Related organizations === | |||
{{{field|Related organizations|holds template}}} | |||
=== Resources === | |||
{{{field|Resources|holds template}}} | {{{field|Resources|holds template}}} | ||
{{{end template}}} | {{{end template}}} | ||
=== Text === | |||
{{{standard input|free text|editor=wikieditor}}} | |||
{{{for template|Resource|multiple|embed in field=Program[Resources]|add button text=Resource}}} | {{{for template|Resource|multiple|embed in field=Program[Resources]|add button text=Resource}}} | ||
{| class="formtable" | {| class="formtable" | ||
Line 30: | Line 37: | ||
| {{{field|Resource type|input type=dropdown|property=Resource type|default=Website|mandatory}}} | | {{{field|Resource type|input type=dropdown|property=Resource type|default=Website|mandatory}}} | ||
|- | |- | ||
! | ! Resource: | ||
| {{{field|Resource value|input type=text}}} | | {{{field|Resource value|input type=text}}} | ||
|- | |- | ||
Line 37: | Line 44: | ||
|} | |} | ||
{{{end template}}} | {{{end template}}} | ||
{{{for template|Related person|multiple|embed in field=Program[Related persons]|add button text=Person}}} | |||
{| class="formtable" | |||
{{{ | |- | ||
! Person | |||
| {{{field|Person|input type=combobox|values from category=People|mandatory}}} | |||
|- | |||
! Role: | |||
| {{{field|Person role|input type=combobox|values from property=Person role|max values=1}}} | |||
|- | |||
! Distinction: | |||
| {{{field|Person distinction|input type=tokens|values from property=Person distinction|list|delimiter=;}}} | |||
|- | |||
! Position: | |||
| {{{field|Person position|input type=combobox|values from property=Person position|max values=1}}} | |||
|- | |||
! Date Start: | |||
| {{{field|Date Start|input type=datepicker}}} | |||
|- | |||
! Date End: | |||
| {{{field|Date End|input type=datepicker}}} | |||
|- | |||
| Date formatting: | |||
! {{{field|Date format|property=Date format|default=Full date|input type=radiobutton|mandatory}}} | |||
|- | |||
! Comment: | |||
| {{{field|Person comment|input type=textarea|rows=4}}} | |||
|} | |||
{{{end template}}} | |||
{{{for template|Related organization|multiple|embed in field=Program[Related organizations]|add button text=Organization}}} | |||
{| class="formtable" | |||
|- | |||
! Organization | |||
| {{{field|Organization|input type=combobox|values from category=Organizations|mandatory}}} | |||
|- | |||
! Role: | |||
| {{{field|Organization role|input type=combobox|values from property=Organization role|max values=1}}} | |||
|- | |||
! Date Start: | |||
| {{{field|Date Start|input type=datepicker}}} | |||
|- | |||
! Date End: | |||
| {{{field|Date Start|input type=datepicker}}} | |||
|- | |||
| Date formatting: | |||
! {{{field|Date format|property=Date format|default=Full date|input type=radiobutton|mandatory}}} | |||
|- | |||
! Comment: | |||
| {{{field|Organization comment|input type=textarea|rows=4}}} | |||
|} | |||
{{{end template}}} | |||
</includeonly> | </includeonly> |