make some input fiels accept only number

This commit is contained in:
Johannes Loher 2021-01-04 22:12:19 +01:00
parent 6ba1032a12
commit f2f40a8e89
2 changed files with 6 additions and 6 deletions

View file

@ -20,10 +20,10 @@
<label class="basic-property-label" <label class="basic-property-label"
for="data.progression.progressPoints.used">{{config.progression.progressPoints}}</label> for="data.progression.progressPoints.used">{{config.progression.progressPoints}}</label>
<div class="flexrow"> <div class="flexrow">
<input type="text" name="data.progression.progressPoints.used" <input type="number" name="data.progression.progressPoints.used"
value="{{data.progression.progressPoints.used}}" data-dtype="Number" /><span value="{{data.progression.progressPoints.used}}" data-dtype="Number" /><span
class="input-divider"> / class="input-divider"> /
</span><input type="text" name="data.progression.progressPoints.total" </span><input type="number" name="data.progression.progressPoints.total"
value="{{data.progression.progressPoints.total}}" data-dtype="Number" /> value="{{data.progression.progressPoints.total}}" data-dtype="Number" />
</div> </div>
</div> </div>
@ -31,10 +31,10 @@
<label class="basic-property-label" <label class="basic-property-label"
for="data.progression.talentPoints.used">{{config.progression.talentPoints}}</label> for="data.progression.talentPoints.used">{{config.progression.talentPoints}}</label>
<div class="flexrow"> <div class="flexrow">
<input type="text" name="data.progression.talentPoints.used" <input type="number" name="data.progression.talentPoints.used"
value="{{data.progression.talentPoints.used}}" data-dtype="Number" /><span value="{{data.progression.talentPoints.used}}" data-dtype="Number" /><span
class="input-divider"> / class="input-divider"> /
</span><input type="text" name="data.progression.talentPoints.total" </span><input type="number" name="data.progression.talentPoints.total"
value="{{data.progression.talentPoints.total}}" data-dtype="Number" /> value="{{data.progression.talentPoints.total}}" data-dtype="Number" />
</div> </div>
</div> </div>

View file

@ -2,14 +2,14 @@
<div class="progression-entry"> <div class="progression-entry">
<h2 class="progression-label"><label for="data.progression.level">{{config.progression.level}}</label> <h2 class="progression-label"><label for="data.progression.level">{{config.progression.level}}</label>
</h2> </h2>
<input class="progression-value" type="text" name="data.progression.level" value="{{data.progression.level}}" <input class="progression-value" type="number" name="data.progression.level" value="{{data.progression.level}}"
data-dtype="Number" /> data-dtype="Number" />
</div> </div>
<div class="progression-entry"> <div class="progression-entry">
<h2 class="progression-label"><label <h2 class="progression-label"><label
for="data.progression.experiencePoints">{{config.progression.experiencePoints}}</label> for="data.progression.experiencePoints">{{config.progression.experiencePoints}}</label>
</h2> </h2>
<input class="progression-value" type="text" name="data.progression.experiencePoints" <input class="progression-value" type="number" name="data.progression.experiencePoints"
value="{{data.progression.experiencePoints}}" data-dtype="Number" /> value="{{data.progression.experiencePoints}}" data-dtype="Number" />
</div> </div>
</div> </div>