Annotation of kupuMPIWG/silva/toolboxes.kupu, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>