[MKDoc-commit] Added more files from Sam's patch

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Mon May 16 10:39:06 BST 2005


Log Message:
-----------
Added more files from Sam's patch

Tags:
----
mkdoc-1-6

Added Files:
-----------
    mkd/templates/admin/group_add:
        en.html
    mkd/templates/admin/group_confirm_delete:
        en.html
    mkd/templates/admin/group_edit:
        en.html
    mkd/templates/admin/group_list:
        en.html
    mkd/templates/admin/properties/groups:
        en.html

-------------- next part --------------
--- /dev/null
+++ templates/admin/group_add/en.html
@@ -0,0 +1,207 @@
+<!DOCTYPE html PUBLIC
+  "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+>
+<!--?
+
+
+This template is used for group creation. 
+
+?-->
+<html
+  lang="en"
+  xml:lang="en"
+  dir="ltr"
+  petal:define="
+    uri                        self/uri;
+    title                      string:Add a Group;
+    lang                       self/lang;
+    dir                        self/direction;
+    align                      self/align; 
+    align_opposite             self/align_opposite;
+    document_uri               self/parent/uri;
+    document_title             self/parent/title;
+    document_lang              self/parent/lang;
+    group                      self/group;
+    document                   plugin: flo::plugin::Cache::Fake;
+    user_list                  plugin: flo::plugin::Admin::UserList;
+    user_add                   plugin: flo::plugin::Admin::UserInsert;
+    group_plugin               plugin: flo::plugin::Admin::Group;
+    preferences                plugin: flo::plugin::Account::Preferences;
+    edit_preferences_uri       string:./${preferences/name};
+               " 
+  petal:attributes="lang lang; xml:lang lang; dir dir"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:petal="http://purl.org/petal/1.0/"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+
+<!--? This is the <head> for admin documents ?-->
+<?include file="/fragments/head_admin/"?>
+
+  <body
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    petal:attributes="lang lang; xml:lang lang; dir dir"
+  >
+
+    <xi:include href="/fragments/admin/" />
+
+    <div class="admin-content">
+      <h1
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+        petal:content="title"
+      >Add a Group</h1>
+
+      <p
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+      >
+        Please complete the following form fields to create a new group.
+      </p>
+
+
+      <div
+        class="error"
+        petal:condition="true:self/has_errors"
+        xmlns:petal="http://purl.org/petal/1.0/"
+      >
+        <p 
+          petal:condition="true:self/has_errors"
+        >Error:</p>
+        <ul 
+          petal:condition="true:self/has_errors"
+        >
+        <div 
+          petal:omit-tag="string:1" 
+          petal:repeat="error self/errors"
+        >
+
+          <li petal:condition="error/is --admin/group/missing_name">
+             You must enter a value for the name field
+          </li>
+          <li petal:condition="error/is --admin/group/name_conflict">
+             The name you chose is already in use by a group.  Please choose another.
+          </li>
+        </div>
+        </ul>
+      </div>
+
+      <form 
+        action="#" 
+        method="post" 
+        accept-charset="UTF-8"
+        enctype="application/x-www-form-urlencoded"
+        petal:attributes="action uri"
+      >
+
+        <input 
+          type="hidden" 
+          name="id" 
+          petal:attributes="value group/id" 
+        />
+
+        <input 
+          type="hidden" 
+          name="rm" 
+          value="save"
+        />
+
+        <fieldset
+          class="group"
+          >
+          <legend
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >Group</legend>
+
+          <p
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >
+            <em
+              class="help"
+            >
+              The name of the group must be unique.
+            </em>
+            <label
+              for="label"
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+            >Name</label>
+            <br />
+            <input 
+              type="text" 
+              name="name"
+              id="name"
+              value="hello" 
+              size="30"
+              petal:attributes="value group/name" 
+            />
+          </p>
+
+          <p
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >
+            <em
+              class="help"
+            >
+              The description for the group should describe the intended use of this group.
+            </em>
+            <label
+              for="label"
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+            >Description</label>
+            <br />
+            <input 
+              type="text" 
+              name="description"
+              id="description"
+              value="hello" 
+              size="40"
+              petal:attributes="value group/description" 
+            />
+          </p>
+
+        </fieldset>
+
+        <p
+          lang="en"
+          xml:lang="en"
+          dir="ltr"
+          align="left"
+          petal:attributes="align align"
+        >
+          <input 
+            type="submit" 
+            value="Create Group"
+            class="input-submit"
+            title="Create a group using the values in this form."
+          />
+        </p>
+
+      </form>
+    </div>
+  </body>
+</html>
--- /dev/null
+++ templates/admin/group_confirm_delete/en.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC
+  "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+>
+<!--?
+
+
+This template is used to confirm group deletion. 
+
+?-->
+<html
+  lang="en"
+  xml:lang="en"
+  dir="ltr"
+  petal:define="
+    uri                        self/uri;
+    title                      string:Delete a Group;
+    lang                       self/lang;
+    dir                        self/direction;
+    align                      self/align; 
+    align_opposite             self/align_opposite;
+    document_uri               self/parent/uri;
+    document_title             self/parent/title;
+    document_lang              self/parent/lang;
+    group                      self/group;
+               " 
+  petal:attributes="lang lang; xml:lang lang; dir dir"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:petal="http://purl.org/petal/1.0/"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+
+<!--? This is the <head> for admin documents ?-->
+<?include file="/fragments/head_admin/"?>
+
+  <body
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    petal:attributes="lang lang; xml:lang lang; dir dir"
+  >
+
+    <xi:include href="/fragments/admin/" />
+
+    <div class="admin-content">
+      <h1
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+        petal:content="title"
+      >Delete an Group</h1>
+
+      <xi:include href="/error/" />
+
+      <form 
+        action="#" 
+        method="post" 
+        accept-charset="UTF-8"
+        enctype="application/x-www-form-urlencoded"
+        petal:attributes="action uri"
+      >
+
+        <input type="hidden" name="id" petal:attributes="value group/id" />
+        <input type="hidden" name="rm" value="delete" />
+  
+        <p
+          lang="en"
+          xml:lang="en"
+          dir="ltr"
+          align="left"
+        >
+           Please confirm that you want to delete the group with 
+           the identifier 
+           <em
+             petal:content=""
+           >$group/name</em>
+           and the description
+           &quot;<strong
+
+             petal:content=""
+           >$group/description</strong>&quot;.<br />
+          <input 
+            type="submit" 
+            value="Delete Group"
+            class="input-submit"
+            title="Delete the selected group."
+          />
+        </p>
+      </form>
+    </div>
+  </body>
+</html>
--- /dev/null
+++ templates/admin/group_edit/en.html
@@ -0,0 +1,207 @@
+<!DOCTYPE html PUBLIC
+  "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+>
+<!--?
+
+
+This template is used for group modification. 
+
+?-->
+<html
+  lang="en"
+  xml:lang="en"
+  dir="ltr"
+  petal:define="
+    uri                        self/uri;
+    title                      string:Edit a Group;
+    lang                       self/lang;
+    dir                        self/direction;
+    align                      self/align; 
+    align_opposite             self/align_opposite;
+    document_uri               self/parent/uri;
+    document_title             self/parent/title;
+    document_lang              self/parent/lang;
+    group                      self/group;
+    document                   plugin: flo::plugin::Cache::Fake;
+    user_list                  plugin: flo::plugin::Admin::UserList;
+    user_add                   plugin: flo::plugin::Admin::UserInsert;
+    group_plugin               plugin: flo::plugin::Admin::Group;
+    preferences                plugin: flo::plugin::Account::Preferences;
+    edit_preferences_uri       string:./${preferences/name};
+               " 
+  petal:attributes="lang lang; xml:lang lang; dir dir"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:petal="http://purl.org/petal/1.0/"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+
+<!--? This is the <head> for admin documents ?-->
+<?include file="/fragments/head_admin/"?>
+
+  <body
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    petal:attributes="lang lang; xml:lang lang; dir dir"
+  >
+
+    <xi:include href="/fragments/admin/" />
+
+    <div class="admin-content">
+      <h1
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+        petal:content="title"
+      >Edit a Group</h1>
+
+      <p
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+      >
+        You can use the following form to amend the name and description of the group.
+      </p>
+
+
+      <div
+        class="error"
+        petal:condition="true:self/has_errors"
+        xmlns:petal="http://purl.org/petal/1.0/"
+      >
+        <p 
+          petal:condition="true:self/has_errors"
+        >Error:</p>
+        <ul 
+          petal:condition="true:self/has_errors"
+        >
+        <div 
+          petal:omit-tag="string:1" 
+          petal:repeat="error self/errors"
+        >
+
+          <li petal:condition="error/is --admin/group/missing_name">
+             You must enter a value for the name field
+          </li>
+          <li petal:condition="error/is --admin/group/name_conflict">
+             The name you chose is already in use by a group.  Please choose another.
+          </li>
+        </div>
+        </ul>
+      </div>
+
+      <form 
+        action="#" 
+        method="post" 
+        accept-charset="UTF-8"
+        enctype="application/x-www-form-urlencoded"
+        petal:attributes="action uri"
+      >
+
+        <input 
+          type="hidden" 
+          name="id" 
+          petal:attributes="value group/id" 
+        />
+
+        <input 
+          type="hidden" 
+          name="rm" 
+          value="save"
+        />
+
+        <fieldset
+          class="group"
+          >
+          <legend
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >Group</legend>
+
+          <p
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >
+            <em
+              class="help"
+            >
+              The name of the group must be unique.
+            </em>
+            <label
+              for="label"
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+            >Name</label>
+            <br />
+            <input 
+              type="text" 
+              name="name"
+              id="name"
+              value="hello" 
+              size="30"
+              petal:attributes="value group/name" 
+            />
+          </p>
+
+          <p
+            lang="en"
+            xml:lang="en"
+            dir="ltr"
+            align="left"
+            petal:attributes="align align"
+          >
+            <em
+              class="help"
+            >
+              The description for the group should describe the intended use of this group.
+            </em>
+            <label
+              for="label"
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+            >Description</label>
+            <br />
+            <input 
+              type="text" 
+              name="description"
+              id="description"
+              value="hello" 
+              size="40"
+              petal:attributes="value group/description" 
+            />
+          </p>
+
+        </fieldset>
+
+        <p
+          lang="en"
+          xml:lang="en"
+          dir="ltr"
+          align="left"
+          petal:attributes="align align"
+        >
+          <input 
+            type="submit" 
+            value="Amend Group"
+            class="input-submit"
+            title="Amend the group values in this form."
+          />
+        </p>
+
+      </form>
+    </div>
+  </body>
+</html>
--- /dev/null
+++ templates/admin/group_list/en.html
@@ -0,0 +1,162 @@
+<!DOCTYPE html PUBLIC
+  "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+>
+<!--?
+
+
+This template is used for listing the audiances. 
+
+?-->
+<html
+  lang="en"
+  xml:lang="en"
+  dir="ltr"
+  petal:define="
+    uri                        self/uri;
+    title                      string:Groups;
+    lang                       self/lang;
+    dir                        self/direction;
+    align                      self/align; 
+    align_opposite             self/align_opposite;
+    document_uri               self/parent/uri;
+    document_title             self/parent/title;
+    document_lang              self/parent/lang;
+    document                   plugin: flo::plugin::Cache::Fake;
+    user_list                  plugin: flo::plugin::Admin::UserList;
+    user_add                   plugin: flo::plugin::Admin::UserInsert;
+    group                      plugin: flo::plugin::Admin::Group;
+    preferences                plugin: flo::plugin::Account::Preferences;
+    edit_preferences_uri       string:./${preferences/name};
+               " 
+  petal:attributes="lang lang; xml:lang lang; dir dir"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:petal="http://purl.org/petal/1.0/"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+>
+
+<!--? This is the <head> for admin documents ?-->
+<?include file="/fragments/head_admin/"?>
+
+  <body
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    petal:attributes="lang lang; xml:lang lang; dir dir"
+  >
+
+    <xi:include href="/fragments/admin/" />
+
+    <div class="admin-content">
+      <h1
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        align="left"
+        petal:attributes="align align"
+        petal:content="title"
+      >Groups</h1>
+
+      <p
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+      >
+        You may 
+        <a
+          href="#"
+          petal:attributes="href string:${group/uri}?rm=add"
+        >add a new group</a>
+        or edit or delete the existing groups using the links in the following table.
+      </p>
+
+      <table
+        cellpadding="4"
+        cellspacing="0"
+        border="1"
+        dir="ltr"
+        summary="This table contains a list of the groups."
+        petal:attributes="dir dir"
+      >
+        <caption>
+          Group List
+        </caption>
+        <thead>
+          <tr>
+            <th
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+              title="Group Identifier"
+            >
+              ID
+            </th>
+            <th
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+              title="Group Name"
+            >
+              Name
+            </th>
+            <th
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+              title="Group Description"
+            >
+              Description
+            </th>
+            <th 
+              lang="en"
+              xml:lang="en"
+              dir="ltr"
+              title="Edit options for groups"
+              colspan="2"
+            >
+              Actions
+            </th>
+          </tr>
+        </thead>
+        <tbody>
+          <tr 
+            petal:repeat="group self/groups"
+          >
+            <td 
+              petal:content="group/id"
+            >
+              1
+            </td>
+            <td 
+              petal:content="group/name"
+            >
+              hackers
+            </td>
+            <td 
+              petal:content="group/description"
+            >
+              Programmers
+            </td>
+            <td>
+              <a 
+                href="#" 
+                title="Edit Label"
+                petal:attributes="href string:${group/uri}?rm=edit&id=${group/id}; title string:Edit ${group/label}"
+                petal:content="string:Edit ${group/id}"
+              >Edit</a>
+            </td>
+            <td>
+              <a 
+                href="#" 
+                title="Delete Label"
+                petal:attributes="href string:${group/uri}?rm=confirm_delete&id=${group/id}; title string:Delete ${group/label}"
+                petal:content="string:Delete ${group/id}"
+              >Delete</a>
+            </td>
+          </tr>
+        </tbody>
+      </table>
+
+    </div>
+  </body>
+</html>
--- /dev/null
+++ templates/admin/properties/groups/en.html
@@ -0,0 +1,60 @@
+<!--?
+
+This contains the groups section of the document properties form.
+
+?-->
+<fieldset
+  class="audience"
+>
+  <legend
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    align="left"
+    petal:attributes="align align"
+  >Group Controls</legend>
+
+  <p
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    align="left"
+    petal:attributes="align align"
+  >
+    You may optionally select the groups which will have access to
+    this document.  Group designations from ancestor documents are
+    greyed out, as are groups to which you do not have access.
+  </p>
+
+  <p
+    lang="en"
+    xml:lang="en"
+    dir="ltr"
+    align="left"
+    petal:attributes="align align"
+    petal:repeat="group self/groups"
+  >
+    <input
+      type="checkbox"
+      name="group"
+      id="group-checkbox"
+      value="12"
+      class="input-checkbox"
+      title="Add $group/label to this documents group."
+      petal:attributes="id string:group-$group/id; 
+                        value group/id; 
+                        checked group/checked;
+                        disabled group/readonly;
+                        "
+    />
+    <label
+      for="group-checkbox"
+      lang="en"
+      xml:lang="en"
+      dir="ltr"
+      petal:attributes="for string:group-$group/id"
+      petal:inner="group/name" 
+    >Valid Users</label>
+  </p>
+
+</fieldset>


More information about the MKDoc-commit mailing list