[SotS][Bugfix] Lifestyle buttons don't store value
Love this sheet, thanks for making it for our new favorite game! Lifestyle radio buttons work OK until the sheet is closed. The next time the sheet is opened, it will always choose the final radio button, Opulent(2), as "on". Giving the radio button selections numeric values should maintain the selected button for attr_lifestyle.
This commit is contained in:
@@ -377,12 +377,12 @@
|
||||
<h2>Wealth</h2>
|
||||
<label class="sheet-wealth2">Current Wealth</label> <input type="number" name="attr_wealth" class="sheet-wealth" min="0" max="100"/><br/> <br/>
|
||||
<label class="sheet-lifestyle">Lifestyle: </label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" /><label class="sheet-wealth1">Squalid(-2)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" /><label class="sheet-wealth2">Struggling(-1)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" /><label class="sheet-wealth2">Comfortable(0)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" /><label class="sheet-wealth1">Wealthy(1)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" /><label class="sheet-wealth1">Opulent(2)</label>
|
||||
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" value="1" /><label class="sheet-wealth1">Squalid(-2)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" value="2" /><label class="sheet-wealth2">Struggling(-1)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" value="3" /><label class="sheet-wealth2">Comfortable(0)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" value="4" /><label class="sheet-wealth1">Wealthy(1)</label>
|
||||
<input type="radio" name="attr_lifestyle" class="sheet-radio" value="5" /><label class="sheet-wealth1">Opulent(2)</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -397,4 +397,4 @@
|
||||
<h2>Sorcerous Spheres</h2>
|
||||
<textarea name="attr_spheres" rows="8" cols="50" class="sheet-txtarea2"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user