<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!-- queryActions.jsp -->
    <div class="heading">
      <fmt:message key="view.actions"/>
    </div>
    <div class="body actions" align="right">
      <p><html:form action="/viewAction" styleId="submitform">
        <html:image property="action" src="images/show_results.png">
          <fmt:message key="view.showresults"/>
        </html:image>
      </html:form><p/>
	  <c:if test="${!empty PROFILE.username && TEMPLATE_BUILD_STATE == null}">
	      <p><form action="<html:rewrite action="/mainChange"/>" method="post">
	        or...&nbsp;<input type="hidden" name="method" value="startTemplateBuild"/>
	        <input type="submit" value="Start building a template query" />
	      </form><p/>
	  </c:if>
        <p>
          <tiles:insert page="saveQuery.jsp"/>
        </p>
    </div>
<!-- /queryActions.jsp -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<!-- queryActions.jsp -->
    <div class="heading">
      <fmt:message key="view.actions"/>
    </div>
    <div class="body actions" align="right">
      <p><html:form action="/viewAction" styleId="submitform">
        <html:image property="action" src="images/show_results.png" disabled="${fn:length(viewStrings) <= 0}">
          <fmt:message key="view.showresults"/>
        </html:image>
      </html:form><p/>
	  <c:if test="${!empty PROFILE.username && TEMPLATE_BUILD_STATE == null}">
	      <p><form action="<html:rewrite action="/mainChange"/>" method="post">
	        or...&nbsp;<input type="hidden" name="method" value="startTemplateBuild"/>
	        <input type="submit" value="Start building a template query" />
	      </form><p/>
	  </c:if>
        <p>
          <tiles:insert page="saveQuery.jsp"/>
        </p>
    </div>
<!-- /queryActions.jsp -->
Disable submit button when nothing is on view
Disable submit button when nothing is on view


Former-commit-id: 202f78ee36437e3cfb6d128ebfaa1a3a4e633845