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.

95 lines
3.8 KiB

1 year ago
  1. <div class="tab details advancement" data-group="primary" data-tab="advancement">
  2. <ol class="items-list">
  3. {{#if editable}}
  4. <li class="items-header flexrow main-controls">
  5. <div class="item-controls flexrow configuration-mode-control">
  6. {{#if isEmbedded}}
  7. {{#if advancementEditable}}
  8. <a class="item-control" data-action="toggle-configuration"
  9. data-tooltip="DND5E.AdvancementConfigurationActionDisable">
  10. <i class="fas fa-lock-open"></i> {{localize "DND5E.AdvancementConfigurationModeEnabled"}}
  11. </a>
  12. {{else}}
  13. <a class="item-control" data-action="toggle-configuration"
  14. data-tooltip="DND5E.AdvancementConfigurationActionEnable">
  15. <i class="fas fa-lock"></i> {{localize "DND5E.AdvancementConfigurationModeDisabled"}}
  16. </a>
  17. {{/if}}
  18. {{/if}}
  19. </div>
  20. {{#if advancementEditable}}
  21. <div class="item-controls flexrow add-button">
  22. <a class="item-control" data-action="add" data-tooltip="DND5E.AdvancementControlCreate">
  23. <i class="fas fa-plus"></i>
  24. </a>
  25. </div>
  26. {{/if}}
  27. </li>
  28. {{/if}}
  29. {{#each advancement as |data level|}}
  30. <li class="items-header flexrow" data-level="{{level}}">
  31. <h3 class="item-name flexrow">
  32. {{#if (eq level "0")}}
  33. {{localize "DND5E.AdvancementLevelAnyHeader"}}
  34. {{else if (eq level "unconfigured")}}
  35. {{localize "DND5E.AdvancementLevelNoneHeader"}}
  36. {{else}}
  37. {{localize "DND5E.AdvancementLevelHeader" level=level}}
  38. {{/if}}
  39. </h3>
  40. {{#if (and @root.editable data.configured (ne level "unconfigured"))}}
  41. <div>
  42. <a class="item-control" data-action="modify-choices">{{localize "DND5E.AdvancementModifyChoices"}}</a>
  43. </div>
  44. {{/if}}
  45. {{#if (eq data.configured "full")}}
  46. <div class="item-checkmark" data-tooltip="DND5E.AdvancementConfiguredComplete">
  47. <i class="fas fa-check-circle"></i>
  48. </div>
  49. {{else if (eq data.configured "partial")}}
  50. <div class="item-warning" data-tooltip="DND5E.AdvancementConfiguredIncomplete">
  51. <i class="fas fa-exclamation-triangle"></i>
  52. </div>
  53. {{/if}}
  54. </li>
  55. <ol class="item-list">
  56. {{#each data.items}}
  57. <li class="advancement-item item flexrow" data-id="{{this.id}}">
  58. <div class="item-name flexrow">
  59. <div class="item-image" style="background-image: url('{{this.icon}}')"></div>
  60. <h4>{{{this.title}}}</h4>
  61. </div>
  62. {{#if (or @root.advancementEditable (not @root.isEmbedded))}}
  63. <div class="flexrow">
  64. {{#if (eq this.classRestriction "primary")}}
  65. {{localize "DND5E.AdvancementClassRestrictionPrimary"}}
  66. {{else if (eq this.classRestriction "secondary")}}
  67. {{localize "DND5E.AdvancementClassRestrictionSecondary"}}
  68. {{/if}}
  69. </div>
  70. {{/if}}
  71. {{#if @root.advancementEditable}}
  72. <div class="item-controls flexrow">
  73. <a class="item-control" data-action="edit" data-tooltip="DND5E.AdvancementControlEdit">
  74. <i class="fas fa-edit"></i>
  75. </a>
  76. <a class="item-control" data-action="delete" data-tooltip="DND5E.AdvancementControlDelete">
  77. <i class="fas fa-trash"></i>
  78. </a>
  79. </div>
  80. {{/if}}
  81. {{#if this.summary}}
  82. <div class="item-summary">
  83. {{{this.summary}}}
  84. </div>
  85. {{/if}}
  86. </li>
  87. {{/each}}
  88. </ol>
  89. {{/each}}
  90. </ol>
  91. </div>