include product option pricing in the main dist
[bse.git] / plugins / optionpricing / templates / admin / edit_prodopt_custom.tmpl
CommitLineData
036a0af8
TC
1<:.define addform_value_head:>
2<div class="valueentry"><span>Values</span><span>Price offset</span><span>Default</span></div>
3<:.end define :>
4<:.define addform_value_entry:>
5<div class="valueentry<:= index mod 2 == 0 ? "" : " odd":>">
6 <span><input type="text" name="value<:= index :>" value="<:= cgi.param("value" _ index) :>" maxlength="255" class="editor_field" title="Enter some values here" /><:.call "error_img", field: "value" _ index:></span>
7 <span><input type="text" name="price<:= index :>" value="<:= cgi.param("price" _ index) :>" maxlength="10" /><:.call "error_img", field: "price" _ index:></span>
8 <span><input type="radio" name="default_value" value="value<:= index :>"></span>
9</div>
10<:.end define:>
11<:.define value_entry:>
12<div id="valentry<:= dboptionvalue.id:>" class="valueentry<:= loop.index mod 2 == 1 ? " odd" : "":>">
13<span id="prodoptvalue<:= dboptionvalue.id:>"><:= dboptionvalue.value:></span>
14<span><:= bse.number("money", dboptionvalue.get_custom("value_price") or 0) :></span>
15<:.if dboptionvalue.id == dboption.default_value:>(default)<:.end if:>
16<:.call "value_entry_menu":>
17</div>
18<:.end define:>