Changeset 451
- Timestamp:
- 08/09/06 10:12:04
- Files:
-
- qPloneTabs/trunk/skins/qPloneTabs/prefs_tabs_form.cpt (modified) (2 diffs)
- qPloneTabs/trunk/skins/qPloneTabs/qplonetabs.css.dtml (modified) (2 diffs)
- qPloneTabs/trunk/skins/qPloneTabs/qpt_add.py (modified) (1 diff)
- qPloneTabs/trunk/skins/qPloneTabs/qpt_edit.py (modified) (1 diff)
- qPloneTabs/trunk/skins/qPloneTabs/qpt_gettabslist.pt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneTabs/trunk/skins/qPloneTabs/prefs_tabs_form.cpt
r450 r451 24 24 tal:define="errors python:request.get('errors', {})"> 25 25 26 <h1 i18n:translate="heading_plonetabs">Plone Tabs</h1> 27 <a href="" 26 <div id="app" class="viewing"> 27 <h1 i18n:translate="heading_plonetabs">Plone Tabs Configuration <span id="busy"><img src='busy_icon.gif' alt="" /></span></h1> 28 <a href="" 28 29 class="link-parent" 29 30 tal:attributes="href string:${portal_url}/plone_control_panel" 30 31 i18n:translate="label_up_to_plone_setup"> 31 Up to Site Setup 32 </a> 33 34 <div id="app" class="viewing"> 35 <h1> Edit Plone Tabs <span id="busy"><img src='busy_icon.gif' alt="" /></span></h1> 36 <div class="reorder-controls" style="float:right;"> 37 <a href="#" id="reorder">Reorder</a></div> 38 <div class="sort-controls" style="float:right;"> 32 Up to Site Setup 33 </a> 34 <div class="reorder-controls"> 35 <a href="#" id="reorder">Reorder</a> 36 </div> 37 <div class="sort-controls"> 39 38 <a href="#" id="save">Save</a> | 40 <a href="#" id="cancel">Cancel</a></div> 39 <a href="#" id="cancel">Cancel</a> 40 </div> 41 41 <ul class="csshover" 42 42 id="tabslist" tal:content="structure here/qpt_gettabslist" /> … … 53 53 <dd><input id="actaction" type="text" value="" size="30" 54 54 name="action" /></dd></dl> 55 <br />55 56 56 <dl class="advanced collapsible collapsedOnLoad"> 57 57 <dt class="collapsibleHeader">Advanced</dt> qPloneTabs/trunk/skins/qPloneTabs/qplonetabs.css.dtml
r450 r451 9 9 #app.sorting .sort-controls, 10 10 #app.editing li.current .editform, 11 #app.adding #addaction legend,12 11 #app.adding .message-error, 13 12 #app.adding .field-name dt, 14 13 #app.adding .field-action, 14 #app.adding .field-action label, 15 15 #app.adding .advanced, 16 16 #app.adding .field-id, … … 38 38 #app.sorting .drag-handle {display: inline;} 39 39 40 #app.viewing #addaction fieldset,41 #app.sorting #addaction fieldset {42 border: 0;43 padding: 0;44 margin: 0;45 }46 #app.viewing .field-name dd,47 #app.sorting .field-name dd {48 padding: 0;49 margin: 0;50 }51 52 40 #busy {display: none;} 53 41 #app.working #busy {display: inline;} 42 #app.sorting #tabslist img.drag-handle {cursor: move;} 54 43 55 44 /*#app.adding .validation-error {border: 1px solid red;}*/ 56 45 46 /*common***************************************************/ 47 48 div.reorder-controls, 49 div.sort-controls { 50 float:left; 51 } 52 53 .drag-handle { 54 float:left; 55 margin:0.5em 0.5em 0 0; 56 } 57 57 58 #app ul { 58 list-style: none; 59 list-style-type: none; 60 list-style-image: none; 61 margin:2.5em 0 0 0; 59 62 } 60 63 61 64 #app .delete { 62 background: url(&dtml-portal_url;/trash.gif) no-repeat; 63 } 64 65 #app form .field-name, 66 #app form .field-action, 67 #app form .field-id, 68 #app form .field-condition { float:left; } 69 70 #app form .field-name, 71 #app form .field-id { width: 15em; } 72 #app form .field-action, 73 #app form .field-condition { width: 50%; } 74 75 #app form .field-name input, 76 #app form .field-action input, 77 #app form .field-id input, 78 #app form .field-condition input{ width: 90%; } 79 80 #app dl.advanced { clear: both;} 81 82 /*************************************************************/ 83 84 #app.sorting #tabslist img.drag-handle {cursor: move;} 65 background: url(&dtml-portal_url;/trash.gif) 12px 50% no-repeat; 66 float:right; 67 padding: 0 0 0 25px; 68 line-height:1.8em; 69 font-size:80%; 70 border:0; 71 position:relative; 72 margin-right:-6.3em; 73 color: &dtml-linkColor; !important; 74 } 85 75 86 76 #app ul.csshover li { 87 padding: 1px 3px 0 3px; 88 border:&dtml-borderWidth; &dtml-borderStyle; &dtml-backgroundColor;; 89 } 77 border: 1px &dtml-borderStyle; transparent; 78 border-right:0; 79 padding: 0 0.5em; 80 margin: 0.1em 0; 81 width:35em; 82 margin-right:6.5em; 83 line-height:1.5em; 84 clear:left; 85 } 86 87 * html #app ul.csshover li { 88 border-color:white; 89 } 90 91 #app ul.csshover li span { 92 display:block; 93 } 94 95 #app ul.csshover li.current { 96 padding:0; 97 margin: 0; 98 width:36em; 99 } 100 101 #app li.current form { 102 margin:-0.1em; 103 } 104 105 * html #app li.current form { 106 margin: -0.2em 0 0 0; 107 } 108 109 #app fieldset { 110 margin:0; 111 padding:0; 112 border:0; 113 } 114 115 #app dl { 116 margin:0; 117 } 118 119 #app dl label { 120 display:none; 121 } 122 123 #app dl dl label { 124 display:block; 125 } 126 127 #app dd { 128 margin:0; 129 } 130 131 #app dd dl { 132 margin:0.5em 0; 133 } 134 135 #app legend { 136 padding:0 0.5em; 137 top:-1px; 138 color: &dtml-globalFontColor;; 139 float:left; 140 display:none; 141 } 142 143 #app input { 144 width:96.8%; 145 padding:0.17em 0.5em; 146 } 147 148 #app input:focus { 149 border: 1px inset threedface !important; 150 } 151 152 * html #app input { 153 width:97.3%; 154 padding: 0.1em 0.4em; 155 } 156 157 #app form div { 158 line-height:1.4em; 159 margin-top:0.1em; 160 min-height:1.6em; 161 } 162 163 * html #app form div { 164 margin-top:-0.2em; 165 position:relative; 166 height:1%; 167 } 168 169 #app div input { 170 width:auto; 171 padding: 0.05em 0.5em; 172 float:left; 173 margin:0 0.1em 0 0; 174 } 175 176 * html #app div input { 177 padding: 0 0.3em; 178 } 179 180 div.field { margin-top:2em; } 181 182 /*hover***************************************************/ 90 183 91 184 #app.viewing ul.csshover li:hover, 92 185 #app.viewing ul.csshover li.hover { 93 background-color: &dtml-globalBackgroundColor;; 94 border-top: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;; 95 border-left: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;; 186 background-color: #FFFFDD; 187 border: 1px inset threedface; 96 188 cursor: text; 97 189 } 98 190 191 /*edit*****************************************************/ 192 193 #app dl.collapsible { 194 margin-top:0.15em; 195 position:relative; 196 padding:0; 197 border:0 !important; 198 height:auto; 199 line-height:1em; 200 } 201 202 #app dl.collapsible dt.collapsibleHeader { 203 font-weight:normal; 204 position:absolute; 205 padding-right:0.5em; 206 display:block; 207 margin:0; 208 top:0; 209 right:0; 210 color: &dtml-globalFontColor;; 211 line-height:2em; 212 background-color:transparent; 213 } 214 215 #app dl.collapsible dd.collapsibleContent { 216 padding:1em 1.5em 0 1.5em; 217 border:0; 218 background-color:&dtml-globalBackgroundColor;; 219 } 220 221 #app dl.advanced { 222 clear: both; 223 } 224 225 /****************************************************************/ 226 227 #app #addaction { 228 width:36.2em; 229 position:relative; 230 } 231 232 * html #app #addaction { 233 width:36.1em; 234 } 235 236 #app.adding .field-action label { 237 position:absolute; 238 line-height:2.1em; 239 font-size:80%; 240 color: &dtml-globalBorderColor;; 241 right:0.5em; 242 font-weight:normal; 243 background-color:transparent; 244 } 245 246 #app.adding .field-action input { 247 margin-top:0.1em; 248 padding-right:9em; 249 width:26.5em; 250 } 251 252 * html #app.adding .field-action input { 253 padding-right:0.5em; 254 width:96.9%; 255 margin-top:-0.05em; 256 } 257 258 99 259 /* </dtml-with> (do not remove this either :) */ qPloneTabs/trunk/skins/qPloneTabs/qpt_add.py
r450 r451 22 22 <li id="tabslist_%(id)s" > 23 23 <img class="drag-handle" src="drag.gif" alt="" height="11" width="25"> 24 <a class="delete" href="#">Delete</a> 24 25 <span>%(name)s</span> 25 <a class="delete" href="#">Delete</a>26 26 <form class="editform" method="post" action="%(abs_url)s/prefs_tabs_form" name="f%(idx)s"> 27 27 <input type="hidden" name="idx" value="%(idx)s" /> qPloneTabs/trunk/skins/qPloneTabs/qpt_edit.py
r450 r451 22 22 return """ 23 23 <img class="drag-handle" src="drag.gif" alt="" height="11" width="25"> 24 <a class="delete" href="#">Delete</a> 24 25 <span>%(name)s</span> 25 <a class="delete" href="#">Delete</a>26 26 <form class="editform" method="post" action="%(abs_url)s/prefs_tabs_form" name="f%(idx)s"> 27 27 <input type="hidden" name="idx" value="%(idx)s" /> qPloneTabs/trunk/skins/qPloneTabs/qpt_gettabslist.pt
r450 r451 5 5 title tab/description|nothing;"> 6 6 <img class="drag-handle" src="drag.gif" alt="" height="11" width="25" /> 7 <a class="delete" href="#">Delete</a> 7 8 <span tal:content="tab/title">Tab Name</span> 8 <a class="delete" href="#">Delete</a>9 9 <form class="editform" 10 10 method="post" … … 22 22 name string:i${index}_${attrs/name}" /></dd> 23 23 </dl> 24 <br /> 24 25 25 <dl class="collapsible collapsedBlockCollapsible"> 26 26 <dt class="collapsibleHeader">Advanced</dt>
