Annotation of kupuMPIWG/plone/libraries.pt, revision 1.1

1.1     ! dwinter     1: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
        !             2:     lang="en"
        !             3:     metal:use-macro="here/kupu_config/macros/master"
        !             4:     i18n:domain="plone">
        !             5: 
        !             6: <body>
        !             7: 
        !             8:     <div class="documentContent" metal:fill-slot="kupu_content">
        !             9: <h3>Kupu Configuration</h3>
        !            10: <h4>Manage libraries</h4>
        !            11: 
        !            12: <p>In the below form, you may manage the list of drawer libraries for
        !            13: the kupu editor. Each property of a library is dynamically expanded at
        !            14: execution time using TALES expressions. That way it is possible, to
        !            15: support libraries like <em>Current folder</em> or <em>My folder</em>
        !            16: very easily.</p>
        !            17: 
        !            18: <form action="" method="post" tal:attributes="action here/absolute_url">
        !            19: 
        !            20: <table>
        !            21: 
        !            22:   <tal:loop repeat="library here/zmi_get_libraries">
        !            23: 
        !            24:   <tr>
        !            25:     <td><input type="checkbox" name="indices:int:list"
        !            26:                tal:attributes="value repeat/library/index"/></td>
        !            27:     <th>ID</th>
        !            28:     <td><input type="text" name="libraries.id:records" size="60"
        !            29:                tal:attributes="value library/id" /></td>
        !            30:   </tr>
        !            31: 
        !            32:   <tr>
        !            33:     <td></td>
        !            34:     <th>Title</th>
        !            35:     <td><input type="text" name="libraries.title:records" size="60"
        !            36:                tal:attributes="value library/title" /></td>
        !            37:   </tr>
        !            38: 
        !            39:   <tr>
        !            40:     <td></td>
        !            41:     <th>URI</th>
        !            42:     <td><input type="text" name="libraries.uri:records" size="60"
        !            43:                tal:attributes="value library/uri" /></td>
        !            44:   </tr>
        !            45: 
        !            46:   <tr>
        !            47:     <td></td>
        !            48:     <th>Source URI</th>
        !            49:     <td><input type="text" name="libraries.src:records" size="60"
        !            50:                tal:attributes="value library/src" /></td>
        !            51:   </tr>
        !            52: 
        !            53:   <tr>
        !            54:     <td></td>
        !            55:     <th>Icon URI</th>
        !            56:     <td><input type="text" name="libraries.icon:records" size="60"
        !            57:                tal:attributes="value library/icon" /></td>
        !            58:  </tr>
        !            59: 
        !            60:   <tr>
        !            61:     <td colspan="3">
        !            62:       <hr />
        !            63:     </td>
        !            64:   </tr>
        !            65: 
        !            66:   </tal:loop>
        !            67: </table>
        !            68: 
        !            69: <p>
        !            70:   <input class="context" type="submit" name="zmi_update_libraries:method" value="Save" />
        !            71:   <input class="context" type="submit" name="zmi_delete_libraries:method" value="Delete" />
        !            72:   <input class="context" type="submit" name="zmi_move_up:method" value="Move Up" />
        !            73:   <input class="context" type="submit" name="zmi_move_down:method" value="Move Down" />
        !            74: </p>
        !            75: 
        !            76: </form>
        !            77: 
        !            78: <form action="" tal:attributes="action string:${here/absolute_url}/zmi_add_library" method="post">
        !            79: <table>
        !            80: 
        !            81:   <tr>
        !            82:     <th>ID</th>
        !            83:     <td><input type="text" name="id" size="60" /></td>
        !            84:   </tr>
        !            85: 
        !            86:   <tr>
        !            87:     <th>Title</th>
        !            88:     <td><input type="text" name="title" size="60" /></td>
        !            89:   </tr>
        !            90: 
        !            91:   <tr>
        !            92:     <th>URI</th>
        !            93:     <td><input type="text" name="uri" size="60" /></td>
        !            94:   </tr>
        !            95: 
        !            96:   <tr>
        !            97:     <th>Source URI</th>
        !            98:     <td><input type="text" name="src" size="60" /></td>
        !            99:   </tr>
        !           100: 
        !           101:   <tr>
        !           102:     <th>Icon URI</th>
        !           103:     <td><input type="text" name="icon" size="60" /></td>
        !           104:   </tr>
        !           105: 
        !           106: </table>
        !           107: 
        !           108: <p>
        !           109:   <input class="context" type="submit" value="Add" />
        !           110: </p>
        !           111: </form>
        !           112: 
        !           113: <form action="" tal:attributes="action string:${here/absolute_url}/zmi_set_default_library" method="post">
        !           114: <table>
        !           115: 
        !           116:   <tr>
        !           117:     <th>Default</th>
        !           118:     <td><input type="text" name="defid" size="60" tal:attributes="value here/zmi_get_default_library;" /></td>
        !           119:   </tr>
        !           120: 
        !           121: </table>
        !           122: 
        !           123: <p>
        !           124:   <input class="context" type="submit" value="Set" />
        !           125: </p>
        !           126: </form>
        !           127: 
        !           128: <p>&nbsp;</p>
        !           129: 
        !           130: <p>The following variables are available in the TALES expressions:</p>
        !           131: 
        !           132: <table>
        !           133:   <tr>
        !           134:     <td><code>object</code></td>
        !           135:     <td>The current context object</td>
        !           136:   </tr>
        !           137:   <tr>
        !           138:     <td><code>object_url</code></td>
        !           139:     <td>The URL of the current context object</td>
        !           140:   </tr>
        !           141:   <tr>
        !           142:     <td><code>folder</code></td>
        !           143:     <td>The folder the context object is located in</td>
        !           144:   </tr>
        !           145:   <tr>
        !           146:     <td><code>folder_url</code></td>
        !           147:     <td>The URL of the folder the context object is located in</td>
        !           148:   </tr>
        !           149:   <tr>
        !           150:     <td><code>portal</code></td>
        !           151:     <td>The portal object</td>
        !           152:   </tr>
        !           153:   <tr>
        !           154:     <td><code>portal_url</code></td>
        !           155:     <td>URL of the portal</td>
        !           156:   </tr>
        !           157:   <tr>
        !           158:     <td><code>member</code></td>
        !           159:     <td>Authenticated member</td>
        !           160:   </tr>
        !           161:   <tr>
        !           162:     <td><code>request</code></td>
        !           163:     <td>Request</td>
        !           164:   </tr>
        !           165: </table>
        !           166: 
        !           167: </div>
        !           168: </body>
        !           169: </html>
        !           170: 

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