Diverses prise en compte technique

This commit is contained in:
2022-10-25 17:54:13 +02:00
parent b64eeb226a
commit 5c54062b81
17 changed files with 159 additions and 291 deletions

View File

@ -23,8 +23,8 @@
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 1 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut1"
value="{{system.attribut1}}" data-dtype="string">
<select class="status-small-label color-class-common item-field-label-long" type="text"
name="system.attribut1" value="{{system.attribut1}}" data-dtype="string">
{{#select system.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
@ -34,8 +34,8 @@
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 2 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut2"
value="{{system.attribut2}}" data-dtype="string">
<select class="status-small-label color-class-common item-field-label-long" type="text"
name="system.attribut2" value="{{system.attribut2}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select system.attribut2}}
{{#each attributs as |attrLabel attrKey|}}
@ -46,8 +46,8 @@
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 3 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut3"
value="{{system.attribut3}}" data-dtype="string">
<select class="status-small-label color-class-common item-field-label-long" type="text"
name="system.attribut3" value="{{system.attribut3}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select system.attribut3}}
{{#each attributs as |attrLabel attrKey|}}
@ -64,19 +64,22 @@
<ul>
{{#each system.predilections as |predilection key|}}
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<input type="text" class="padd-right color-class-common edit-predilection"
value="{{predilection.name}}" data-dtype="String" />
<input type="text" class="padd-right color-class-common edit-predilection" value="{{predilection.name}}"
data-dtype="String" />
</li>
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<textarea row="4" type="text" class="padd-right color-class-common edit-predilection-description"
data-dtype="String">{{predilection.description}}</textarea>
</li>
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<label class="generic-label">Maitrise ? <input class="predilection-maitrise" type="checkbox"
{{checked predilection.maitrise}} /></label>
<label class="generic-label">Acquise ? <input class="predilection-acquise" type="checkbox" {{checked
predilection.acquise}} /></label>
<label class="generic-label">Utilisée ? <input class="predilection-used" type="checkbox"
{{checked predilection.used}} /></label>
<label class="generic-label">Maitrise ? <input class="predilection-maitrise" type="checkbox" {{checked
predilection.maitrise}} /></label>
<label class="generic-label">Utilisée ? <input class="predilection-used" type="checkbox" {{checked
predilection.used}} /></label>
<a class="item-control delete-prediction" title="Supprimer une predilection"><i
class="fas fa-trash"></i></a>
</li>