Formulaire:CreateProperties : Différence entre versions

(init wikifab pages)
(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">{{#dokitAdminNav:}}</div>
 +
<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="WfFormLabel">Title</div>
+
<div class="DokitPropertiesBlockForm"><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 22 : Ligne 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">
Ligne 197 : Ligne 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">
<hr>
+
<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>
 
{{{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 class="WfEndForm">
+
<hr>
<div class="saving-menu">
+
<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}}}
<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>
 
</div>
 
</includeonly>
 
</includeonly>

Version actuelle datée du 11 septembre 2019 à 13:32