File: manage_tabs.dtml

package info (click to toggle)
zope-externaleditor 0.9.3-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 368 kB
  • ctags: 120
  • sloc: python: 1,245; makefile: 45
file content (184 lines) | stat: -rw-r--r-- 6,048 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<dtml-with "_(manage_options=filtered_manage_options())">
<dtml-if manage_options>
<dtml-call "REQUEST.set('n_', _.len(manage_options)-1)">
<dtml-call "REQUEST.set('a_', 0)">
<dtml-in manage_options mapping>
<dtml-if expr="REQUEST.URL[-(_.len(action)):]==action or
                REQUEST.URL[-17:]=='/manage_workspace' and _['sequence-start']">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
<dtml-if "_.has_key('management_view') and management_view==label">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
</dtml-in>


<table cellpadding="0" cellspacing="0" width="100%" border="0">

<tr>
  <td bgcolor="#000000" rowspan="5" width="10%" valign="bottom" 
   align="left">&nbsp;&nbsp;<img src="&dtml-BASEPATH1;/p_/sp" 
   width="2" height="1" alt="" />
  </td>
  <td bgcolor="#000000" colspan="<dtml-var "4 * (n_ + 1)">"><img 
   src="&dtml-BASEPATH1;/p_/sp" width="1" height="5" alt="" /></td>
</tr>

<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td bgcolor="#ffffff" rowspan="2" valign="top" 
   align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
   width="1" height="2" alt="" /></td>
  <td bgcolor="#ffffff" rowspan="2" valign="top" 
   align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td bgcolor="#efefef" rowspan="2" valign="top" 
   align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp"
 width="1" height="2" alt="" /></td>
  <td bgcolor="#efefef" rowspan="2" valign="top" 
   align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" 
   height="5" alt="" /></td>
  <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options mapping>
<dtml-let s_item=sequence-item s_index=sequence-index>
<dtml-if "s_index==a_">
  <td bgcolor="#ffffff" valign="bottom" class="tab-small" 
   align="center"><font face="Verdana, Arial, Helvetica" 
   size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
   >href="&dtml-action;"<dtml-else
   >href="&dtml-URL1;"</dtml-if
   ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
   >><span style="color: #000000;"><strong><dtml-var "s_item['label']"
   ></strong></span></a>&nbsp;</font></td>
<dtml-else>
  <td bgcolor="#efefef" valign="bottom" class="tab-small" 
   align="center"><font face="Verdana, Arial, Helvetica" 
   size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
   >href="&dtml-action;"<dtml-else
   >href="&dtml-URL1;"</dtml-if
   ><dtml-if "s_item.get('target')"> target="&dtml-target;"</dtml-if
   >><span style="color: #000000;"><strong><dtml-var "s_item['label']"
   ></strong></span></a>&nbsp;</font></td>
</dtml-if>
</dtml-let>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td colspan="3" bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td colspan="3" bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
<tr>
<dtml-in manage_options>
<dtml-if "_['sequence-index']==a_">
  <td colspan="3" bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
<dtml-else>
  <td colspan="3" bgcolor="#c0c0c0"><img src="&dtml-BASEPATH1;/p_/sp"
 width="2" height="1" alt="" /></td>
</dtml-if>
</dtml-in>
</tr>
</table>
</dtml-if>

<dtml-unless MANAGE_TABS_NO_BANNER>
  <br />
  <table width="100%" cellspacing="0" cellpadding="2" border="0">
  <tr class="location-bar">
    <td align="left" valign="top">
    <div class="std-text">
    <dtml-if icon>
    <img src="&dtml-BASEPATH1;/&dtml-icon;" 
         alt="&dtml-meta_type;" border="0" />
    </dtml-if>
    <strong>
    <dtml-if meta_type>
      <dtml-if class_manage_path>
    <a href="&dtml-BASEPATH1;&dtml-class_manage_path;"
       title="Manage the ZClass of this object">&dtml-meta_type;</a>
      <dtml-else>
    &dtml-meta_type;
      </dtml-if>
    <dtml-else>
    Object
    </dtml-if> 
    at <dtml-var expr="tabs_path_default(REQUEST)">
    </strong>
    <dtml-if locked_in_version>
      <dtml-if modified_in_version>
        <img src="&dtml-BASEPATH1;/p_/locked"
         alt="This item has been modified in this version" />
      <dtml-else>
        <img src="&dtml-BASEPATH1;/p_/lockedo"
         alt="This item has been modified in another version" />
              (<em>&dtml-locked_in_version;</em>)
      </dtml-if>
    </dtml-if>
    <dtml-try>
        <dtml-var expr="externalEditLink_(this())">
    <dtml-except>
    </dtml-try>
    <dtml-if wl_isLocked>
     <img src="&dtml-BASEPATH1;/p_/davlocked"
      alt="This item has been locked by WebDAV"
      title="This item has been locked by WebDAV" />
    </dtml-if wl_isLocked>
    </div>
    </td>
  <dtml-if "_.has_key('help_topic') and _.has_key('help_product')">
  <td align="right" valign="top">
  <div class="std-text">
  <dtml-var "HelpSys.helpLink(help_product, help_topic)">
  </div>
  </td>
  <dtml-else>
  <dtml-if manage_options>
  <dtml-with "_(option=manage_options[a_])">
  <dtml-if "option.has_key('help')">
  <td align="right" valign="top">
  <div class="std-text">
  <dtml-var "HelpSys.helpLink(option['help'][0], option['help'][1])">
  </div>
  </td>
  </dtml-if>
  </dtml-with>
  </dtml-if>
  </dtml-if>
  </tr>
  </table>

<dtml-if Zope-Version>
<div class="system-msg">
<em>You are currently working in version <a href="&dtml-SERVER_URL;&dtml-Zope-Version;/manage_main">&dtml-Zope-Version;</a></em>
</div>
</dtml-if>
</dtml-unless>

<dtml-if manage_tabs_message>
<div class="system-msg">
<dtml-var manage_tabs_message newline_to_br> 
(<dtml-var ZopeTime fmt="%Y-%m-%d %H:%M">)
</div>
</dtml-if>

</dtml-with>