working on properties

This commit is contained in:
Vlyan
2020-12-20 17:33:39 +01:00
parent e1105b6293
commit 3bc707be54
3 changed files with 57 additions and 14 deletions

View File

@@ -1,9 +1,8 @@
<li class="item flexcol" data-item-id="{{item._id}}">
<ul class="item-header item-control">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ item.name }}</li>
<li class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li class="item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
<li class="property flexcol" data-property-id="{{item._id}}">
<ul class="property-header property-control">
<li class="property-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="property-name">{{ item.name }}</li>
<li class="property-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
</ul>
<div class="item-description">{{{ item.data.description }}}</div>
</li>

View File

@@ -79,10 +79,8 @@
</label>
</fieldset>
<fieldset>
{{json data.properties}}
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
<!-- TODO data.properties a faire en dnd avec les items de type "property" -->
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.properties }}
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList }}
</fieldset>
<fieldset>
<legend class="text-block-header">{{ localize 'l5r5e.description' }}</legend>