<%@ page language="java" %>
<%@ page errorPage="/common/Error.jsp" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/hq.tld" prefix="hq" %>

<tiles:insert definition=".events.config.view.conditions">
  <tiles:put name="showValues" value="false"/>
</tiles:insert>

<c:if test="${not empty Resource}">
 <c:if test="${!alertDef.deleted}">
   <hq:authorization permission="MANAGE_ALERTS">
    <tiles:insert definition=".toolbar.edit">
      <tiles:put name="editUrl"><c:out value="/alerts/Config.do?mode=editConditions&ad=${alertDef.id}&id=${Resource.id}"/></tiles:put>
    </tiles:insert>
   </hq:authorization>
  </c:if>
</c:if>

<c:if test="${not empty ResourceType}">
 <c:if test="${!alertDef.deleted}">
   <hq:authorization permission="MANAGE_SETTINGS">
    <tiles:insert definition=".toolbar.edit">
      <tiles:put name="editUrl"><c:out value="/alerts/Config.do?mode=editConditions&ad=${alertDef.id}&type=${ResourceType.id}"/></tiles:put>
    </tiles:insert>
   </hq:authorization>
  </c:if>
</c:if>

<c:if test="${not empty ResourceGroup}">
 <c:if test="${!alertDef.deleted}">
   <hq:authorization permission="MANAGE_SETTINGS">
    <tiles:insert definition=".toolbar.edit">
      <tiles:put name="editUrl"><c:out value="/alerts/Config.do?mode=editConditions&ad=${alertDef.id}&groupId=${ResourceGroup.id}"/></tiles:put>
    </tiles:insert>
   </hq:authorization>
  </c:if>
</c:if>

<br>
