Ajout gestion de la description

This commit is contained in:
sladecraven 2020-09-06 14:11:59 +02:00
parent b7471e0c97
commit 18be421ce5
3 changed files with 31 additions and 4 deletions

View File

@ -333,7 +333,8 @@ button {
font-weight: bold; font-weight: bold;
flex-grow: 0; flex-grow: 0;
} }
.competence-label { .competence-label,
.description-label {
flex-grow: 2; flex-grow: 2;
} }
.competence-value { .competence-value {
@ -342,6 +343,12 @@ button {
margin-right: 4px; margin-right: 4px;
margin-left: 4px; margin-left: 4px;
} }
.description-value {
flex-grow: 0;
flex-basis: 128px;
margin-right: 4px;
margin-left: 4px;
}
.competence-xp { .competence-xp {
flex-grow: 0; flex-grow: 0;
flex-basis: 64px; flex-basis: 64px;

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "0.9.2", "version": "0.9.3",
"minimumCoreVersion": "0.6.0", "minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.6.2", "compatibleCoreVersion": "0.6.2",
"templateVersion": 28, "templateVersion": 28,

View File

@ -444,8 +444,28 @@
{{!-- Biography Tab --}} {{!-- Biography Tab --}}
<div class="tab biography" data-group="primary" data-tab="description" style="height:200px"> <div class="tab biography" data-group="primary" data-tab="description" style="height:200px">
<div class="flexcol"> <div class="grid grid-2col">
{{editor content=data.biographie target="data.biographie" button=true owner=owner editable=editable}} <div class="flex-group-left flexcol competence-column">
<ol class="item-list">
<li class="item flexrow" ><span class="description-label">Sexe : </span><input class="description-value flexrow" type="text" name="data.sexe" value="{{data.sexe}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Poids : </span><input class="description-value flexrow" type="text" name="data.poids" value="{{data.poids}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Taille : </span><input class="description-value flexrow" type="text" name="data.taille" value="{{data.taille}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Cheveux : </span><input class="description-value flexrow" type="text" name="data.cheveux" value="{{data.cheveux}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Yeux : </span><input class="description-value flexrow" type="text" name="data.yeux" value="{{data.yeux}}" data-dtype="String"/></li>
</ol>
</div>
<div>
<ol class="item-list">
<li class="item flexrow" ><span class="description-label">Age : </span><input class="description-value flexrow" type="text" name="data.age" value="{{data.age}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Heure de naissance : </span><input class="description-value flexrow" type="text" name="data.heure" value="{{data.heure}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Beauté : </span><input class="description-value flexrow" type="text" name="data.beaute" value="{{data.beaute}}" data-dtype="String"/></li>
<li class="item flexrow" ><span class="description-label">Main directrice : </span><input class="description-value flexrow" type="text" name="data.main" value="{{data.main}}" data-dtype="String"/></li>
</ol>
</div>
</div>
<div class="form-group" style="height:200px">
{{editor content="data.biographie" target="data.biographie" button=true owner=owner editable=editable}}
</div> </div>
</div> </div>