include product option pricing in the main dist
[bse.git] / plugins / optionpricing / templates / admin / prodopt_edit_custom.tmpl
CommitLineData
036a0af8
TC
1<:.define value_head :>
2<tr>
3 <th>Value</th>
4 <th>Price Offset</th>
5 <th>Default<:.call "error_img", field:"default_value":></th>
6</tr>
7<:.end define:>
8<:.define value_entry:>
9<tr>
10 <td><input type="text" name="value<:= value.id:>" value="<:= cgi.param("save_enabled") ? cgi.param("value" _ value.id) : value.value:>" /><:.call "error_img", field:"value" _ value.id:></td>
11 <td><input type="text" name="price<:= value.id:>" value="<:= cgi.param("save_enabled") ? cgi.param("price" _ value.id) : ((value.get_custom("value_price") or 0) / 100).format("%.2f") :>" /><:.call "error_img", field:"price" _ value.id:></td>
12 <td class="check"><input type="radio" name="default_value" value="<:= value.id:>" <:.if value.id == option.default_value:>checked="checked"<:.end if:> /></td>
13</tr>
14<:.end define:>
15<:-.define newvalue_entry -:>
16<div><label for="newvalue<:= index:>">Value:</label>
17<input type="text" name="newvalue<:= index:>" value="<:=cgi.param("newvalue" _ index) :>:>" /><:.call "error_img", field:"newvalue" _ index :>
18<label for="newprice<:= index:>">Price:</label><input type="text" name="newprice<:= index:>" value="<:=cgi.param("newprice" _ index) :>:>" /><:.call "error_img", field:"newprice" _ index :></div>
19<:.end define-:>