[ Index ] |
|
Code source de Kupu-1.3.5 |
1 <?xml version="1.0" ?> 2 <kupu:feature 3 name="toolboxes" 4 implementation="silva" 5 xmlns="http://www.w3.org/1999/xhtml" 6 xmlns:kupu="http://kupu.oscom.org/namespaces/dist" 7 xmlns:i18n="http://xml.zope.org/namespaces/i18n" 8 xmlns:tal="http://xml.zope.org/namespaces/tal" 9 > 10 11 <kupu:part name="properties"> 12 <div class="kupu-toolbox" id="kupu-toolbox-properties"> 13 <h1 class="kupu-toolbox-heading" i18n:translate="">properties</h1> 14 15 <div class="kupu-tooltray"> 16 <form name="kupu-properties-form" id="kupu-properties-form"> 17 <table width="99%" style="color: #333;" border="0"> 18 <tr id="propsrow"> 19 <td valign="top"> 20 name 21 </td> 22 <td valign="top"> 23 input 24 </td> 25 </tr> 26 </table> 27 </form> 28 </div> 29 30 </div> 31 </kupu:part> 32 33 <kupu:part name="characters"> 34 <div class="kupu-toolbox" id="kupu-toolbox-characters"> 35 <h1 class="kupu-toolbox-heading" i18n:translate="">non-standard characters</h1> 36 37 <div class="kupu-tooltray"> 38 <form name="kupu-characters-form"> 39 <select id="charselect"> 40 <option value="">select</option> 41 </select> 42 </form> 43 </div> 44 45 </div> 46 </kupu:part> 47 48 49 <kupu:part name="links"> 50 <div class="kupu-toolbox" id="kupu-toolbox-links"> 51 <script type="text/javascript" tal:define="container model/get_container; folder_context python: '/'.join(container.getPhysicalPath())" tal:content="string: 52 function getLink() { 53 reference.getReference( 54 function(path, id, title) { 55 kupu.getTool('linktool').createLink(path); 56 }, '$container/absolute_url}', 57 '', true);; 58 } 59 "></script> 60 61 <h1 class="kupu-toolbox-heading" i18n:translate="">link</h1> 62 63 <div class="kupu-tooltray"> 64 <div id="kupu-toolbox-addlink"> </div> 65 <div id="kupu-toolbox-editlink" class="kupu-toolbox-editlink"> </div> 66 67 <form name="kupu_link_form" onsubmit="return false;"> 68 <input type="button" class="transport" style="margin-bottom:0.2em;" onclick="getLink(); return false;" value="get link reference..." /> 69 <input class="store" type="text" id="kupu-link-input" name="kupu_link_href" style="margin-left:0.2em; width:96%" /><br /> 70  link target 71 <select id="kupu-linktarget-select"> 72 <option value="_self">same window</option> 73 <option value="_blank">new window</option> 74 <option value="input">custom target</option> 75 </select><br /> 76 <input class="store" type="text" id="kupu-linktarget-input" name="kupu_link_target" style="margin-left: 0.2em; width: 96%" /> 77 <input type="button" class="button" value="add link" id="kupu-link-addbutton" /> 78 <input type="button" class="button" value="update link" id="kupu-link-updatebutton" /> 79 <input type="button" class="warning" value="remove" id="kupu-link-delbutton" /> 80 </form> 81 82 </div> 83 </div> 84 </kupu:part> 85 86 <kupu:part name="indexes"> 87 <div class="kupu-toolbox" id="kupu-toolbox-indexes"> 88 89 <h1 class="kupu-toolbox-heading" i18n:translate="">index item</h1> 90 91 <div class="kupu-tooltray"> 92 93 <form name="kupu_index_form" onsubmit="return false;"> 94 <input class="store" type="text" id="kupu-index-input" name="kupu_index_href" style="margin-left:0.2em; width:96%" /> 95 <input type="button" class="button" value="add index" id="kupu-index-addbutton" /> 96 <input type="button" class="button" value="update index" id="kupu-index-updatebutton" /> 97 <input type="button" class="warning" value="remove" id="kupu-index-deletebutton" /> 98 </form> 99 100 </div> 101 102 </div> 103 104 </kupu:part> 105 106 <kupu:part name="images"> 107 108 <div class="kupu-toolbox" id="kupu-toolbox-images"> 109 110 <script type="text/javascript" tal:define="container model/get_container; folder_context python: container" tal:content="string: 111 function getImage() { 112 reference.getReference( 113 function(path, id, title) { 114 var imgtool = kupu.getTool('imagetool'); 115 imgtool.createImage(path); 116 if (title) { 117 var selNode = kupu.getSelectedNode(); 118 var image = kupu.getNearestParentOfType(selNode, 'img'); 119 image.setAttribute('title', title); 120 imgtool.updateState(selNode); 121 }; 122 }, '$folder_context/absolute_url}', 123 'Silva Image', true);; 124 } 125 "></script> 126 127 128 <h1 class="kupu-toolbox-heading" i18n:translate="">image</h1> 129 130 <div class="kupu-tooltray"> 131 132 <form name="kupu_image_form" onsubmit="return false" tal:define="container model/get_container"> 133 134 <input type="button" class="transport" onclick="getImage()" value="get image reference..." /> 135 136 <div id="kupu-toolbox-image-edit" style="color: black; display: none"> 137 <input type="button" class="transport" value="edit image..." 138 tal:attributes="onclick string:window.open('$container/absolute_url}/' + getFromSelector('kupu-toolbox-image-src').value + '/edit')" /> 139 <input type="text" id="kupu-toolbox-image-src" style="margin-left:0.2em; width:96%" /> 140  link to:<br /> 141 <input type="text" id="kupu-toolbox-image-link" style="margin-left:0.2em; width:96%" /> 142 <input type="checkbox" id="kupu-toolbox-image-link-checkbox-hires" name="linkcb" value="hires" checked="checked" />link to high resolution version<br /> 143  target for link 144 <select id="kupu-toolbox-image-target" style="margin-left:0.2em"> 145 <option value="_self">same window</option> 146 <option value="_blank">new window</option> 147 <option value="input">custom target</option> 148 </select><br /> 149 <input type="text" id="kupu-toolbox-image-target-input" style="margin-left:0.2em; width:96%; display: none" /> 150  image alignment 151 <select id="kupu-toolbox-image-align" style="margin-left:0.2em"> 152 <option value="default">default</option> 153 <option value="image-left">align left</option> 154 <option value="image-center">align center</option> 155 <option value="image-right">align right</option> 156 <option value="float-left">float left</option> 157 <option value="float-right">float right</option> 158 </select><br /> 159  tooltip:<br /> 160 <input type="text" id="kupu-toolbox-image-alt" style="margin-left:0.2em; width: 96%" /><br /> 161 <input type="button" class="button" value="update image" /> 162 163 </div> 164 </form> 165 166 </div> 167 168 </div> 169 </kupu:part> 170 171 <kupu:part name="citation"> 172 173 <div class="kupu-toolbox" id="kupu-toolbox-citation"> 174 175 <h1 class="kupu-toolbox-heading" i18n:translate="">citation</h1> 176 177 <div class="kupu-tooltray"> 178 179 <form name="kupu-citation-form"> 180 <table width="100%" cellpadding="0" cellspacing="0"> 181 <tbody> 182 <tr> 183 <td> 184 <table width="100%" style="color: #333;" border="0"> 185 <tr> 186 <td width="30%">author</td> 187 <td><input class="store" type="text" id="kupu-citation-authorinput" /></td> 188 </tr> 189 <tr> 190 <td>source</td> 191 <td><input class="store" type="text" id="kupu-citation-sourceinput" /></td> 192 </tr> 193 </table> 194 </td> 195 </tr> 196 <tr> 197 <td> 198 <input type="button" class="button" value="add citation" id="kupu-citation-addbutton" /> 199 <input type="button" class="button" value="update citation" id="kupu-citation-updatebutton" /> 200 <input type="button" class="warning" value="remove" id="kupu-citation-deletebutton" /> 201 </td> 202 </tr> 203 </tbody> 204 </table> 205 </form> 206 207 </div> 208 209 </div> 210 211 </kupu:part> 212 213 <kupu:part name="abbr"> 214 215 <div class="kupu-toolbox" id="kupu-toolbox-abbr"> 216 217 <h1 class="kupu-toolbox-heading" i18n:translate="">abbreviations and acronyms</h1> 218 219 <div class="kupu-tooltray"> 220 221 <form name="kupu-abbr-form"> 222 <table width="100%" cellpadding="0" cellspacing="0"> 223 <tbody> 224 <tr> 225 <td> 226 <table width="100%" style="color: #333;" border="0"> 227 <tr> 228 <td>title</td> 229 <td><input class="store" type="text" id="kupu-abbr-title" /></td> 230 </tr> 231 <tr id="kupu-abbr-radiorow"> 232 <td>type</td> 233 <td> 234 <input type="radio" id="kupu-abbr-type-abbr" 235 name="kupu-abbr-type" value="abbr" checked="checked" /> 236 abbreviation 237 <input type="radio" id="kupu-abbr-type-acronym" 238 name="kupu-abbr-type" value="acronym" /> 239 acronym 240 </td> 241 </tr> 242 </table> 243 </td> 244 </tr> 245 <tr> 246 <td> 247 <input type="button" class="button" value="add element" id="kupu-abbr-addbutton" /> 248 <input type="button" class="button" value="update element" id="kupu-abbr-updatebutton" /> 249 <input type="button" class="warning" value="remove element" id="kupu-abbr-deletebutton" /> 250 </td> 251 </tr> 252 </tbody> 253 </table> 254 </form> 255 256 </div> 257 258 </div> 259 260 </kupu:part> 261 262 <kupu:part name="tables"> 263 264 <div class="kupu-toolbox" id="kupu-toolbox-tables"> 265 <!-- start kupu toolbox tables --> 266 267 <h1 class="kupu-toolbox-heading" i18n:translate="">table</h1> 268 269 <div class="kupu-tooltray"> 270 271 <table width="100%" cellpadding="0" cellspacing="0"> 272 <tbody> 273 <tr> 274 <td> 275 <table width="100%" style="color: #333;"> 276 <tr> 277 <td class="align-right" width="30%">table class</td> 278 <td> 279 <select class="manipulator" id="kupu-table-classchooser"> 280 <option value="plain">plain</option> 281 <option value="list">list</option> 282 <option value="grid">grid</option> 283 <option value="datagrid">datagrid</option> 284 </select> 285 </td> 286 </tr> 287 </table> 288 </td> 289 </tr> 290 <tr> 291 <td colspan="2"> 292 <div id="kupu-toolbox-addtable" class="kupu-toolbox-addtable"> 293 <table width="100%" style="color: #333;"> 294 <tr> 295 <td class="align-right" width="30%">rows</td> 296 <td><input class="store" id="kupu-table-newrows"/></td> 297 </tr> 298 <tr> 299 <td class="align-right">columns</td> 300 <td><input class="store" id="kupu-table-newcols"/></td> 301 </tr> 302 <tr> 303 <td class="align-right">heading</td> 304 <td> 305 <input id="kupu-table-makeheader" type="checkbox"/> 306 <label for="kupu-table-makeheader">create</label> 307 </td> 308 </tr> 309 </table> 310 <input type="button" class="button" id="kupu-table-addtable-button" value="add table" /> 311 </div> 312 <div id="kupu-toolbox-edittable" class="kupu-toolbox-edittable" style="display: none"> 313 <table width="100%"> 314 <tr> 315 <td class="align-right" style="padding-right:0.3em" width="30%">column align</td> 316 <td> 317 <select class="manipulator" id="kupu-table-alignchooser"> 318 <option value="left">left</option> 319 <option value="center">center</option> 320 <option value="right">right</option> 321 </select> 322 </td> 323 </tr> 324 <tr> 325 <td class="align-right" style="padding-right: 0.3em">column widths</td> 326 <td><input type="text" id="kupu-table-columnwidth" /></td> 327 </tr> 328 <tr> 329 <td class="align-right">column</td> 330 <td> 331 <input type="button" class="button" id="kupu-table-addcolumn-button" value="add column" /> 332 <input type="button" class="warning" id="kupu-table-delcolumn-button" value="remove" /> 333 </td> 334 </tr> 335 <tr> 336 <td class="align-right">row</td> 337 <td> 338 <input type="button" class="button" id="kupu-table-addrow-button" value="add row" /> 339 <input type="button" class="warning" id="kupu-table-delrow-button" value="remove" /></td> 340 </tr> 341 <tr> 342 <td class="align-right">table</td> 343 <td> 344 <input type="button" class="button" id="kupu-table-fix-button" value="cleanup" /> 345 <input type="button" class="warning" id="kupu-table-delete-button" value="remove" /> 346 </td> 347 </tr> 348 <tr> 349 <td class="align-right" colspan="2"> 350 <input type="button" class="button" value="update table" /> 351 </td> 352 </tr> 353 </table> 354 </div> 355 </td> 356 </tr> 357 </tbody> 358 </table> 359 360 </div> 361 362 <!-- end kupu toolbox tables --> 363 </div> 364 365 </kupu:part> 366 367 368 <kupu:part name="toc"> 369 <div class="kupu-toolbox" id="kupu-toolbox-toc"> 370 371 <h1 class="kupu-toolbox-heading" i18n:translate="">table of contents</h1> 372 373 <div class="kupu-tooltray"> 374 375 <form name="kupu_index_form" onsubmit="return false;"> 376 <select id="kupu-toolbox-toc-depth"> 377 <option value="1">1 level</option> 378 <option value="2">2 levels</option> 379 <option value="3">3 levels</option> 380 <option value="4">4 levels</option> 381 <option value="5">5 levels</option> 382 <option value="6">6 levels</option> 383 <option value="7">7 levels</option> 384 <option value="8">8 levels</option> 385 <option value="9">9 levels</option> 386 <option value="-1">unlimited</option> 387 </select> 388 <input class="button" type="button" value="add toc" id="kupu-toc-add-button" /> 389 <input class="warning" type="button" value="remove" id="kupu-toc-del-button" /> 390 </form> 391 392 </div> 393 394 </div> 395 396 </kupu:part> 397 398 <kupu:part name="external_source"> 399 <div class="kupu-toolbox" id="kupu-toolbox-extsource"> 400 401 <h1 class="kupu-toolbox-heading" i18n:translate="">external source</h1> 402 403 <div class="kupu-tooltray"> 404 405 <div id="kupu-extsource-formcontainer"> 406 </div> 407 408 <form name="kupu_extsource_form" onsubmit="return false"> 409 <select id="kupu-toolbox-extsource-id"> 410 <tal:block repeat="extsource here/get_available_sources"> 411 <tal:block define="id python: extsource[0]; object python:extsource[1]"> 412 <option tal:attributes="value id" tal:content="python:object.get_title() or id" /> 413 </tal:block> 414 </tal:block> 415 </select> 416 417 <input class="button" type="button" value="add external source" id="kupu-extsource-addbutton" /> 418 <input class="cancel" type="button" value="cancel" id="kupu-extsource-cancelbutton" /> 419 <input class="button" type="button" value="update source" id="kupu-extsource-updatebutton" /> 420 <input class="warning" type="button" value="remove" id="kupu-extsource-delbutton" /> 421 </form> 422 423 </div> 424 425 </div> 426 </kupu:part> 427 428 <kupu:part name="typochars"> 429 <div class="kupu-toolbox" id="kupu-toolbox-typochars"> 430 431 <h1 class="kupu-toolbox-heading" i18n:translate="">typographical characters</h1> 432 <div class="kupu-tooltray"> 433 <!-- euro , ` ' ,, `` '' << >> - - --> 434 € ‚ ‘ ’ „ “ ” « » — – · 435 </div> 436 437 </div> 438 </kupu:part> 439 440 <kupu:part name="save"> 441 <div class="kupu-toolbox" id="kupu-toolbox-save"> 442 443 <h1 class="kupu-toolbox-heading" i18n:translate="">save</h1> 444 <div class="kupu-tooltray"> 445 <form action="." method="POST" onsubmit="return false"> 446 <input type="button" class="button" value="save document" id="kupu-save-toolbox-button" onclick="kupu.saveDocument()" /> 447 </form> 448 </div> 449 450 </div> 451 </kupu:part> 452 453 <kupu:part name="cleanupexpressions"> 454 <div class="kupu-toolbox" id="kupu-toolbox-cleanupexpressions"> 455 <h1 class="kupu-toolbox-heading" i18n:translate="">cleanup</h1> 456 <div class="kupu-tooltray"> 457 <select id="kupucleanupexpressionselect" class="kupu-toolbox-st"> 458 </select> 459 <input class="button" type="button" id="kupucleanupexpressionbutton" 460 value="perform" /> 461 </div> 462 </div> 463 </kupu:part> 464 465 </kupu:feature>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 15:30:41 2007 | par Balluche grâce à PHPXref 0.7 |