Difference between revisions of "Form:Building"
Jump to navigation
Jump to search
m |
|||
(34 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#formlink: form=Building | {{#formlink: form=Building | ||
− | |link text=Add Building | + | |link text=<span class="mw-ui-button mw-ui-progressive">Add Building</span> |
}} | }} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{{info|page name=<Building[Building name]>}}} | {{{info|page name=<Building[Building name]>}}} | ||
− | {{{for template|Building}}} | + | {{{for template|Building}}} __NOTOC__ __NOEDITSECTION__ |
+ | == General Information == | ||
{{form row | {{form row | ||
|label=Name | |label=Name | ||
Line 11: | Line 12: | ||
|Building name | |Building name | ||
|input type=text | |input type=text | ||
+ | |placeholder=The building common name ... | ||
}}} | }}} | ||
|class=mb-1 | |class=mb-1 | ||
Line 31: | Line 33: | ||
|label=Floor count | |label=Floor count | ||
|field={{{field | |field={{{field | ||
− | | | + | |Building floor count |
|input type=number | |input type=number | ||
|size=4 | |size=4 | ||
Line 44: | Line 46: | ||
|Architectural style | |Architectural style | ||
|input type=tokens | |input type=tokens | ||
+ | |max values=1 | ||
|values from property=Architectural style | |values from property=Architectural style | ||
|placeholder=Select from the list or add a new one ... | |placeholder=Select from the list or add a new one ... | ||
Line 49: | Line 52: | ||
}} | }} | ||
{{form row | {{form row | ||
− | |label= | + | |label=Architects |
|field={{{field | |field={{{field | ||
− | | | + | |Architects |
|input type=tokens | |input type=tokens | ||
+ | |list | ||
+ | |delimiter=; | ||
|values from property=Architect | |values from property=Architect | ||
|placeholder=Select from the list or add a new one ... | |placeholder=Select from the list or add a new one ... | ||
Line 58: | Line 63: | ||
}} | }} | ||
{{form row | {{form row | ||
− | |label= | + | |label=Engineers |
|field={{{field | |field={{{field | ||
− | |Structural | + | |Structural engineers |
|input type=tokens | |input type=tokens | ||
+ | |list | ||
+ | |delimiter=; | ||
|values from property=Structural engineer | |values from property=Structural engineer | ||
|placeholder=Select from the list or add a new one ... | |placeholder=Select from the list or add a new one ... | ||
Line 67: | Line 74: | ||
}} | }} | ||
{{form row | {{form row | ||
− | + | |label=Completion date | |
− | + | |field={{{field | |
− | + | |Day Completion | |
− | + | |input type=regexp | |
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid day of month | ||
+ | |placeholder={{#time:j}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Month Completion | ||
+ | |input type=dropdown | ||
+ | |values=January,February,March,April,May,June,July,August,September,October,November,December | ||
+ | |placeholder={{#time:F}} | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Year Completion | ||
+ | |input type=regexp | ||
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid year | ||
+ | |placeholder={{#time:Y}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
}}} | }}} | ||
− | + | |fieldclass=d-flex align-items-center | |
}} | }} | ||
{{form row | {{form row | ||
− | + | |label=Renovation date | |
− | + | |field={{{field | |
− | + | |Day Renovation | |
− | + | |input type=regexp | |
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid day of month | ||
+ | |placeholder={{#time:j}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Month Renovation | ||
+ | |input type=dropdown | ||
+ | |values=January,February,March,April,May,June,July,August,September,October,November,December | ||
+ | |placeholder={{#time:F}} | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Year Renovation | ||
+ | |input type=regexp | ||
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid year | ||
+ | |placeholder={{#time:Y}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
}}} | }}} | ||
− | + | |fieldclass=d-flex align-items-center | |
}} | }} | ||
{{form row | {{form row | ||
Line 87: | Line 132: | ||
|Building status | |Building status | ||
|input type=radiobutton | |input type=radiobutton | ||
− | | | + | |property=Building status |
|default=Still standing | |default=Still standing | ||
|mandatory | |mandatory | ||
− | |show on select=Torn down=> | + | |show on select=Torn down=>id_demolition; |
}}} | }}} | ||
|class=mb-2 | |class=mb-2 | ||
}} | }} | ||
+ | <div id="id_demolition"> | ||
+ | {{form row | ||
+ | |label=Demolition date | ||
+ | |field={{{field | ||
+ | |Day Demolition | ||
+ | |input type=regexp | ||
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid day of month | ||
+ | |placeholder={{#time:j}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Month Demolition | ||
+ | |input type=dropdown | ||
+ | |values=January,February,March,April,May,June,July,August,September,October,November,December | ||
+ | |placeholder={{#time:F}} | ||
+ | |class=mr-1 | ||
+ | }}} {{{field | ||
+ | |Year Demolition | ||
+ | |input type=regexp | ||
+ | |regexp=/^\d*$/ | ||
+ | |message=Only valid year | ||
+ | |placeholder={{#time:Y}} | ||
+ | |size=4 | ||
+ | |class=mr-1 | ||
+ | }}} | ||
+ | |fieldclass=d-flex align-items-center | ||
+ | }} | ||
+ | </div> | ||
+ | == Location == | ||
+ | {{Address form|Building[Coordinates]}} | ||
{{form row | {{form row | ||
− | |label= | + | |label=Coordinates |
|field={{{field | |field={{{field | ||
− | | | + | |Coordinates |
− | |input type= | + | |input type=openlayers |
}}} | }}} | ||
+ | |class=mb-1 mt-2 | ||
+ | |label-valign=start | ||
}} | }} | ||
− | + | == Infobox Image == | |
{{{field | {{{field | ||
|Images | |Images | ||
|holds template | |holds template | ||
}}} | }}} | ||
+ | == Ownership & Tenancy == | ||
{{{field | {{{field | ||
|Owners | |Owners | ||
|holds template | |holds template | ||
}}} | }}} | ||
+ | {{{field | ||
+ | |Tenants | ||
+ | |holds template | ||
+ | }}}<!-- | ||
{{form row | {{form row | ||
|label=Tenants | |label=Tenants | ||
Line 121: | Line 204: | ||
}}} | }}} | ||
}} | }} | ||
− | {{form row | + | -->{{form row |
|label=Hotel chain | |label=Hotel chain | ||
|field={{{field | |field={{{field | ||
Line 141: | Line 224: | ||
}}} | }}} | ||
}} | }} | ||
− | {{{end template}}} | + | {{{end template}}}<!-- |
− | {{{for template|Infobox image|multiple|embed in field=Building[Images]|add button text= | + | |
+ | -->{{{for template|Infobox image|multiple|embed in field=Building[Images]|add button text=Add infobox image|maximum instances=1}}} | ||
{{form row | {{form row | ||
|label=Image | |label=Image | ||
|field={{{field | |field={{{field | ||
− | | | + | |Infobox image |
|input type=text | |input type=text | ||
|uploadable | |uploadable | ||
Line 157: | Line 241: | ||
|label=Caption | |label=Caption | ||
|field={{{field | |field={{{field | ||
− | | | + | |Infobox image caption |
|input type=text | |input type=text | ||
|placeholder=Add a caption for the image | |placeholder=Add a caption for the image | ||
}}} | }}} | ||
}} | }} | ||
− | {{{for template|Owner|multiple|embed in field=Building[Owners]|add button text= | + | {{{end template}}}<!-- |
+ | |||
+ | -->{{{for template|Owner|multiple|embed in field=Building[Owners]|add button text=Add owner}}} | ||
{{form row | {{form row | ||
|label=Name | |label=Name | ||
Line 169: | Line 255: | ||
|input type=text | |input type=text | ||
|placeholder=Owner's name | |placeholder=Owner's name | ||
+ | |values from category=People | ||
}}} | }}} | ||
|class=mb-2 | |class=mb-2 | ||
Line 182: | Line 269: | ||
|input type=year | |input type=year | ||
|placeholder={{CURRENTYEAR}} | |placeholder={{CURRENTYEAR}} | ||
+ | }}} | ||
+ | |class=mb-2 | ||
+ | }} | ||
+ | {{form row | ||
+ | |label=Note | ||
+ | |field={{{field | ||
+ | |Note | ||
+ | |input type=textarea | ||
+ | |rows=3 | ||
+ | |autogrow | ||
+ | |placeholder=Notes ... | ||
+ | }}} | ||
+ | }} | ||
+ | {{{end template}}}<!-- | ||
+ | |||
+ | -->{{{for template|Tenant|multiple|embed in field=Building[Tenants]|add button text=Add tenant}}} | ||
+ | {{form row | ||
+ | |label=Name | ||
+ | |field={{{field | ||
+ | |Tenant name | ||
+ | |input type=text | ||
+ | |placeholder=Tenant's name | ||
+ | |values from category=People | ||
+ | }}} | ||
+ | |class=mb-2 | ||
+ | }} | ||
+ | {{form row | ||
+ | |label=Tenancy period | ||
+ | |field=from {{{field | ||
+ | |Tenant from year | ||
+ | |input type=year | ||
+ | |placeholder={{CURRENTYEAR}} | ||
+ | }}} to {{{field | ||
+ | |Tenant until year | ||
+ | |input type=year | ||
+ | |placeholder={{CURRENTYEAR}} | ||
+ | }}} | ||
+ | |class=mb-2 | ||
+ | }} | ||
+ | {{form row | ||
+ | |label=Note | ||
+ | |field={{{field | ||
+ | |Note | ||
+ | |input type=textarea | ||
+ | |rows=3 | ||
+ | |autogrow | ||
+ | |placeholder=Notes ... | ||
}}} | }}} | ||
}} | }} | ||
{{{end template}}} | {{{end template}}} | ||
− | </includeonly> | + | {{{end template}}}</includeonly> |