<div class="traits">
	<h3>traits
		<span class="traits-selector" data-action="openTraits" data-tooltip="ajouter/supprimer un trait">
			<i class="fas fa-cogs"></i>

		</span>
	</h3>
	<h4>
		{{#each item.system.traits as |trait key|}}
			{{#if trait}}
			{{#with (lookup ../config.traits key)}}
				<span data-tooltip="{{this.description}}">{{this.name}}
					{{#if trait.max}}
						<em class="trait-count">({{trait.value}}/{{trait.max}})</em>
					{{/if}}
					{{#if trait.value}}
						<input type="number" class="hexa" value="{{trait.value}}" name="system.traits.{{key}}.value">
					{{/if}}
				</span>
			{{/with}}
			{{/if}}
		{{/each}}
	</h4>
</div>
