
<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>

<html>
<head>
	<title><webwork:text name="'renamefilter.title'"/></title>
</head>

<body>

<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td class="filterSummaryCell">
    <jsp:include page="/includes/navigator/summary-pane.jsp" />
</td>
<td bgcolor=ffffff valign=top>

<table width=100% cellpadding=10 cellspacing=0 border=0><tr><td>

    <webwork:if test="searchRequest/modified == true">
        <page:applyDecorator name="jirapanel">
            <page:param name="width">100%</page:param>
            <page:param name="title"><webwork:text name="'renamefilter.title'"/></page:param>
                <p>
                <webwork:text name="'renamefilter.mustSaveFirst'"/><br>
                &nbsp; <img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle>
                <webwork:text name="'navigator.hidden.operation.savecurrent'">
                    <webwork:param name="'value0'"><a href="<webwork:url value="'SaveFilter!default.jspa'"/>"><b></webwork:param>
                    <webwork:param name="'value1'"></b></a></webwork:param>
                </webwork:text><br>
                &nbsp; <img src="<%= request.getContextPath() %>/images/icons/bullet_creme.gif" height=8 width=8 border=0 align=absmiddle>
                <webwork:text name="'renamefilter.reloadfilter'">
                    <webwork:param name="'value0'"><a href="<webwork:url page="IssueNavigator.jspa?mode=hide"><webwork:param name="'requestId'" value="searchRequest/searchFilterGV/long('id')" /></webwork:url>"><b></webwork:param>
                    <webwork:param name="'value1'"></b></a></webwork:param>
                </webwork:text><br>
                </p>
        </page:applyDecorator>
    </webwork:if>
    <webwork:else>
        <page:applyDecorator name="jiraform">
            <page:param name="action">RenameFilter.jspa</page:param>
            <page:param name="cancelURI">IssueNavigator.jspa</page:param>
            <page:param name="submitName"><webwork:text name="'renamefilter.rename'"/></page:param>
            <page:param name="width">100%</page:param>
            <page:param name="title"><webwork:text name="'renamefilter.title'"/></page:param>
            <page:param name="description">
            <p>
            <webwork:text name="'renamefilter.desc.line1'"/>
            </p>
            <p>
            <webwork:text name="'renamefilter.desc.line2'"/>
            </p>
            </page:param>

            <ui:textfield label="text('common.words.name')" name="'name'" size="30" />
            <ui:textarea label="text('common.concepts.description')" name="'description'" cols="40" rows="3" />
        </page:applyDecorator>
    </webwork:else>

</td></tr></table>
</td></tr></table>

</body>
</html>