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.

63 lines
2.4 KiB

1 year ago
  1. {{! This partial is based on the foundry settings partial}}
  2. {{#*inline "settingPartial"}}
  3. <div class="form-group">
  4. <label>{{this.name}}</label>
  5. <div class="form-fields">
  6. {{#if this.isCheckbox}}
  7. <input type="checkbox" name="{{this.id}}" data-dtype="Boolean" {{checked this.value}} />
  8. {{else if this.isSelect}}
  9. <select name="{{this.id}}">
  10. {{#select this.value}}
  11. {{#each this.choices as |name k|}}
  12. <option value="{{k}}">{{localize name}}</option>
  13. {{/each}}
  14. {{/select}}
  15. </select>
  16. {{else if this.isRange}}
  17. <input type="range" name="{{this.id}}" data-dtype="Number" value="{{ this.value }}"
  18. min="{{ this.range.min }}" max="{{ this.range.max }}" step="{{ this.range.step }}" />
  19. <span class="range-value">{{this.value}}</span>
  20. {{else if this.isColor}}
  21. <input type="color" name="{{this.id}}" value="{{this.value}}" data-dtype="{{this.type}}" />
  22. {{else}}
  23. <input type="text" name="{{this.id}}" value="{{this.value}}" data-dtype="{{this.type}}" />
  24. {{/if}}
  25. </div>
  26. <p class="notes">{{this.hint}}</p>
  27. </div>
  28. {{/inline}}
  29. <form class="flexcol" autocomplete="off">
  30. <section class="content">
  31. <div class="settings-list">
  32. <h2 class="module-header">{{localize "drag-ruler.settings.speedProviderSettings.headers.speedProvider"}}</h2>
  33. {{#if this.isGM}}
  34. {{#with this.providerSelection}}
  35. {{> settingPartial}}
  36. {{/with}}
  37. {{else}}
  38. <div class="form-group"><label>{{localize "drag-ruler.settings.speedProviderSettings.activeProvider.name"}}</label><div class="form-fields" style="justify-content: flex-start;"><b>{{this.selectedProviderName}}</b></div></div>
  39. <p class="notes">{{localize "drag-ruler.settings.speedProviderSettings.activeProvider.hint"}}</p>
  40. {{/if}}
  41. <h2 class="module-header">{{localize "drag-ruler.settings.speedProviderSettings.headers.speedProviderSettings"}}</h2>
  42. {{#each this.providers}}
  43. <div class="drag-ruler-provider-settings" id="drag-ruler.provider.{{this.id}}" {{#unless this.isSelected}}style="display:none"{{/unless}}>
  44. {{#if this.hasSettings}}
  45. {{#each settings}}
  46. {{> settingPartial}}
  47. {{/each}}
  48. {{else}}
  49. <p>{{localize "drag-ruler.settings.speedProviderSettings.noSettings"}}</p>
  50. {{/if}}
  51. </div>
  52. {{/each}}
  53. </section>
  54. <footer class="sheet-footer flexrow">
  55. <button type="submit" name="submit">
  56. <i class="far fa-save"></i> {{localize 'SETTINGS.Save'}}
  57. </button>
  58. </footer>
  59. </form>