Form:Program: Difference between revisions

From MoHA Wiki
No edit summary
mNo edit summary
 
(19 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>'''Type of Program *: </p>
{{{field|Type of Program|input type=tokens|values from property=Type of Program|mandatory|max values=1}}}
<p>'''Program Description: '''</p>
{{{field|Program description|input type=textarea}}}
<p>'''Parent Program: '''</p>
<p>'''Parent Program: '''</p>
{{{field|Parent program|input type=tokens|values={{#ask:[[Category:Programs]][[!{{PAGENAME}}]]|link=none|format=array|sep=;|order=asc|limit=500|searchlabel=}}|max values=1|existing values only}}}
{{{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>'''Board Members / Leadership'''</p>
<p>'''Program type *: </p>
{{{field|Program board members|input type=tokens|values from category=People|list|delimiter=;}}}
{{{field|Program type|input type=tokens|values from property=Program type|mandatory|list|delimiter=;}}}
<p>'''Staff'''</p>
<p>'''Program short description *: </p>
{{{field|Program staff|input type=tokens|values from category=People|list|delimiter=;}}}
{{{field|Program short description|input type=textarea|autogrow|class=form-control}}}
<p>'''Sponsors'''</p>
<p>'''Program dates: </p>
{{{field|Program sponsors|input type=tokens|values from category=Organizations|list|delimiter=;}}}
<div class="mb-3">Start {{{field|Program start date|input type=datepicker}}} End {{{field|Program end date|input type=datepicker}}}
<p>'''Resources'''</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 37: Line 44:
|}
|}
{{{end template}}}
{{{end template}}}
'''Free text:'''
{{{for template|Related person|multiple|embed in field=Program[Related persons]|add button text=Person}}}
 
{| class="formtable"
{{{standard input|free text|rows=10}}}
|-
! 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>

Latest revision as of 21:23, November 26, 2022