{{#each tabs as |tab|}}
{{#with tab.data as |karma|}}
{{formInput @root.fields.name value=karma.name name=(concat tab.id ".name") localize=true }}
{{formInput @root.fields.id value=karma.id classes="hidden-input" name=(concat tab.id ".id") }}
{{localize "KARMA.Form.UserPicker.title"}}
{{#each karma.gms}} {{/each}}
{{#each karma.players}}
{{/each}}
{{localize "KARMA.Form.Configuration"}}
{{formInput @root.fields.dice value=karma.dice classes="hidden-input" name=(concat tab.id ".dice") }}
{{#each @root.diceList as |dice label|}}
{{/each}}
{{formGroup @root.fields.type value=karma.type name=(concat tab.id ".type") localize=true}} {{#if (eq karma.type "fudge")}} {{formGroup @root.fields.inequality value=karma.inequality name=(concat tab.id ".inequality") localize=true}} {{formInput @root.fields.history value=karma.history classes="hidden-input" name=(concat tab.id ".history") }} {{formInput @root.fields.threshold value=karma.threshold classes="hidden-input" name=(concat tab.id ".threshold") }} {{else}} {{formGroup @root.fields.inequality value=karma.inequality name=(concat tab.id ".inequality") localize=true}} {{formGroup @root.fields.history value=karma.history name=(concat tab.id ".history") localize=true }} {{formGroup @root.fields.threshold value=karma.threshold name=(concat tab.id ".threshold") max=karma.dice localize=true }} {{/if}} {{#if (or (eq karma.type "simple") (eq karma.type "fudge"))}} {{formGroup @root.fields.floor value=karma.floor name=(concat tab.id ".floor") max=karma.dice localize=true }} {{/if}} {{#if (eq karma.type "fudge")}} {{formGroup @root.fields.recurring value=karma.recurring name=(concat tab.id ".recurring") localize=true}} {{/if}} {{#if (eq karma.type "average")}} {{formGroup @root.fields.nudge value=karma.nudge name=(concat tab.id ".nudge") max=karma.dice localize=true }} {{formGroup @root.fields.cumulative value=karma.cumulative name=(concat tab.id ".cumulative") localize=true }} {{/if}}

{{karma.example}}

{{/with}}
{{/each}}