<%inherit file="/layout/wizard.html"/>
<%namespace file="/lib.html" import="wizard_save_search_form"/>
<div class="content">
    <%include file="_steps.html" args="step=1"/>
    <form method="post" action="${make_url(['alertswizard', app, 'step1', 'create']) | h}">
        <p class="information">
            ${_('<strong>Save the search</strong> before basing an alert on it.')}
        </p>
        ${wizard_save_search_form(app, saved_search, display_share=saved_search.metadata.can_share_app)}
    </form>
</div>
<ul class="buttons splClearfix">
    <li class="left">
        <a href="${make_url(['alertswizard', app, 'step1', 'new'])}" class="splButton-secondary cancel">${_('Cancel')}</a>
    </li>
    <li class="right">
        <button class="splButton-primary" type="submit" onclick="$(document.forms[0]).trigger('submit');">
            <span>${_('Next &raquo;')}</span>
        </button>
    </li>
</ul>