Skip to content

Commit

Permalink
ZMI support
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed Aug 24, 2012
1 parent 5097578 commit ecaa520
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,6 @@ object.
</td>
</tr>

<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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,86 @@ Objects indexed: <dtml-var numObjects>
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>

0 comments on commit ecaa520

Please sign in to comment.