Difference between revisions of "Form:Event test"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
<includeonly>
 
<includeonly>
 
<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|Event|strict|label=Event}}}
+
{{{for template|Event|label=Event}}}
 
 
 
----
 
----
{| class="formtable mw-collapsible mw-collapsed"style="width: 100%;"
+
{| class="formtable mw-collapsible "style="width: 100%;"
 
|-
 
|-
 
!  colspan="2" |General information
 
!  colspan="2" |General information
|-
+
|-  
! {{#show: Property:Event id|?Property name}}{{#ifeq:{{#show: Property:Event id|?Property mandatory}}|true|<span style="color:#f00">*</span>}}: {{#info:{{#show: Property:Event id|?Property documentation}}}}
+
! {{FieldTitleByProperty|Property:Event id}}
| {{{field
+
| {{FieldByProperty|Property:Event id}}  
          |{{#show: Property:Event id|?Property label}}
 
          |input type={{#show: Property:Event id|?Property inputType}}
 
          |placeholder={{#show: Property:Event id|?Property placeholder|link=none}}
 
          |{{#ifeq: {{#show: Property:Event id|?Property allowedValues }} |||values={{#show: Property:Event id|?Property allowedValues }} }}
 
          |{{#ifeq: {{#show: Property:Event id|?Property values from }} ||| values from {{#show: Property:Event id|?Property values from }} }}
 
          |{{#ifeq:{{#show: Property:Event id|?Property mandatory}}|true|mandatory}}
 
          |{{#ifeq:{{#show: Property:Event id|?Property primary key }}|true|unique}}
 
  }}}
 
|-
 
! {{#show: Property:Event acronym|?Property name}}{{#ifeq:{{#show: Property:Event acronym|?Property mandatory}}|true|<span style="color:#f00">*</span>}}: {{#info:{{#show: Property:Event acronym|?Property documentation}}}}
 
| {{{field
 
          |{{#show: Property:Event acronym|?Property label}}
 
          |input type={{#show: Property:Event acronym|?Property inputType}}
 
          |placeholder={{#show: Property:Event acronym|?Property placeholder}}
 
          |{{#ifeq: {{#show: Property:Event acronym|?Property allowedValues }} |||values={{#show: Property:Event acronym|?Property allowedValues }} }}
 
          |{{#ifeq: {{#show: Property:Event acronym|?Property values from }} ||| values from {{#show: Property:Event acronym|?Property values from }} }}
 
          |{{#ifeq:{{#show: Property:Event acronym|?Property mandatory}}|true|mandatory}}
 
          |{{#ifeq:{{#show: Property:Event acronym|?Property primary key }}|true|unique}}
 
  }}}
 
|-
 
! Acronym: {{#info:ToDo}}
 
| {{{field
 
          |Acronym
 
          |placeholder=e.g. PIDplz 2021
 
          |unique
 
          |property=Acronym}}}
 
|-
 
 
 
! Title<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |Title
 
          |property=Title
 
          |mandatory}}}
 
|-
 
 
 
! Event series<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |Event series
 
          |input type=combobox
 
          |values from concept=Event_series}}}
 
|-
 
 
 
! Start date<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |Start date
 
          |input type=datepicker
 
          |date format=yy-mm-dd
 
          |placeholder=yyyy-mm-dd
 
          |mandatory}}}
 
|-
 
! End date<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |End date
 
          |input type=datepicker
 
          |date format=yy-mm-dd
 
          |placeholder=yyyy-mm-dd
 
          |mandatory}}}
 
|-
 
! Location<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |Location
 
          |mandatory}}}
 
|-
 
! Subject<span style="color:#f00">*</span>: {{#info:ToDo}}
 
| {{{field
 
          |Subject
 
          |input type=combobox
 
          |property=subject
 
          |values from
 
          |mandatory}}}
 
|-
 
! {{#show: Property:in event series|?Property name}}{{#ifeq:{{#show: Property:in event series|?Property mandatory}}|true|<span style="color:#f00">*</span>}}: {{#info:{{#show: Property:in event series|?Property documentation}}}}
 
| {{{field
 
          |{{#show: Property:in event series|?Property label}}
 
          |input type={{#show: Property:in_event_series|?Property inputType}}
 
          |{{#if:{{#show: Property:in event series|?Property placeholder}}|placeholder={{#show: Property:in event series|?Property placeholder}} }}
 
          |{{#if:{{#show: Property:in event series|?Property allowedValues }} |values={{#show: Property:in event series|?Property allowedValues }} }}
 
          |{{#if:{{#show: Property:in event series|?Property values from }} |values from {{#show: Property:in event series|?Property values from }} }}
 
          |{{#ifeq:{{#show: Property:in event series|?Property mandatory}}|true|mandatory}}
 
          |{{#ifeq:{{#show: Property:in event series|?Property primary key }}|true|unique}}
 
  }}}
 
 
|}
 
|}
 
----
 
----

Revision as of 14:59, 26 February 2021