Difference between revisions of "Form:Event OLD"

From OPENRESEARCH mk copy Wiki
Jump to navigation Jump to search
Line 37: Line 37:
 
           |{{#ifeq:{{#show: Property:Homepage|?Property mandatory}}|true|mandatory}}
 
           |{{#ifeq:{{#show: Property:Homepage|?Property mandatory}}|true|mandatory}}
 
           |{{#ifeq:{{#show: Property:Homepage|?Property primary key }}|true|unique}}
 
           |{{#ifeq:{{#show: Property:Homepage|?Property primary key }}|true|unique}}
          |regexp=/^[0-9A-Za-z ]+$/
 
          |message = "Only digits"
 
 
   }}}
 
   }}}
 
|-
 
|-
Line 61: Line 59:
 
           |{{#ifeq:{{#show: Property:Ordinal|?Property mandatory}}|true|mandatory}}
 
           |{{#ifeq:{{#show: Property:Ordinal|?Property mandatory}}|true|mandatory}}
 
           |{{#ifeq:{{#show: Property:Ordinal|?Property primary key }}|true|unique}}
 
           |{{#ifeq:{{#show: Property:Ordinal|?Property primary key }}|true|unique}}
 +
  }}}
 +
|-
 +
! {{#show: Property:Event type|?Property name}}{{#ifeq:{{#show: Property:Event type|?Property mandatory}}|true|<span style="color:#f00">*</span>}}: {{#info:{{#show: Property:Event type|?Property documentation}}| note}}
 +
| {{{field
 +
          |{{#show: Property:Event type|?Property label}}
 +
          |input type={{#show: Property:Event type|?Property inputType}}
 +
          |{{#if:{{#show: Property:Event type|?Property placeholder}}|placeholder={{#show: Property:Event type|?Property placeholder}} }}
 +
          |{{#if:{{#show: Property:Event type|?Property allowedValues }} |values={{#show: Property:Event type|?Property allowedValues }} }}
 +
          |{{#if:{{#show: Property:Event type|?Property values from }} |values from {{#show: Property:Event type|?Property values from }} }}
 +
          |{{#ifeq:{{#show: Property:Event type|?Property mandatory}}|true|mandatory}}
 +
          |{{#ifeq:{{#show: Property:Event type|?Property primary key }}|true|unique}}
 
   }}}
 
   }}}
 
|-
 
|-

Revision as of 23:45, 4 March 2021