All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.5 KiB

1 year ago
  1. <!-- HEADER -->
  2. <header>
  3. <div class="frame-container">
  4. <div class="frame image-container">
  5. <img class="actor-image" alt="{{actor.name}}" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
  6. <a class="hover-icon" data-action="show-image"><i class="fas fa-image fa-fw"></i></a>
  7. {{#if editable}}
  8. <div class="edit-mode-button" title="{{localize "PF2E.EditHazardLabel"}}"><i class="fa-solid fa-lock{{#if editing}}-open{{/if}}"></i></div>
  9. {{/if}}
  10. </div>
  11. </div>
  12. <div class="details">
  13. <div class="title">
  14. <input name="name" class="name" type="text" value="{{actor.name}}" placeholder="{{localize "PF2E.CharacterNamePlaceholder"}}"/>
  15. <label>{{localize "ACTOR.TypeHazard"}}</label>
  16. <input class="level" name="system.details.level.value" type="number" value="{{data.details.level.value}}" placeholder="1" />
  17. </div>
  18. {{#if editing}}
  19. <template class="traits-extra">
  20. <select class="tag" name="system.traits.rarity" value="{{data.traits.rarity}}">
  21. {{#select data.traits.rarity}}
  22. {{#each rarity as |label key|}}
  23. <option value="{{key}}">{{localize label}}</option>
  24. {{/each}}
  25. {{/select}}
  26. </select>
  27. <select class="tag" name="system.details.isComplex" data-dtype="Boolean">
  28. {{#select data.details.isComplex}}
  29. <option value="false">{{localize "PF2E.Actor.Hazard.Simple"}}</option>
  30. <option value="true">{{localize "PF2E.TraitComplex"}}</option>
  31. {{/select}}
  32. </select>
  33. </template>
  34. <input class="tags paizo-style" name="system.traits.value" value="{{json data.traits.value}}" data-dtype="JSON"
  35. {{#if (eq data.traits.value.length 0)}}placeholder="{{localize "PF2E.Traits"}}"{{/if}} />
  36. {{else}}
  37. <div class="tags paizo-style">
  38. {{#unless (eq data.details.isComplex "common")}}<span class="tag" value="{{data.traits.rarity}}">{{localize rarityLabel}}</span>{{/unless}}
  39. {{#if data.details.isComplex}}<span class="tag">{{localize "PF2E.TraitComplex"}}</span>{{/if}}
  40. {{#each actorTraits as |trait|}}
  41. <span class="tag" data-slug="{{trait.name}}">{{localize trait.label}}</span>
  42. {{/each}}
  43. </div>
  44. {{/if}}
  45. </div>
  46. </header>