Difference between revisions of "Form:CreateProperties"

m (A protégé « Formulaire:CreateProperties » : Protection of Dokit pages ([Modifier=Autoriser uniquement les administrateurs] (infini) [Renommer=Autoriser uniquement les administrateurs] (infini)))
(init wikifab pages)
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
<div class="row">
 
<div class="row">
<div class="col-xs-3">{{Dokit:AdminNav}}</div>
+
<div class="col-xs-3">{{#dokitAdminNav:}}</div>
 
<div class="col-xs-9 DokitPropertiesListForm">
 
<div class="col-xs-9 DokitPropertiesListForm">
 
{{#createPropertiesResources:}}
 
{{#createPropertiesResources:}}
<h2>Add properties</h2>
+
<h2>{{int:dokit-metadatas-title}}</h2>
 
{{{for template|PropertiesList|multiple|maximum instances=10}}}
 
{{{for template|PropertiesList|multiple|maximum instances=10}}}
<div class="DokitPropertiesBlockForm">
+
<div class="DokitPropertiesBlockForm"><div class="WfFormLabel">Title</div>
<div class="WfFormLabel">Title</div>
 
 
<div class="row">
 
<div class="row">
 
<div class="col-md-2">EN</div>
 
<div class="col-md-2">EN</div>
Line 26: Line 25:
 
<div class="col-md-2">{{{field|PropertyTitlePT|input type=text|class=WfFormText WfFormTextFullWidth}}}</div>
 
<div class="col-md-2">{{{field|PropertyTitlePT|input type=text|class=WfFormText WfFormTextFullWidth}}}</div>
 
</div>
 
</div>
<div class="WfFormLabel">Type</div>
+
<div class="row">
<div>{{{field|PropertyType|input type=dropdown|mandatory}}}</div>
+
<div class="col-md-6">
<div class="WfFormLabel">Icon</div>
+
<div class="WfFormLabel">Type <span class="custom-tooltip">{{#info:'''Dropdown :''' L'utilisateur doit choisir une valeur parmi une liste donnée<br>'''Checkboxes :''' L'utilisateur peut choisir plusieurs valeures parmi une liste donnée<br>'''Text :''' L'utilisateur peut saisir un texte libre}}</span></div>
<div>{{{field|PropertyIcon|input type=text|mandatory|placeholder=ie: Fa-Tag}}} {{#info:Entrez ici l'ID d'une icon Fontawesome : https://fontawesome.com/v4.7.0/icons/}}</div>
+
<div>{{{field|PropertyType|show on select=dropdown=>createproperties-section-dropdown;checkboxes=>createproperties-section-dropdown;Text=>createproperties-section-text|input type=dropdown|class=WfFormDropdown WfFormDropdownAutoWidth|mandatory}}}</div>
 +
</div>
 +
<div class="col-md-6">
 +
<div class="WfFormLabel">Icon <span class="custom-tooltip">{{#info:Entrez ici l'ID d'une icône Fontawesome : https://fontawesome.com/v4.7.0/icons/}}</span></div>
 +
<div>{{{field|PropertyIcon|input type=text|mandatory|class=WfFormText|placeholder=ie: fa-tag}}}</div>
 +
</div>
 +
</div>
 +
<div id="createproperties-section-dropdown">
 
<div class="WfFormLabel">Values</div>
 
<div class="WfFormLabel">Values</div>
 
<div class="row">
 
<div class="row">
Line 201: Line 207:
 
</div>
 
</div>
 
</div>
 
</div>
<div>{{{field|PropertyMandatory|input type=checkboxes|mapping using translate=wf-propertyvalue-propertymandatory-}}}</div>
+
</div>
<div>{{{field|PropertyFilter|input type=checkboxes|mapping using translate=wf-propertyvalue-propertyfilter-}}}</div>
+
<div class="row">
 +
<div class="col-md-6">
 +
<div class="WfFormLabel">{{int:dokit-metadatas-options}}</div>
 +
{{{field|PropertyMandatory|input type=checkboxes|class=WfFormCheckbox|mapping using translate=wf-propertyvalue-propertymandatory-}}}
 +
{{{field|PropertyFilter|input type=checkboxes|class=WfFormCheckbox|mapping using translate=wf-propertyvalue-propertyfilter-}}}
 +
</div>
 +
<div class="col-md-6">
 +
<div class="WfFormLabel">{{int:dokit-metadatas-emplacements}}</div>
 +
{{{field|PropertyPlace|input type=checkboxes|class=WfFormCheckbox}}}
 +
</div>
 +
</div>
 
</div>
 
</div>
 
{{{end template}}}
 
{{{end template}}}
<h2>Options</h2>
+
<h2>{{int:dokit-metadatas-preset}}</h2>
 
{{{for template|PropertyOptions}}}
 
{{{for template|PropertyOptions}}}
<div>{{{field|PropertyDifficulty|input type=checkboxes|mapping using translate=wf-propertyvalue-propertydifficulty-}}}</div>
+
<div>{{{field|PropertyDifficulty|input type=checkboxes|class=WfFormCheckbox|mapping using translate=wf-propertyvalue-propertydifficulty-}}}</div>
<div>{{{field|PropertyDuration|input type=checkboxes|mapping using translate=wf-propertyvalue-propertyduration-}}}</div>
+
<div>{{{field|PropertyDuration|input type=checkboxes|class=WfFormCheckbox|mapping using translate=wf-propertyvalue-propertyduration-}}}</div>
 +
<div>{{{field|EnableCategoryFilter|input type=checkboxes|class=WfFormCheckbox|mapping using translate=wf-propertyvalue-enablecategoryfilter-}}}</div>
 
{{{end template}}}
 
{{{end template}}}
 
<hr>
 
<hr>
<span class="display-none">{{{standard input|saveDraft}}} {{{standard input|watch}}}</span>{{{standard input|save|class=btn btn-primary}}}<span id="loaderSave"><i class="fa fa-spinner fa-pulse fa-2x fa-fw "></i></span>{{{standard input|cancel}}}
+
<span class="display-none">{{{standard input|watch}}}</span>{{{standard input|save|class=btn btn-primary}}}<span id="loaderSave"><i class="fa fa-spinner fa-pulse fa-2x fa-fw "></i></span>{{{standard input|cancel}}}
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 14:45, 3 October 2019