Fixed display of options

master
Mark Moffat 2020-01-02 10:48:09 +10:30
parent 42a4856c42
commit 8741f795de
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
<div class="col-md-10"> <div class="col-md-10">
{{#each productOptions}} {{#each productOptions}}
{{#ifCond this.optType '==' "select"}} {{#ifCond this.optType '==' "select"}}
<strong>{{../this.optName}}</strong> <strong>{{../this.optLabel}}</strong>
<select name="opt-{{../this.optName}}" class="form-control product-opt"> <select name="opt-{{../this.optName}}" class="form-control product-opt">
{{#each ../this.optOptions}} {{#each ../this.optOptions}}
<option value="{{this}}">{{this}}</option> <option value="{{this}}">{{this}}</option>
@ -41,7 +41,7 @@
{{/ifCond}} {{/ifCond}}
{{#ifCond this.optType '==' "radio"}} {{#ifCond this.optType '==' "radio"}}
{{#each ../this.optOptions}} {{#each ../this.optOptions}}
<strong>{{../this.optName}}</strong> <strong>{{../this.optLabel}}</strong>
<div class="radio"> <div class="radio">
<label> <label>
<input type="radio" class="product-opt" name="opt-{{../../this.optName}}" value="{{this}}"> <input type="radio" class="product-opt" name="opt-{{../../this.optName}}" value="{{this}}">
@ -53,7 +53,7 @@
{{#ifCond this.optType '==' "checkbox"}} {{#ifCond this.optType '==' "checkbox"}}
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input type="checkbox" class="product-opt" name="opt-{{../this.optName}}" value="{{../this.optName}}"><strong>{{../this.optName}}</strong> <input type="checkbox" class="product-opt" name="opt-{{../this.optName}}" value="{{../this.optName}}"><strong class="left-pad-10">{{../this.optLabel}}</strong>
</label> </label>
</div> </div>
{{/ifCond}} {{/ifCond}}