support for new templating for product options
[bse.git] / site / templates / admin / prodopt_delete.tmpl
CommitLineData
8a3b8db8 1<:wrap admin/base.tmpl title => "Delete Product Option", menuitem=>"none", showtitle=>"1" :>
58baa27b
TC
2<:include admin/product_menu.tmpl:>
3<form action="<:script:>" method="post">
5b816615
TC
4<input type="hidden" name="id" value="<:= article.id:>" />
5<input type="hidden" name="option_id" value="<:= option.id:>" />
58baa27b
TC
6<input type="hidden" name="_t" value="prodopts" />
7<:csrfp admin_delete_option hidden:>
8a3b8db8
TC
8<table class="editform editformtiny">
9<tr>
10 <th>Option:</th>
5b816615 11 <td><:= option.name:></td>
8a3b8db8
TC
12</tr>
13<tr>
14 <th>Values:</th>
15<td>
5b816615
TC
16<:.set values = [ option.values ] :>
17<:.if values.size :>
18<:.for dboptionvalue in values :>
19<div><:= dboptionvalue.value:></div>
20<:.end for :>
21<:.else :>
58baa27b 22<p>No values defined for this option</p>
5b816615 23<:.end if:>
8a3b8db8
TC
24</td>
25</tr>
26<tr>
27 <td class="buttons" colspan="2">
28 <input type="submit" name="a_delete_option" value="Delete" />
29 <input type="submit" value="Return to product options" />
30</td>
31</tr>
32</table>
33</form>