]>
Commit | Line | Data |
---|---|---|
d445674b | 1 | <:wrap admin/base.tmpl title => "Edit Product Option", menuitem=>"none", showtitle=>"1", js => "admin_editprodopt.js" :> |
58baa27b TC |
2 | <:include admin/product_menu.tmpl:> |
3 | <form action="<:script:>" method="post"> | |
4 | <input type="hidden" name="id" value="<:article id:>" /> | |
5 | <input type="hidden" name="option_id" value="<:option id:>" /> | |
6 | <input type="hidden" name="_t" value="prodopts" /> | |
d445674b | 7 | <input type="hidden" name="newvaluecount" id="newvaluecount" value="<:ifCgi newvaluecount:><:cgi newvaluecount:><:or:>0<:eif:>" /> |
58baa27b TC |
8 | <:csrfp admin_save_option hidden:> |
9 | <input type="hidden" name="save_enabled" value="1" /> | |
8a3b8db8 | 10 | <table class="editform editformsmall"> |
58baa27b TC |
11 | <tr> |
12 | <th>Name:</th> | |
13 | <td><input type="text" name="name" value="<:old name option name:>" /></td> | |
14 | <td class="help"><:error_img name:></td> | |
15 | </tr> | |
16 | <tr> | |
17 | <th>Enabled:</th> | |
18 | <td><input type="checkbox" name="enabled" value="1" <:ifOld enabled option enabled:>checked="checked"<:or:><:eif:> /></td> | |
19 | <td class="help"><:error_img name:></td> | |
20 | </tr> | |
21 | <tr> | |
22 | <th>Values:</th> | |
d445674b | 23 | <td id="product_option_values"> |
58baa27b TC |
24 | <table class="editform"> |
25 | <tr> | |
26 | <td colspan="2"></td> | |
27 | <th>Default<:error_img default_value:></th> | |
28 | </tr> | |
29 | <:iterator begin dboptionvalues:> | |
30 | <tr> | |
31 | <th>Value:</th> | |
32 | <td><input type="text" name="value<:dboptionvalue id:>" value="<:oldi [concatenate value [dboptionvalue id]] 0 dboptionvalue value:>" /><:error_img [concatenate value [dboptionvalue id]]:></td> | |
33 | <td class="check"><input type="radio" name="default_value" value="<:dboptionvalue id:>" <:ifEq [dboptionvalue id] [option default_value]:>checked="checked"<:or:><:eif:> /></td> | |
34 | </tr> | |
35 | <:iterator end dboptionvalues:> | |
36 | </table> | |
d445674b TC |
37 | <:if Cgi newvaluecount:> |
38 | <:iterator begin repeats [cgi newvaluecount]:> | |
39 | <div><label for="newvalue<:repeat value:>">Value:</label> | |
40 | <input type="text" name="newvalue<:repeat value:>" value="<:cgi [cat newvalue [repeat value]]:>" /><:error_img [cat newvalue [repeat value]]:></div> | |
41 | <:iterator end repeats:> | |
42 | <:or Cgi:><:eif Cgi:> | |
58baa27b TC |
43 | </td> |
44 | <td class="help"></td> | |
45 | </tr> | |
46 | <tr> | |
47 | <td colspan="2" class="buttons"><input type="submit" name="a_save_option" value="Save" /> | |
48 | <input type="submit" value="Return to product options" /></td> | |
49 | <td></td> | |
50 | </tr> | |
51 | </table> | |
4de47893 | 52 | </form> |