[MKDoc-commit] Various updates including changing back to a table
for the sort
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Tue Nov 30 11:32:34 GMT 2004
Log Message:
-----------
Various updates including changing back to a table for the sort documents page.
Modified Files:
--------------
mkd/resources/templates/admin/sort:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/admin/sort/en.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lresources/templates/admin/sort/en.html -Lresources/templates/admin/sort/en.html -u -r1.9 -r1.10
--- resources/templates/admin/sort/en.html
+++ resources/templates/admin/sort/en.html
@@ -391,84 +391,291 @@
button.
</p>
- <ol
- class="sort"
- petal:condition="true: self/children"
- >
- <li
- petal:repeat="child self/children"
- >
- <a
- href="#"
- lang="en"
- xml:lang="en"
- dir="ltr"
- title="Move this document down."
- petal:attributes="href self/move_down_uri child"
- i18n:attributes="lang two-letter-language-code;
- xml:lang two-letter-language-code;
- dir text-direction;
- title move-this-document-down"
- i18n:translate="down"
- petal:omit-tag="false: self/move_down_uri child"
- petal:condition="true: self/is_sort_by --position"
- ><span
- lang="en"
- xml:lang="en"
- dir="ltr"
- title="This document is at the bottom of the list."
- i18n:attributes="lang two-letter-language-code;
- xml:lang two-letter-language-code;
- dir text-direction;
- title this-document-is-at-the-bottom"
- i18n:translate="down"
- petal:omit-tag="true: self/move_down_uri child"
- >Down</span></a>
- <bdo
+ <p>
+ <input
+ lang="en"
+ xml:lang="en"
dir="ltr"
- metal:define-slot="seperator"
- petal:attributes="dir self/direction"
- petal:condition="true: self/is_sort_by --position"
- > | </bdo>
- <a
- href="#"
- lang="en"
- xml:lang="en"
- dir="ltr"
- title="Move this document up."
- petal:attributes="href self/move_up_uri child"
- i18n:attributes="lang two-letter-language-code;
- xml:lang two-letter-language-code;
- dir text-direction;
- title move-this-document-up"
- i18n:translate="up"
- petal:omit-tag="false: self/move_up_uri child"
- petal:condition="true: self/is_sort_by --position"
- ><span
- lang="en"
- xml:lang="en"
- dir="ltr"
- title="This document is at the top of the list."
- i18n:attributes="lang two-letter-language-code;
- xml:lang two-letter-language-code;
- dir text-direction;
- title this-document-is-at-the-top"
- i18n:translate="up"
- petal:omit-tag="true: self/move_up_uri child"
- >Up</span></a>
- <strong
+ type="submit"
+ value="Sort Documents"
+ class="input-submit"
+ title="Save changes to the sort order of the child documents."
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ value sort-documents;
+ title save-the-changes-to-the-sort-order;"
+ />
+ </p>
+
+ <table
+ dir="ltr"
+ summary="This table contains a list of the child documents of this document."
+ petal:attributes="dir self/dir"
+ i18n:attributes="summary sort-table-summary;"
+ petal:condition="true: self/children"
+ >
+ <caption
lang="en"
xml:lang="en"
dir="ltr"
- petal:attributes="lang child/lang;
- xml:lang child/lang;
- dir child/direction;"
- petal:content="child/title"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;"
+ i18n:translate="sort-order"
>
- Document Title
- </strong>
- </li>
- </ol>
+ Sort Order
+ </caption>
+ <thead>
+ <tr>
+ <th
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document Title"
+ id="document-title"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title document-title;"
+ i18n:translate="title"
+ >
+ Title
+ </th>
+ <th
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document Name"
+ id="document-name"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title document-name;"
+ i18n:translate="name"
+ >
+ Name
+ </th>
+ <th
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move Document Up"
+ id="move-document-up"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-document-up;"
+ i18n:translate="up"
+ petal:condition="true: self/is_sort_by --position;"
+ >
+ Up
+ </th>
+ <th
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move Document Down"
+ id="move-document-down"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-document-down;"
+ i18n:translate="down"
+ petal:condition="true: self/is_sort_by --position;"
+ >
+ Down
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <div
+ petal:omit-tag=""
+ petal:repeat="child self/children"
+ >
+ <!--? The odd row comes before the even row ?-->
+ <tr
+ class="odd"
+ petal:condition="true: repeat/odd"
+ >
+ <td
+ class="odd"
+ header="document-title"
+ >
+ <a
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document Description"
+ petal:attributes="href child/uri;
+ hreflang child/lang;
+ lang child/lang;
+ xml:lang child/lang;
+ dir child/direction;
+ title child/description;"
+ petal:content="child/title"
+ >Document Title</a>
+ </td>
+ <td
+ class="odd"
+ header="document-name"
+ >
+ <span
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document URI"
+ petal:attributes="lang child/lang;
+ xml:lang child/lang;
+ dir child/direction;
+ title child/uri;"
+ petal:content="child/name"
+ >Document Name</a>
+ </td>
+ <td
+ class="odd"
+ header="move-up"
+ petal:condition="true: self/is_sort_by --position;"
+ >
+ <a
+ href="#"
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move this document down."
+ petal:attributes="href self/move_down_uri child"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-this-document-down"
+ i18n:translate="move-document-down"
+ petal:condition="true: self/move_down_uri child"
+ >Move
+ <em
+ petal:content="child/name"
+ i18n:name="name"
+ >name</em>
+ down</a>
+ </td>
+ <td
+ class="odd"
+ header="move-down"
+ petal:condition="true: self/is_sort_by --position;"
+ >
+ <a
+ href="#"
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move this document up."
+ petal:attributes="href self/move_up_uri child"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-this-document-up"
+ i18n:translate="move-document-up"
+ petal:condition="true: self/move_up_uri child"
+ >Move
+ <em
+ petal:content="child/name"
+ i18n:name="name"
+ >name</em>
+ up</a>
+ </td>
+ </tr>
+ <!--? The even row comes after the odd row ?-->
+ <tr
+ class="even"
+ petal:condition="true: repeat/even"
+ >
+ <td
+ class="even"
+ header="document-title"
+ >
+ <a
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document Description"
+ petal:attributes="href child/uri;
+ hreflang child/lang;
+ lang child/lang;
+ xml:lang child/lang;
+ dir child/direction;
+ title child/description;"
+ petal:content="child/title"
+ >Document Title</a>
+ </td>
+ <td
+ class="even"
+ header="document-name"
+ >
+ <span
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Document URI"
+ petal:attributes="lang child/lang;
+ xml:lang child/lang;
+ dir child/direction;
+ title child/uri;"
+ petal:content="child/name"
+ >Document Name</a>
+ </td>
+ <td
+ class="even"
+ header="move-up"
+ petal:condition="true: self/is_sort_by --position"
+ >
+ <a
+ href="#"
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move this document down."
+ petal:attributes="href self/move_down_uri child"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-this-document-down"
+ i18n:translate="move-document-down"
+ petal:condition="true: self/move_down_uri child"
+ >Move
+ <em
+ petal:content="child/name"
+ i18n:name="name"
+ >name</em>
+ down</a>
+ </td>
+ <td
+ class="even"
+ header="move-down"
+ petal:condition="true: self/is_sort_by --position;"
+ >
+ <a
+ href="#"
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ title="Move this document up."
+ petal:attributes="href self/move_up_uri child"
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ title move-this-document-up"
+ i18n:translate="move-document-up"
+ petal:condition="true: self/move_up_uri child"
+ >Move
+ <em
+ petal:content="child/name"
+ i18n:name="name"
+ >name</em>
+ up</a>
+ </td>
+ </tr>
+ </div>
+ </tbody>
+ </table>
<p>
<input
More information about the MKDoc-commit
mailing list