selection de l'heure de naissance
This commit is contained in:
parent
f97914a63e
commit
02f04791b9
@ -204,6 +204,10 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
// Everything below here is only needed if the sheet is editable
|
// Everything below here is only needed if the sheet is editable
|
||||||
if (!this.options.editable) return;
|
if (!this.options.editable) return;
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$("#data.heure").val(this.actor.data.data.heure);
|
||||||
|
});
|
||||||
|
|
||||||
// Update Inventory Item
|
// Update Inventory Item
|
||||||
html.find('.item-edit').click(ev => {
|
html.find('.item-edit').click(ev => {
|
||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"yeux": "",
|
"yeux": "",
|
||||||
"cheveux": "",
|
"cheveux": "",
|
||||||
"poids": "",
|
"poids": "",
|
||||||
"heure": 0,
|
"heure": "",
|
||||||
"sexe": "",
|
"sexe": "",
|
||||||
"age": 0,
|
"age": 0,
|
||||||
"beaute": 10,
|
"beaute": 10,
|
||||||
|
@ -640,7 +640,11 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="item flexrow list-item">
|
<li class="item flexrow list-item">
|
||||||
<label class="description-label competence-label">Heure de naissance :
|
<label class="description-label competence-label">Heure de naissance :
|
||||||
<input class="description-value flexrow" type="text" name="data.heure" value="{{data.heure}}" data-dtype="String"/>
|
<select class="description-value flexrow" type="text" name="data.heure" value="{{data.heure}}" data-dtype="String">
|
||||||
|
{{#select data.heure}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/heures-select-option.html"}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow list-item">
|
<li class="item flexrow list-item">
|
||||||
|
Loading…
Reference in New Issue
Block a user