]> git.imager.perl.org - bse.git/blob - site/templates/admin/edit_steps.tmpl
1822ac0f361c8d8b54f680dd955a260a71aae339
[bse.git] / site / templates / admin / edit_steps.tmpl
1 <:wrap admin/xbase.tmpl title=>"Manage Relationships" :>
2 <h1>Manage step <:ifMatch [article generator] "Product":><:or:> children/<:eif:>parents</h1>
3 <:ifMessage:> 
4 <p><b><:message:></b></p>
5 <:or:><:eif:>
6
7 <p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:if Match [article generator] "Product":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
8     product</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> <:or
9     Match:><:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
10     shop</a><:or Eq:><a href="/cgi-bin/admin/add.pl?id=<:article id:>"><:ifMatch
11     [article generator] "Catalog":>Edit catalog<:or:>Edit article<:eif:></a><:eif
12     Eq:><:eif Match:> |</p><:if New:><:or New:> <:if Match [article generator] "Product":><:or Match:> 
13 <h2><a name="step"></a>Step children</h2>
14 <table border="0" cellspacing="0" cellpadding="0" bgcolor='#000000' width="100%" class="table">
15   <tr><td>
16       <table border="0" cellpadding="6" cellspacing="1" width="100%">
17         <tr bgcolor="#FFFFFF"> 
18           <th>Id</th>
19           <th width="100%">Title</th>
20           <th>Release</th>
21           <th>Expire</th>
22           <th>Modify</th>
23                   <th>Move</th>
24         </tr>
25         <:if Kids:>
26         <tr bgcolor="#FFFFFF"> 
27           <td colspan="6" align="center">Note: Delete only removes the stepchild 
28             relationship. It does not delete the article.</td>
29         </tr>
30  
31 <:if UserCan edit_reorder_children:article:>
32         <tr> 
33           <td colspan="6" bgcolor="#FFFFFF">Sort by: <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&amp;sort=title&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">title</a> | <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&amp;sort=date&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">date</a> | <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&amp;reverse=1&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">reverse</a></td>
34         </tr>
35 <:or UserCan:><:eif UserCan:>
36         <form action="<:script:>" method="post">
37           <input type="hidden" name="id" value="<:article id:>" />
38           <input type="hidden" name="_t" value="steps" />
39           <:iterator begin kids:> 
40           <tr bgcolor="#FFFFFF"> 
41             <td align="center" nowrap="nowrap"><:kid id:></td>
42             <td width="100%"><:kid title:></td>
43             <td nowrap="nowrap"><:ifStepKid:> 
44               <:if UserCan edit_stepkid_save:article,edit_stepparent_save:kid :><input type="text" name="release_<:stepkid childId:>" value="<:date "%d/%m/%Y" stepkid release:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepkid release:><:eif UserCan:>
45               <:or:>&nbsp;<:eif:></td>
46             <td nowrap="nowrap"><:ifStepKid:> 
47               <:if UserCan edit_stepkid_save:article,edit_stepparent_save:kid :><input type="text" name="expire_<:stepkid childId:>" value="<:date "%d/%m/%Y" stepkid expire:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepkid expire:><:eif UserCan:>
48               <:or:>&nbsp;<:eif:></td>
49             <td nowrap="nowrap"><:edit kid Edit:> <:ifStepKid:><:if UserCan edit_stepkid_delete:article,edit_stepparent_delete:kid :><a href="<:script:>?del_stepkid=1&amp;id=<:stepkid parentId:>&amp;stepkid=<:stepkid childId:>&amp;_t=steps" onClick="return window.confirm('Are you sure you want to delete this Step child')">Delete</a><:or UserCan:><:eif UserCan:><:or:><:eif:> </td>
50                         <td nowrap="nowrap"><:movestepkid:></td>
51           </tr>
52           <:iterator end kids:> 
53 <:if UserCan edit_stepkid_save:article :>
54           <tr bgcolor="#FFFFFF"> 
55             <td colspan="6" align="center"> 
56               <input type="submit" name="save_stepkids" value="Save Changes" />
57             </td>
58           </tr>
59 <:or UserCan:><:eif UserCan:>
60         </form>
61           <:or Kids:> 
62           <tr bgcolor="#FFFFFF"> 
63             <td colspan="6" align="center">No children</td>
64           </tr>
65           <:eif Kids:> 
66         <:if Possibles:> 
67         <form action="<:script:>" method="post">
68           <input type="hidden" name="id" value="<:article id:>" />
69           <input type="hidden" name="_t" value="steps" />
70           <tr bgcolor="#FFFFFF"> 
71             <td colspan="2"><:possible_stepkids:></td>
72             <td> 
73               <input type="text" name="release" value="01/01/2000" size="10" />
74             </td>
75             <td> 
76               <input type="text" name="expire" value="31/12/2999" size="10" />
77             </td>
78             <td colspan="2"> 
79               <input type="submit" name="add_stepkid" value="Add Stepchild" />
80             </td>
81           </tr>
82         </form>
83         <:or Possibles:><:eif Possibles:> 
84       </table>
85 </td></tr></table>
86 <:eif Match:> <:eif New:> <a name="stepparents"></a>
87 <h2>Step parents</h2>
88 <table border="0" cellspacing="0" cellpadding="0" bgcolor='#000000' width="100%" class="table">
89   <tr><td>
90       <table border=0 cellpadding="6" cellspacing="1" width="100%">
91         <tr bgcolor="#FFFFFF"> 
92           <th>Id</th>
93           <th width="100%">Title</th>
94           <th>Release</th>
95           <th>Expire</th>
96           <th>Modify</th>
97                   <th>Move</th>
98         </tr>
99         <:if StepParents:> 
100         <tr bgcolor="#FFFFFF"> 
101           <td colspan="6" align="center">Note: Delete only removes the stepparent 
102             relationship. It does not delete the article.</td>
103         </tr>
104 <:if UserCan edit_reorder_stepparents:article :>
105         <tr bgcolor="#FFFFFF"> 
106           <td colspan="6">Sort by: <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&amp;sort=title&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">title</a> | <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&amp;sort=date&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">date</a> | <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&amp;reverse=1&amp;refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">reverse</a></td>
107         </tr>
108 <:or UserCan:><:eif UserCan:>
109         <form action="<:script:>" method="post">
110           <input type="hidden" name="id" value="<:article id:>" />
111           <input type="hidden" name="_t" value="steps" />
112           <:iterator begin stepparents:> 
113           <tr bgcolor="#FFFFFF"> 
114             <td align="center" nowrap="nowrap"><a href="<:stepparent_targ admin:>"><:stepparent 
115               parentId:></a></td>
116             <td width="100%"><:stepparent_targ title:></td>
117             <td nowrap="nowrap"> 
118               <:if UserCan edit_stepparent_save:article,edit_stepkid_save:stepparent_targ :><input type="text" name="release_<:stepparent parentId:>" value="<:date "%d/%m/%Y" stepparent release:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepparent release:><:eif UserCan:>
119             </td>
120             <td nowrap="nowrap"> 
121               <:if UserCan edit_stepparent_save:article,edit_stepkid_save:stepparent_targ:><input type="text" name="expire_<:stepparent parentId:>" value="<:date "%d/%m/%Y" stepparent expire:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepparent expire:><:eif UserCan:>
122             </td>
123             <td nowrap="nowrap"><a href="/cgi-bin/admin/add.pl?id=<:stepparent parentId:>">Edit</a> 
124               <:if UserCan edit_stepkid_delete:stepparent_targ,edit_stepparent_delete:article :><a href="<:script:>?del_stepparent=1&amp;id=<:stepparent childId:>&amp;stepparent=<:stepparent parentId:>&amp;_t=steps" onClick="return window.confirm('Are you sure you want to delete this Step parent')">Delete</a> <:or UserCan:><:eif UserCan:></td>
125                           <td nowrap="nowrap"><:movestepparent:></td>
126           </tr>
127           <:iterator end stepparents:> 
128 <:if UserCan edit_stepparent_save:article :>
129           <tr bgcolor="#FFFFFF"> 
130             <td colspan="6" align="center"> 
131               <input type="submit" name="save_stepparents" value="Save Changes" />
132             </td>
133           </tr>
134 <:or UserCan:><:eif UserCan:>
135         </form>
136         <:or StepParents:> 
137         <tr bgcolor="#FFFFFF"> 
138           <td colspan="6" align="center">No step parents</td>
139         </tr>
140         <:eif StepParents:> <:if StepparentPossibles:> 
141         <form action="<:script:>" method="post">
142           <input type="hidden" name="id" value="<:article id:>" />
143           <input type="hidden" name="_t" value="steps" />
144           <tr bgcolor="#FFFFFF"> 
145             <td colspan=2><:stepparent_possibles:></td>
146             <td> 
147               <input type="text" name="release" value="01/01/2000" size="10" />
148             </td>
149             <td> 
150               <input type="text" name="expire" value="31/12/2999" size="10" />
151             </td>
152             <td colspan="2"> 
153               <input type="submit" name="add_stepparent" value="Add Stepparent" />
154             </td>
155           </tr>
156         </form>
157         <:or StepparentPossibles:> 
158         <tr bgcolor="#FFFFFF"> 
159           <td colspan="6" align="center">No more possible catalogs to add.</td>
160         </tr>
161         <:eif StepparentPossibles:> 
162       </table>
163 </td></tr>
164 </table>