[MKDoc-commit] Added condition to make groups interface only display if groups exist

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Mon May 16 11:18:54 BST 2005


Log Message:
-----------
Added condition to make groups interface only display if groups exist and 
also changed disabled="1" to disabled="disabled" for XHTML validity.

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/admin/properties/groups:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/admin/properties/groups/Attic/en.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -Ltemplates/admin/properties/groups/en.html -Ltemplates/admin/properties/groups/en.html -u -r1.1.2.1 -r1.1.2.2
--- templates/admin/properties/groups/en.html
+++ templates/admin/properties/groups/en.html
@@ -4,7 +4,8 @@
 
 ?-->
 <fieldset
-  class="audience"
+  class="groups"
+  petal:condition="true: self/groups"
 >
   <legend
     lang="en"
@@ -40,20 +41,35 @@
       id="group-checkbox"
       value="12"
       class="input-checkbox"
-      title="Add $group/label to this documents group."
+      title="You cannot select this group for this document."
+      disabled="disabled"
       petal:attributes="id string:group-$group/id; 
                         value group/id; 
                         checked group/checked;
-                        disabled group/readonly;
                         "
+      petal:condition="true: group/readonly"
+    />
+    <input
+      type="checkbox"
+      name="group"
+      id="group-checkbox"
+      value="12"
+      class="input-checkbox"
+      title="Add the document to this group."
+      petal:attributes="id string:group-$group/id; 
+                        value group/id; 
+                        checked group/checked;
+                        "
+      petal:condition="false: group/readonly"
     />
     <label
       for="group-checkbox"
       lang="en"
       xml:lang="en"
       dir="ltr"
-      petal:attributes="for string:group-$group/id"
-      petal:inner="group/name" 
+      petal:attributes="for   string:group-$group/id;
+                        title group/description"
+      petal:content="group/name" 
     >Valid Users</label>
   </p>
 


More information about the MKDoc-commit mailing list