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.

57 lines
2.2 KiB

1 year ago
  1. <form autocomplete="off">
  2. <div class="left-column">
  3. {{> "dnd5e.advancement-controls"}}
  4. <div class="form-group">
  5. <label>{{localize "DND5E.AdvancementScaleValueTypeLabel"}}</label>
  6. <div class="form-fields">
  7. <select name="configuration.type">
  8. {{selectOptions types selected=configuration.type}}
  9. </select>
  10. {{#if (eq configuration.type "distance")}}
  11. <select name="configuration.distance.units">
  12. {{selectOptions movementUnits selected=configuration.distance.units}}
  13. </select>
  14. {{/if}}
  15. </div>
  16. <p class="hint type-hint">
  17. {{localize type.hint}}
  18. </p>
  19. </div>
  20. <hr>
  21. <div class="form-group">
  22. <label>{{localize "DND5E.Identifier"}}</label>
  23. <div class="form-fields">
  24. <input name="configuration.identifier" type="text" value="{{configuration.identifier}}"
  25. placeholder="{{previewIdentifier}}">
  26. </div>
  27. <p class="hint identifier-hint">
  28. {{{localize "DND5E.AdvancementScaleValueIdentifierHint" class=classIdentifier identifier=previewIdentifier}}}
  29. <a class="identifier-hint-copy" data-tooltip="DND5E.IdentifierCopy">
  30. <i class="far fa-clipboard"></i>
  31. </a>
  32. </p>
  33. </div>
  34. </div>
  35. <div class="right-column level-list scale-values">
  36. {{#each levels as |data level|}}
  37. <div class="form-group">
  38. <label>{{level}}</label>
  39. <div class="form-fields">
  40. {{#if (eq @root.configuration.type "dice")}}
  41. {{numberInput data.value.number name=(concat "configuration.scale." level ".number") min=1 step=1
  42. placeholder=data.placeholder.number}}
  43. <select name="configuration.scale.{{level}}.faces" data-dtype="Number" class="{{data.className}}">
  44. {{selectOptions @root.faces selected=data.value.faces blank=data.placeholder.faces}}
  45. </select>
  46. {{else}}
  47. <input type="{{#if @root.type.isNumeric}}number{{else}}text{{/if}}" step="any"
  48. name="configuration.scale.{{level}}.value" value="{{data.value.value}}"
  49. data-level="{{level}}" placeholder="{{data.placeholder.value}}">
  50. {{/if}}
  51. </div>
  52. </div>
  53. {{/each}}
  54. </div>
  55. </form>