|
|
@ -18,7 +18,11 @@
|
|
|
|
[% IF handle %]
|
|
|
|
[% IF handle %]
|
|
|
|
<td>[% product.handle %]</td>
|
|
|
|
<td>[% product.handle %]</td>
|
|
|
|
[% ELSE %]
|
|
|
|
[% ELSE %]
|
|
|
|
<td><input type="text" name="handle" value="[% product.handle %]" /></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text" name="handle" title="alphanumeric characters and underscore only"
|
|
|
|
|
|
|
|
value="[% product.handle %]" />
|
|
|
|
|
|
|
|
unique identifier string
|
|
|
|
|
|
|
|
</td>
|
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
[% IF messages.handle %]<tr><td /><td><div class="errormsg">[% messages.handle %]</div></td></tr>[% END %]
|
|
|
|
[% IF messages.handle %]<tr><td /><td><div class="errormsg">[% messages.handle %]</div></td></tr>[% END %]
|
|
|
@ -37,28 +41,43 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="tdkey">name:</td>
|
|
|
|
<td class="tdkey">name:</td>
|
|
|
|
<td><input type="text" name="name" value="[% product.data.name %]" /></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text" name="name" title="free-form string"
|
|
|
|
|
|
|
|
value="[% product.data.name %]" />
|
|
|
|
|
|
|
|
human readable product name
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
[% IF messages.name %]<tr><td /><td><div class="errormsg">[% messages.name %]</div></td></tr>[% END %]
|
|
|
|
[% IF messages.name %]<tr><td /><td><div class="errormsg">[% messages.name %]</div></td></tr>[% END %]
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="tdkey">on sale:</td>
|
|
|
|
<td class="tdkey">on sale:</td>
|
|
|
|
<td><input type="checkbox" class="checkbox" name="on_sale" [% IF product.data.on_sale %]checked="checked"[% END %] /></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="checkbox" class="checkbox" name="on_sale" title="uncheck to disable product"
|
|
|
|
|
|
|
|
[% IF product.data.on_sale %]checked="checked"[% END %] />
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
[% IF messages.on_sale %]<tr><td /><td><div class="errormsg">[% messages.on_sale %]</div></td></tr>[% END %]
|
|
|
|
[% IF messages.on_sale %]<tr><td /><td><div class="errormsg">[% messages.on_sale %]</div></td></tr>[% END %]
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="tdkey">price:</td>
|
|
|
|
<td class="tdkey">price:</td>
|
|
|
|
<td><input type="text" name="price" value="[% product.data.price %]" /></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text" name="price" title="float, specifying Euro"
|
|
|
|
|
|
|
|
value="[% product.data.price %]" />
|
|
|
|
|
|
|
|
selling or setup fee
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
[% IF messages.price %]<tr><td /><td><div class="errormsg">[% messages.price %]</div></td></tr>[% END %]
|
|
|
|
[% IF messages.price %]<tr><td /><td><div class="errormsg">[% messages.price %]</div></td></tr>[% END %]
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="tdkey">weight:</td>
|
|
|
|
<td class="tdkey">weight:</td>
|
|
|
|
<td><input type="text" name="weight" value="[% product.data.weight %]" /></td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text" name="weight" title="integer, specifying gram"
|
|
|
|
|
|
|
|
value="[% product.data.weight %]" />
|
|
|
|
|
|
|
|
weight for shipping
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
[% IF messages.weight %]<tr><td /><td><div class="errormsg">[% messages.weight %]</div></td></tr>[% END %]
|
|
|
|
[% IF messages.weight %]<tr><td /><td><div class="errormsg">[% messages.weight %]</div></td></tr>[% END %]
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="tdkey">billing_profile:</td>
|
|
|
|
<td class="tdkey">billing_profile:</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<select size="1" name="billing_profile">
|
|
|
|
<select size="1" name="billing_profile" title="associated billing profile">
|
|
|
|
[% FOREACH bilprof = bilprofs %]
|
|
|
|
[% FOREACH bilprof = bilprofs %]
|
|
|
|
<option [% IF bilprof.handle == product.data.billing_profile %]selected="selected"[% END %]
|
|
|
|
<option [% IF bilprof.handle == product.data.billing_profile %]selected="selected"[% END %]
|
|
|
|
value="[% bilprof.handle %]">[% bilprof.data.name %]</option>
|
|
|
|
value="[% bilprof.handle %]">[% bilprof.data.name %]</option>
|
|
|
|