Mise à jour de la ligne du listing lors d'un écrasement.
[Plinn.git] / skins / photo_theme / tabs.pt
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7 <title>tabs</title>
8 <link href="zpt_stylesheet.css" rel="stylesheet" media="screen" />
9 <link href="plinn_style.css" rel="stylesheet" media="screen" />
10 </head>
11
12 <body i18n:domain="plinn">
13
14 <div metal:define-macro="tabs"
15 tal:define="filteredActionsList python:[];
16 dummy python:[ filteredActionsList.extend(l) for l in [ actions.get(key, []) for key in ['folder', 'object', 'workflow'] ] ]"
17 tal:condition="python:len(filteredActionsList) > 1" tal:omit-tag="">
18 <div metal:define-macro="standalone_tabs" tal:define="forceTab forceTab|nothing">
19 <ul class="contentTabs">
20 <li class="selected" tal:replace="nothing">
21 <a href=".">View</a>
22 </li>
23 <li tal:repeat="action filteredActionsList"
24 tal:attributes="class python:( (forceTab == action['id']) or (request['URL0'].strip() == action['url'].strip() or request['URL0'].strip().split('/')[-1] == action['id']) ) and 'selected' or nothing">
25 <a href="#" tal:attributes="href action/url ; name action/id"
26 tal:content="action/title" i18n:translate="">Edit</a>
27 </li>
28 </ul>
29 </div>
30 </div>
31
32 <div metal:define-macro="additional_tabs"
33 tal:define="filteredActionsList python:actions.get('additional_tabs', [])"
34 tal:condition="filteredActionsList" tal:omit-tag="">
35 <div metal:define-macro="standalone_additional_tabs" tal:define="forceTab forceTab|nothing">
36 <ul class="additionalTabs">
37 <li class="selected" tal:replace="nothing">
38 <a href=".">View</a>
39 </li>
40 <li tal:repeat="action filteredActionsList"
41 tal:attributes="class python:( (forceTab == action['id']) or (request['URL0'].strip() == action['url'].strip() or request['URL0'].strip().split('/')[-1] == action['id']) ) and 'selected' or nothing">
42 <a href="#" tal:attributes="href action/url ; name action/id"
43 tal:content="action/title" i18n:translate="">Edit</a>
44 </li>
45 </ul>
46 </div>
47 </div>
48
49 </body>
50 </html>