selection de l'heure de naissance

This commit is contained in:
Vincent Vandemeulebrouck 2020-12-11 02:48:35 +01:00
parent f97914a63e
commit 02f04791b9
3 changed files with 10 additions and 2 deletions

View File

@ -204,6 +204,10 @@ export class RdDActorSheet extends ActorSheet {
// Everything below here is only needed if the sheet is editable
if (!this.options.editable) return;
$(function () {
$("#data.heure").val(this.actor.data.data.heure);
});
// Update Inventory Item
html.find('.item-edit').click(ev => {
const li = $(ev.currentTarget).parents(".item");

View File

@ -13,7 +13,7 @@
"yeux": "",
"cheveux": "",
"poids": "",
"heure": 0,
"heure": "",
"sexe": "",
"age": 0,
"beaute": 10,

View File

@ -640,7 +640,11 @@
</li>
<li class="item flexrow list-item">
<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>
</li>
<li class="item flexrow list-item">