Update of /var/cvs/speeltuin/ernst/vpro-wizards/tagfiles/form
In directory james.mmbase.org:/tmp/cvs-serv14563/tagfiles/form
Modified Files:
view.tag
Log Message:
added the posibility to hard delete related nodes.
See also:
http://cvs.mmbase.org/viewcvs/speeltuin/ernst/vpro-wizards/tagfiles/form
Index: view.tag
===================================================================
RCS file: /var/cvs/speeltuin/ernst/vpro-wizards/tagfiles/form/view.tag,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- view.tag 8 Oct 2008 08:28:57 -0000 1.5
+++ view.tag 22 Oct 2008 12:54:40 -0000 1.6
@@ -11,7 +11,8 @@
<%@ attribute name="searchdir" description="this is the mmbase searchdir, the
direction of the relation. default is 'destination'" %>
<%@ attribute name="edit" type="java.lang.Boolean"%>
-<%@ attribute name="delete" type="java.lang.Boolean"%>
+<%@ attribute name="delete" type="java.lang.Boolean" description="Make it
possible to delete the relation node" %>
+<%@ attribute name="harddelete" type="java.lang.Boolean" description="Make it
possible to directly delete the related node" %>
<%@ attribute name="confirmdelete" type="java.lang.Boolean"
description="wether the user must confirm the deletion of the relation node.
defaults to true" %>
<%@ attribute name="search" type="java.lang.Boolean"%>
<%@ attribute name="create" type="java.lang.Boolean"%>
@@ -202,9 +203,6 @@
<span style="float:left; width:
18px;"> </span>
</mm:first>
<mm:first inverse="true">
- <%--
- <a style="text-decoration:none"
href="${pageContext.request.contextPath}/mmbase/vpro-wizards/system/changeposrelnew.jsp?container=${nodenr}&node=${_nodenr}&direction=down&type=${type}#${anchor}"
class="moveup" onclick="return checkSearch(this);">
- --%>
<a style="text-decoration:none"
href="${urlup}" class="moveup" onclick="return checkSearch(this);">
<img
src="${pageContext.request.contextPath}/mmbase/vpro-wizards/system/img/arrow_up.png"
class="icon" border="0" />
</a>
@@ -217,9 +215,11 @@
<%-- buttons--%>
<div class="icons">
- <mm:node number="${_relationnr}">
- <mm:maydelete><c:set var="maydelete"
value="true"/></mm:maydelete>
- </mm:node>
+ <c:remove var="maydelete" />
+ <mm:node number="${_relationnr}">
<mm:maydelete><c:set var="maydelete" value="true"/></mm:maydelete> </mm:node>
+
+ <c:remove var="mayharddelete" />
+ <mm:node number="${_nodenr}"> <mm:maydelete><c:set
var="mayharddelete" value="true"/></mm:maydelete> </mm:node>
<c:if test="${delete && not empty maydelete}">
<mm:link page="/wizard/post">
@@ -230,6 +230,16 @@
</a>
</mm:link>
</c:if>
+
+ <c:if test="${harddelete && not empty
mayharddelete}">
+ <mm:link page="/wizard/post">
+ <mm:param
name="actions[deleteNode][1].number" value="${_nodenr}" />
+ <mm:param name="flushname"
value="${flushname}" />
+ <a href="${_}" class="delete"
onclick="return doConfirm(${confirmdelete}, 'Weet je zeker dat je dit object
wilt verwijderen? (kan niet hersteld worden)')">
+ <img
src="${pageContext.request.contextPath}/mmbase/vpro-wizards/system/img/delete.png"
class="icon" border="0" alt="" title="Verwijder"/>
+ </a>
+ </mm:link>
+ </c:if>
<c:remove var="maydelete"/>
<mm:node element="${nodetype}" id="currentnode">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs