Fixed issue displaying options

master
Mark Moffat 2019-12-16 12:59:35 +10:30
parent 043fce5081
commit 2f2b050c47
3 changed files with 9 additions and 9 deletions

View File

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

View File

@ -10,8 +10,8 @@
<div class="col s12 m10">
{{#each productOptions}}
{{#ifCond this.optType '==' "select"}}
<strong>{{this.optName}}</strong>
<select name="opt-{{this.optName}}" class="form-control product-opt">
<strong>{{../this.optName}}</strong>
<select name="opt-{{../this.optName}}" class="form-control product-opt">
{{#each ../this.optOptions}}
<option value="{{this}}">{{this}}</option>
{{/each}}
@ -19,7 +19,7 @@
{{/ifCond}}
{{#ifCond this.optType '==' "radio"}}
{{#each ../this.optOptions}}
<strong>{{this.optName}}</strong>
<strong>{{../this.optName}}</strong>
<div class="radio">
<label>
<input type="radio" class="product-opt" name="opt-{{../../this.optName}}" value="{{this}}">

View File

@ -10,8 +10,8 @@
<div class="col s12 m10">
{{#each productOptions}}
{{#ifCond this.optType '==' "select"}}
<strong>{{this.optName}}</strong>
<select name="opt-{{this.optName}}" class="form-control product-opt">
<strong>{{../this.optName}}</strong>
<select name="opt-{{../this.optName}}" class="form-control product-opt">
{{#each ../this.optOptions}}
<option value="{{this}}">{{this}}</option>
{{/each}}
@ -19,7 +19,7 @@
{{/ifCond}}
{{#ifCond this.optType '==' "radio"}}
{{#each ../this.optOptions}}
<strong>{{this.optName}}</strong>
<strong>{{../this.optName}}</strong>
<div class="radio">
<label>
<input type="radio" class="product-opt" name="opt-{{../../this.optName}}" value="{{this}}">