Add the locations selector (closes #153)

This commit is contained in:
Oliver-Akins 2024-03-31 15:35:46 -06:00
parent ad2da03f1e
commit dd5a980f4e
5 changed files with 34 additions and 14 deletions

View file

@ -53,8 +53,20 @@
{{/if}}
</div>
{{#if meta.isEmbedded}}
<div class="location panel">
<div class="location panel--row">
Item Location
<div class="grow"></div>
{{#if meta.isEditable}}
<select
class="text-center"
name="system.location"
id="{{meta.idp}}-location"
>
{{{ dd-options system.location item.availableLocations localize=true }}}
</select>
{{else}}
{{dd-i18n (concat "dotdungeon.location." system.location)}}
{{/if}}
</div>
<div class="quantity panel">
Quantity