]>
Commit | Line | Data |
---|---|---|
8a3b8db8 | 1 | <:wrap admin/base.tmpl title => "Product list - Shop Administration":> |
5bc24704 | 2 | <h1>Shop Administration</h1> |
9fae8be7 TC |
3 | <:ifMessage:><p><b><:message:></b></p> |
4 | <:or:><:eif:> | |
abf5bbc6 | 5 | <p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <a href="/cgi-bin/admin/admin.pl?id=<:shopid:>">See |
71fe4ab8 | 6 | shop</a> | <a href="/cgi-bin/admin/add.pl?id=<:shopid:>">Edit shop</a> |
3b5a251a | 7 | | <:ifUserCan shop_order_list:><a href="<:= cfg.admin_url2("shopadmin", "order_list") :>">Manage orders</a> | <:or:><:eif:><a href="/cgi-bin/admin/admin.pl?id=<:shopid:>"></a><:if |
35c0719f TC |
8 | ShowStepKids:><a href="<:script:>?showstepkids=0">Hide step children</a><:or |
9 | ShowStepKids:><a href="<:script:>?showstepkids=1">Show step children</a><:eif | |
eb6bca2e TC |
10 | ShowStepKids:> | |
11 | <:.if request.user_can("bse_shop_coupon_list") -:> | |
12 | <a href="<:= cfg.admin_url2("shopadmin", "coupon_list") :>">Coupon Management</a> | | |
13 | <:.end if -:> | |
14 | </p> | |
a5e3fc4b TC |
15 | <:if Products:> |
16 | <h4>Products list</h4> | |
8a3b8db8 | 17 | <table class="productlist"> |
a5e3fc4b | 18 | <tr> |
8a3b8db8 TC |
19 | <th class="col_id">Id</th> |
20 | <th class="col_name">Name</th> | |
21 | <th class="col_release">Release</th> | |
22 | <th class="col_expire">Expire</th> | |
23 | <th class="col_retail">Retail</th> | |
24 | <th class="col_wsale">Wsale</th> | |
25 | <th class="col_gst">GST</th> | |
26 | <th>Modify</th> | |
27 | <th class="col_note">Note</th> | |
a5e3fc4b TC |
28 | </tr> |
29 | <:iterator begin products:> | |
8a3b8db8 TC |
30 | <tr> |
31 | <td class="col_id"><:product id:></td> | |
32 | <td class="col_name"><a href="<:product admin:>"><:product title:></a></td> | |
33 | <td class="col_release"><:date product release:></td> | |
34 | <td class="col_expire"><:ifMatch [product expire] "9999-12-31":>Never<:or:><:date product expire:><:eif:></td> | |
35 | <td class="col_retail">$<:money product retailPrice:></td> | |
36 | <td class="col_wsale">$<:money product wholesalePrice:></td> | |
37 | <td class="col_gst">$<:money product gst:></td> | |
38 | <td class="col_modify"><a href="/cgi-bin/admin/add.pl?id=<:product id:>">Edit</a> | |
f3fc60c0 TC |
39 | <:if Product listed:> <a href="/cgi-bin/admin/add.pl?hide=1&id=<:product id:>&_csrfp=<:csrfp admin_save_article:>&r=<:cfg site url:><:script:>">Hide</a> |
40 | <:or Product:> <a href="/cgi-bin/admin/add.pl?unhide=1&id=<:product id:>&_csrfp=<:csrfp admin_save_article:>&r=<:cfg site url:><:script:>">Show</a> | |
a5e3fc4b | 41 | <:eif Product:> <:move:> </td> |
8a3b8db8 | 42 | <td class="col_note"><:ifProduct listed:> <:or:>Hidden<:eif:></td> |
a5e3fc4b TC |
43 | </tr> |
44 | <:iterator end products:> | |
45 | </table> | |
a5e3fc4b | 46 | <:or Products:><:eif Products:> |
9fae8be7 | 47 | <:iterator begin catalogs:> <a name="cat<:catalog id:>"></a> |
27feb834 | 48 | <h2>Catalog: <:catalog title:> <:movecat:></h2> |
8a3b8db8 TC |
49 | <:embed catalog catalog.tmpl:> |
50 | <hr /> | |
9fae8be7 | 51 | <:iterator end catalogs:> |
8a3b8db8 TC |
52 | <:ifUserCan edit_add_child:[cfg articles shop]:><form action="/cgi-bin/admin/add.pl"><input type="hidden" name="type" value="Catalog" /> |
53 | <input type="hidden" name="parentid" value="3" /><input type="submit" value="Add Catalog" /></form> | |
a5e3fc4b | 54 | <:if Eq [shop generator] "Generate::Catalog":> |
8a3b8db8 TC |
55 | <form action="/cgi-bin/admin/add.pl"><input type="hidden" name="type" value="Product" /> |
56 | <input type="hidden" name="parentid" value="3" /><input type="submit" value="Add Product" /></form><:or Eq:><:eif Eq:> | |
a5e3fc4b | 57 | <:or:><:eif:> |