fix home.html to redirect to forms if status set to started

This commit is contained in:
Jon Roberts 2023-03-27 13:35:26 -06:00
parent 0c718ac964
commit cd101a4b9e
No known key found for this signature in database
GPG key ID: EED093582198B041
2 changed files with 5 additions and 2 deletions

View file

@ -2,6 +2,7 @@
{% block title %}Apply for a .gov domain Status{% endblock %}
{% load static url_helpers %}
{% content %}
{% block form_fields %}
{% for step in steps.all|slice:":-1" %}
@ -100,3 +101,4 @@
</section>
{% endfor %}
{% endblock %}
{% endblock %}

View file

@ -75,14 +75,15 @@
<td data-sort-value="{{ application.created_at|date:"U" }}" data-label="Date created">{{ application.created_at|date }}</td>
<td data-label="Status">{{ application.status|title }}</td>
<td>
<a href="{% url 'application-status' application.pk %}">
{% if application.status == "started" %}
{% if application.status == "started" %}
<a href="{% url 'edit-application' application.pk %}">
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24">
<use xlink:href="{%static 'img/sprite.svg'%}#edit"></use>
</svg>
Edit <span class="usa-sr-only">{{ application.requested_domain.name|default:"New domain request" }} </span>
{% else %}
<a href="{% url 'application-status' application.pk %}">
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24">
<use xlink:href="{%static 'img/sprite.svg'%}#settings"></use>
</svg>