Difference between revisions of "Form:Portal"

From Earth Science Information Partners (ESIP)
m (1 revision imported: Portal help update)
 
(11 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
|values from property=Portal title
 
|values from property=Portal title
 
|remote autocompletion
 
|remote autocompletion
|class=form-control
+
|class=form-control mb-1
 
|mandatory
 
|mandatory
 
}}}
 
}}}
Line 21: Line 21:
 
|input type=dropdown
 
|input type=dropdown
 
|values from property=Committee
 
|values from property=Committee
|class=form-control
+
|class=form-control mb-1
 
}}}
 
}}}
 
}}
 
}}
Line 36: Line 36:
 
   |field={{{field
 
   |field={{{field
 
|Portal tagline
 
|Portal tagline
|class=form-control
+
|class=form-control my-1
 
}}}
 
}}}
 
}}
 
}}
 
{{form-row
 
{{form-row
 
   |label=Description
 
   |label=Description
 +
  |label-style=align-self: start !important
 
   |field={{{field
 
   |field={{{field
 
|Portal description
 
|Portal description
Line 57: Line 58:
 
|delimiter=;
 
|delimiter=;
 
|max values=3
 
|max values=3
|class=form-control
+
|class=form-control my-1
 
}}}
 
}}}
 
}}
 
}}
 
{{form-row
 
{{form-row
 
   |label=Settings
 
   |label=Settings
 +
  |label-style=align-self: start !important
 
   |field={{{field
 
   |field={{{field
|Portal events
+
|Portal blocks
|input type=checkbox
+
|input type=checkboxes
|label=Events
+
|values=News, Events, Resources, GoogleDocs
 
}}}
 
}}}
 
+
}}
 +
</div>
 +
</div>
 
{{{field
 
{{{field
|Portal news
+
|Members
|input type=checkbox
+
|holds template
|label=News
 
 
}}}
 
}}}
 +
{{{end template}}}
 +
 +
{{{standard input|save|class=mw-ui-button mw-ui-progressive}}} {{{standard input|preview|class=mw-ui-button}}} <span class="mw-ui-button mw-ui-quiet">{{{standard input|cancel}}}</span>
  
{{{field
+
{{{for template|Member|multiple|embed in field=Portal[Members]|add button text=Add a member}}}
|Portal resources
+
{{form-row
|input type=checkbox
+
  |label=Person
|label=Resources
+
  |field={{{field
 +
|Member
 +
|input type=tokens
 +
|max values=1
 +
|values from category=People
 +
|class=form-control
 +
}}}
 +
}}
 +
{{form-row
 +
  |label=Role
 +
  |field={{{field
 +
|Role in committee
 +
|input type=tokens
 +
|values from property=Role in committee
 +
|list
 +
|delimiter=;
 +
|class=form-control
 +
}}}
 +
}}
 +
{{form-row
 +
  |label=Image
 +
  |field={{{field
 +
|Member image
 +
|input type=text
 +
|uploadable
 +
|class=form-control
 +
}}}
 +
}}
 +
{{form-row
 +
  |label=Email
 +
  |field={{{field
 +
|Has email
 +
|input type=tokens
 +
|values from property=Has email
 +
|list
 +
|delimiter=;
 +
|class=form-control mt-1
 +
}}}
 +
}}
 +
{{form-row
 +
  |label={{#info: You can add many phone numbers. Use a semicolon as a delimiter. Allowed symbols are digits (10-11), hyphens and round brackets.<br>Valid patterns are:<br>
 +
+0 (000) 000-0000 <br>
 +
+0 000-000-0000 <br>
 +
000-000-0000<br>
 +
000 000 0000<br>
 +
0000000000<br>
 +
If the country code is not specified, "+1" (USA) is assumed.
 +
}} Phone
 +
  |field={{{field
 +
|Has phone
 +
|input type=regexp
 +
|regexp={{Tel regexp}}
 +
|list
 +
|delimiter=;
 +
|class=form-control
 +
|placeholder=000-000-0000
 
}}}
 
}}}
 
}}
 
}}
</div>
 
</div>
 
 
{{{end template}}}
 
{{{end template}}}
 
{{{standard input|save|class=mw-ui-button mw-ui-progressive}}} {{{standard input|preview|class=mw-ui-button}}} <span class="d-inline-block ml-3 text-danger">{{{standard input|cancel}}}</span>
 
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{#formlink: form=Portal
 
{{#formlink: form=Portal

Latest revision as of 16:07, December 30, 2020