some fix for types and effects

This commit is contained in:
Vlyan
2020-12-31 15:03:23 +01:00
parent b05f583b1e
commit 7eff620955
5 changed files with 24 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@@ -99,6 +99,11 @@
background: rgba(255, 255, 255, 0.25);
}
}
fieldset {
input[name="data.effects"] {
text-align: left;
}
}
article {
display: flex;
flex-wrap: wrap;
@@ -123,6 +128,9 @@
flex: 0 0 calc(25% - 0.5rem);
margin: 0.5rem 0.25rem 0.25rem;
}
.attribute3 {
flex: 0 0 calc(33% - 0.5rem);
}
select[name="data.advancement_type"],
select[name="data.skill"] {
text-transform: capitalize;

View File

@@ -7,7 +7,6 @@
<section class="sheet-body">
{{!-- Attributes Tab --}}
<article class="attributes" data-group="primary" data-tab="attributes">
<!-- TODO j'ai mis tous les attributs en vrac, à réorganiser -->
<select name="data.advancement_type" id="advancement_type">
{{#select item.data.advancement_type}}
{{#each item.data.subTypesList as |type|}}

View File

@@ -25,23 +25,25 @@
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
{{ localize 'l5r5e.advancements.curriculum' }}
</label>
<label class="attribute">
{{ localize 'l5r5e.types' }}
<input type="text" name="data.types" value="{{item.data.types}}" />
</label>
<label class="attribute">
<label class="attribute3">
{{ localize 'l5r5e.advancements.spent' }}
<input type="text" name="data.xp_used" value="{{item.data.xp_used}}" data-dtype="Number" placeholder="0" />
</label>
<label class="attribute">
<label class="attribute3">
{{ localize 'l5r5e.rank' }}
<input type="text" name="data.rank" value="{{data.rank}}" data-dtype="Number" placeholder="0" />
</label>
<label class="attribute">
<label class="attribute3">
{{ localize 'l5r5e.bought_at_rank' }}
<input type="text" name="data.bought_at_rank" value="{{data.bought_at_rank}}" data-dtype="Number" placeholder="0" />
</label>
</article>
<fieldset class="attributes">
<legend>
{{ localize 'l5r5e.types' }}
</legend>
<input type="text" name="data.types" value="{{item.data.types}}" />
</fieldset>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
</section>
</form>

View File

@@ -7,7 +7,6 @@
<section class="sheet-body">
{{!-- Attributes Tab --}}
<article class="attributes" data-group="primary" data-tab="attributes">
<!-- TODO j'ai mis tous les attributs en vrac, à réorganiser -->
<select name="data.ring">
{{#select item.data.ring}}
{{#each item.data.ringsList as |obj|}}
@@ -43,11 +42,13 @@
{{ localize 'l5r5e.bought_at_rank' }}
<input type="text" name="data.bought_at_rank" value="{{item.data.bought_at_rank}}" data-dtype="Number" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.effects' }}
<input type="text" name="data.effects" value="{{item.data.effects}}"/>
</label>
</article>
<fieldset class="attributes">
<legend>
{{ localize 'l5r5e.effects' }}
</legend>
<input type="text" name="data.effects" value="{{item.data.effects}}"/>
</fieldset>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
</section>
</form>