|
|
- <div class="inventory-details">
- <div class="form-group">
- <label>{{localize "PF2E.Item.Affliction.OnsetLabel"}}</label>
- {{#if data.onset}}
- {{> systems/pf2e/templates/items/partials/duration.hbs base="system.onset" duration=data.onset units=onsetUnits}}
- <div class="item-controls">
- <a data-action="onset-delete"><i class="fa-solid fa-fw fa-times"></i></a>
- </div>
- {{else}}
- <div class="form-fields">
- <button type="button" data-action="onset-add"><i class="fa-solid fa-plus"></i>Add Onset</button>
- </div>
- {{/if}}
- </div>
- <div class="form-group">
- <label>{{localize "PF2E.Time.Duration"}}</label>
- {{> systems/pf2e/templates/items/partials/duration.hbs base="system.duration" duration=data.duration units=durationUnits}}
- </div>
-
- {{#if user.isGM}}
- <div class="form-group">
- <label for="{{fieldIdPrefix}}unidentified">{{localize "PF2E.Item.Effect.Unidentified"}}</label>
- <div class="form-fields">
- <input id="{{fieldIdPrefix}}unidentified" type="checkbox" name="system.unidentified" {{checked data.unidentified}} />
- </div>
- </div>
- {{/if}}
-
- <hr/>
-
- {{#if item.onsetDuration}}
- <div class="form-group">
- <label for="{{fieldIdPrefix}}onsetActive">{{localize "PF2E.Item.Affliction.OnsetActive"}}</label>
- <div class="form-fields">
- <input id="{{fieldIdPrefix}}onsetActive" type="checkbox" name="system.onset.active" {{checked data.onset.active}} {{disabled (not item.actor)}}>
- </div>
- </div>
- {{/if}}
-
- <div class="form-group">
- <label>{{localize "PF2E.Item.Affliction.StageLabel"}}</label>
- <select name="system.stage" data-dtype="Number" {{disabled (not item.actor)}}>
- {{#select item.stage}}
- {{#if item.onsetDuration}}
- <option value="0">{{localize "PF2E.Item.Affliction.OnsetLabel"}}</option>
- {{/if}}
- {{#times item.maxStage as |idx|}}
- <option value="{{add idx 1}}">{{localize "PF2E.Item.Affliction.Stage" stage=(add idx 1)}}</option>
- {{/times}}
- {{/select}}
- </select>
- </div>
-
- </div>
|