Update of /var/cvs/html/mmbase/edit/basic
In directory james.mmbase.org:/tmp/cvs-serv32642
Modified Files:
relation.jsp
Log Message:
some better support for relations to relations (used in didactor)
See also: http://cvs.mmbase.org/viewcvs/html/mmbase/edit/basic
Index: relation.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/edit/basic/relation.jsp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- relation.jsp 20 Aug 2008 07:53:20 -0000 1.18
+++ relation.jsp 22 Aug 2008 12:23:25 -0000 1.19
@@ -85,13 +85,18 @@
<td class="navigate">
<mm:maydelete>
<%-- delete the relation node, not sure about the node_type argument!
--%>
+ <mm:countrelations>
+ <mm:isgreaterthan value="0">(${_} ${_ eq 1 ? 'relation' :
'relations'})</mm:isgreaterthan>
<a href='<mm:url page="commit_node.jsp">
<mm:param name="node_number"><mm:field name="number" /></mm:param>
<mm:param name="node_type"><mm:nodeinfo type="nodemanager"
/></mm:param>
- <mm:param name="delete">true</mm:param>
- </mm:url>' >
+ <mm:param name="deleterelations">true</mm:param>
+ </mm:url>'
+ onclick="${_ eq 0 ? '' : 'return confirm(\'Are you sure?\');'}"
+ >
<span class="delete"><!-- needed for IE --></span><span
class="alt">x</span>
</a>
+ </mm:countrelations>
</mm:maydelete>
<mm:maywrite>
<%-- edit the relation --%>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs