Select a branding with a link, not form

Selecting a branding just takes you to a new page, it doesn’t change
any state.

Links are generally the way you go from one page to another on the web.
This commit is contained in:
Chris Hill-Scott
2018-08-23 09:14:01 +01:00
parent 1e28fe4ffd
commit 9b9acfa291
4 changed files with 22 additions and 42 deletions

View File

@@ -17,16 +17,15 @@
<a href="{{ url_for('.create_email_branding') }}" class="button align-with-heading">Add new brand</a>
</div>
</div>
<div class="grid-row">
<div class="column-three-quarters">
<form method="post">
{{ live_search(target_selector='.multiple-choice', show=show_search_box, form=search_form) }}
{{ radios(form.email_branding) }}
{{ page_footer(
'Next'
) }}
</form>
</div>
</div>
{{ live_search(target_selector='.message-name', show=show_search_box, form=search_form) }}
<nav>
{% for id, name in email_brandings %}
<div class="message-name">
<a href="{{ url_for('.update_email_branding', branding_id=id) }}">
{{name}}
</a>
</div>
{% endfor %}
</nav>
{% endblock %}