work in progress: allow bulk changes on relations and corresponding objects

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3929 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-08-02 08:05:30 +00:00
parent 4d574ca1f2
commit 6a142885c0

View file

@ -1,7 +1,8 @@
<html i18n:domain="loops">
<metal:assignments define-macro="listing">
<metal:assignments define-macro="listing"
tal:define="editable request/edit_relations|nothing">
<script type="text/javascript">
function toggleCheckBoxes(toggle, fieldName) {
var w = toggle.form[fieldName];
@ -73,18 +74,33 @@
Predicate
</a>
</td>
<td tal:content="item/order" style="text-align: center">0</td>
<td tal:content="item/relevance" style="text-align: center">1.0</td>
<td style="text-align: center">
<span tal:condition="not:editable"
tal:content="item/order" />
<input size="1"
tal:attributes="value item/order"
tal:condition="editable" />
</td>
<td style="text-align: center">
<span tal:condition="not:editable"
tal:content="item/relevance" />
<input size="1"
tal:attributes="value item/relevance"
tal:condition="editable" />
</td>
</tal:relation>
</tr>
</tbody>
</table>
<div class="formControls">
<input class="context" type="submit" name="form.button.submit"
value="Remove Assignment(s)"
i18n:attributes="value"
tal:attributes="value buttonText" />
<metal:buttons define-slot="specialButtons" />
<!--&nbsp;&nbsp;
<input class="context" type="submit" name="form.button.change_relations"
value="Change Relations"
i18n:attributes="value" />-->
</div>
</form>
</fieldset>