Difference between revisions of "Form:Event OLD"
Jump to navigation
Jump to search
Musaab Khan (talk | contribs) |
Musaab Khan (talk | contribs) |
||
Line 32: | Line 32: | ||
|{{#ifeq:{{#show: Property:Event id|?Property mandatory}}|true|mandatory}} | |{{#ifeq:{{#show: Property:Event id|?Property mandatory}}|true|mandatory}} | ||
|{{#ifeq:{{#show: Property:Event id|?Property primary key }}|true|unique}} | |{{#ifeq:{{#show: Property:Event id|?Property primary key }}|true|unique}} | ||
+ | |regexp=/^[0-9A-Za-z ]+$/ | ||
+ | |message = "Only digits" | ||
}}} | }}} | ||
|- | |- | ||
Line 43: | Line 45: | ||
|{{#ifeq:{{#show: Property:Acronym|?Property mandatory}}|true|mandatory}} | |{{#ifeq:{{#show: Property:Acronym|?Property mandatory}}|true|mandatory}} | ||
|{{#ifeq:{{#show: Property:Acronym|?Property primary key }}|true|unique}} | |{{#ifeq:{{#show: Property:Acronym|?Property primary key }}|true|unique}} | ||
+ | }}} | ||
+ | |- | ||
+ | ! {{#show: Property:Ordinal|?Property name}}{{#ifeq:{{#show: Property:Ordinal|?Property mandatory}}|true|<span style="color:#f00">*</span>}}: {{#info:{{#show: Property:Ordinal|?Property documentation}}}} | ||
+ | | {{{field | ||
+ | |{{#show: Property:Ordinal|?Property label}} | ||
+ | |input type={{#show: Property:Ordinal|?Property inputType}} | ||
+ | |{{#if:{{#show: Property:Ordinal|?Property placeholder}}|placeholder={{#show: Property:Ordinal|?Property placeholder}} }} | ||
+ | |{{#if:{{#show: Property:Ordinal|?Property allowedValues }} |values={{#show: Property:Ordinal|?Property allowedValues }} }} | ||
+ | |{{#if:{{#show: Property:Ordinal|?Property values from }} |values from {{#show: Property:Ordinal|?Property values from }} }} | ||
+ | |{{#ifeq:{{#show: Property:Ordinal|?Property mandatory}}|true|mandatory}} | ||
+ | |{{#ifeq:{{#show: Property:Ordinal|?Property primary key }}|true|unique}} | ||
+ | |regexp:/^\d*$/ | ||
+ | |message=Only numbers! | ||
}}} | }}} | ||
|- | |- |
Revision as of 15:50, 3 March 2021