Log message for revision 127568:
  ZMI support

Changed:
  U   
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/addCompositeIndex.dtml
  U   
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/manageCompositeIndex.dtml

-=-
Modified: 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/addCompositeIndex.dtml
===================================================================
--- 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/addCompositeIndex.dtml
    2012-08-24 13:36:03 UTC (rev 127567)
+++ 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/addCompositeIndex.dtml
    2012-08-24 13:36:40 UTC (rev 127568)
@@ -32,24 +32,6 @@
 
   <tr>
     <td align="left" valign="top">
-    <div class="form-label">
-    Composite key<br/>
-    (names of attributes to concatenate)
-    </div>
-    </td>
-    <td align="left" valign="top">
-    <input type="text" name="extra.id:records:string" size="10" />
-    <select name="extra.type:records:string">
-       <option value="">FieldIndex</option>
-       <option value="">KeywordIndex</option>
-    </select>
-    <input type="text" name="extra.attributes:records:string" size="40" /><br/>
-    
-    </td>
-  </tr>
-
-  <tr>
-    <td align="left" valign="top">
     <div class="form-optional">
     Type
     </div>

Modified: 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/manageCompositeIndex.dtml
===================================================================
--- 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/manageCompositeIndex.dtml
 2012-08-24 13:36:03 UTC (rev 127567)
+++ 
Zope/branches/andig-compositeindex/src/Products/PluginIndexes/CompositeIndex/dtml/manageCompositeIndex.dtml
 2012-08-24 13:36:40 UTC (rev 127568)
@@ -7,6 +7,86 @@
 Distinct values: <dtml-var indexSize>
 </p>
 
+<!-- form action="manage_addComponent" method="post" 
enctype="multipart/form-data" -->
+<form action="&dtml-URL1;/" name="adminComponents" method="post">
 
+<table cellspacing="0" cellpadding="2" border="0">
+  <tr><td>&nbsp;</td><td>Component id</td><td>Type</td><td>Indexed attributes 
(attribute1,attribute2,... or leave empty)</td>
+  <dtml-if expr="indexSize() == 0">
+  <dtml-in expr="getIndexComponents()">
+  <tr>
+    <td align="left" valign="top">
+       <input name="del_ids:list" value="<dtml-var "_['sequence-item'].id" >" 
type="checkbox">
+    </td>
+    <td align="left" valign="top">
+    <input type="hidden" name="components.old_id:records:string"  
value="<dtml-var "_['sequence-item'].id" >" />
+    <input type="text" name="components.id:records:string" size="20" 
value="<dtml-var "_['sequence-item'].id" >" />
+    </td>
+    <td align="left" valign="top">
+    <select name="components.meta_type:records:string">
+       <option <dtml-if 
"_['sequence-item'].meta_type=='FieldIndex'">SELECTED</dtml-if> 
value="FieldIndex">FieldIndex</option>
+       <option <dtml-if 
"_['sequence-item'].meta_type=='KeywordIndex'">SELECTED</dtml-if> 
value="KeywordIndex">KeywordIndex</option>
+    </select>
+    </td>
+    <td align="left" valign="top">
+    <input type="text" name="components.attributes:records:string" size="60"  
value="&dtml-rawAttributes;"/><br/>
+    </td>
+  </tr>
+  </dtml-in>
+  <tr>
+    <td>&nbsp;</td>
+    <td colspan="4">
+      <div class="form-element">
+       <input class="form-element" type="submit" 
name="manage_saveComponents:method" value=" Save " />
+       <input class="form-element" type="submit" 
name="manage_delComponents:method" value=" Delete " />
+      </div>
+    </td>
+  </tr>
+  <tr>
+    <td colspan="5">&nbsp;</td> 
+  </tr>
+  <tr>
+    <td>&nbsp;</td>
+    <td align="left" valign="top">
+      <input type="text" name="c_id:string" size="20" value="" />
+    </td>
+    <td align="left" valign="top">
+      <select name="c_meta_type:string">
+       <option>FieldIndex</option>
+       <option>KeywordIndex</option>
+      </select>
+    </td>
+    <td align="left" valign="top">
+      <input type="text" name="c_attributes:string" size="60"  value=""/><br/>
+    </td>  
+  </tr>
+  <tr>
+    <td>&nbsp;</td>
+    <td colspan="4">
+      <div class="form-element">
+       <input class="form-element" type="submit" 
name="manage_addComponent:method" value=" Add " /> 
+      </div>
+    </td>  
+  </tr>
+  <dtml-else>
 
+  <dtml-in expr="getIndexComponents()">
+  <tr>
+    <td align="left" valign="top">
+      &dtml-id;
+    </td>
+    <td align="left" valign="top">
+      &dtml-meta_type;
+    </td>
+    <td align="left" valign="top">
+      &dtml-rawAttributes; &nbsp;
+    </td>
+  </tr>
+  </dtml-in>
+  </dtml-if>
+
+
+</table>
+</form>
+
 <dtml-var manage_page_footer>

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to