Formulaire:CreateProperties : Différence entre versions

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)
Ligne 2 : Ligne 2 :
 
{{#forminput:form=CreateProperties|button text=Modifier les propriétés|placeholder=Nom de la page|}}
 
{{#forminput:form=CreateProperties|button text=Modifier les propriétés|placeholder=Nom de la page|}}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div class="row">
 
<div class="col-xs-3">{{Dokit:AdminNav}}</div>
 
<div class="col-xs-9 DokitPropertiesListForm">
 
 
{{#createPropertiesResources:}}
 
{{#createPropertiesResources:}}
 
<h2>Add properties</h2>
 
<h2>Add properties</h2>
 
{{{for template|PropertiesList|multiple|maximum instances=10}}}
 
{{{for template|PropertiesList|multiple|maximum instances=10}}}
<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>
Ligne 25 : Ligne 22 :
 
<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="row">
+
<div class="WfFormLabel">Type</div>
<div class="col-md-6">
+
<div>{{{field|PropertyType|input type=dropdown|mandatory}}}</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 class="WfFormLabel">Icon</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>{{{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>
 
<div class="col-md-6">
 
<div class="WfFormLabel">Icon <span class="custom-tooltip">{{#info:Entrez ici l'ID d'une icon 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">
Ligne 207 : Ligne 197 :
 
</div>
 
</div>
 
</div>
 
</div>
</div>
+
<div>{{{field|PropertyMandatory|input type=checkboxes|mapping using translate=wf-propertyvalue-propertymandatory-}}}</div>
<div class="row">
+
<div>{{{field|PropertyFilter|input type=checkboxes|mapping using translate=wf-propertyvalue-propertyfilter-}}}</div>
<div class="col-md-6">
+
<hr>
<div class="WfFormLabel">Options</div>
 
{{{field|PropertyMandatory|input type=checkboxes|mapping using translate=wf-propertyvalue-propertymandatory-}}}
 
{{{field|PropertyFilter|input type=checkboxes|mapping using translate=wf-propertyvalue-propertyfilter-}}}
 
</div>
 
<div class="col-md-6">
 
<div class="WfFormLabel">Emplacements</div>
 
{{{field|PropertyPlace|input type=checkboxes}}}
 
</div>
 
</div>
 
</div>
 
 
{{{end template}}}
 
{{{end template}}}
<h2>Métadonnées pré-configurées</h2>
+
<h2>Options</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|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|mapping using translate=wf-propertyvalue-propertyduration-}}}</div>
 
{{{end template}}}
 
{{{end template}}}
<hr>
+
<hr class="WfEndForm">
<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}}}
+
<div class="saving-menu">
</div>
+
<span class="display-none">{{{standard input|watch}}} {{{standard input|saveDraft}}}</span>{{{standard input|cancel}}}{{{standard input|save and continue}}}{{{standard input|save}}}<span id="loaderSave"><i class="fa fa-spinner fa-pulse fa-2x fa-fw "></i></span>
</div>
 
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Version du 23 novembre 2018 à 14:23