fixed withdrawn flow for now

This commit is contained in:
Jon Roberts 2023-04-13 14:32:23 -06:00
parent a38f2a373b
commit f1a96e37fe
No known key found for this signature in database
GPG key ID: EED093582198B041
2 changed files with 2 additions and 2 deletions

View file

@ -485,7 +485,7 @@ class DomainApplication(TimeStampedModel):
except EmailSendingError: except EmailSendingError:
logger.warning("Failed to send confirmation email", exc_info=True) logger.warning("Failed to send confirmation email", exc_info=True)
@transition(field="status", source=STARTED, target=SUBMITTED) @transition(field="status", source=[STARTED, WITHDRAWN], target=SUBMITTED)
def submit(self): def submit(self):
"""Submit an application that is started.""" """Submit an application that is started."""

View file

@ -88,7 +88,7 @@
<td data-sort-value="{{ application.created_at|date:"U" }}" data-label="Date created">{{ application.created_at|date }}</td> <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 data-label="Status">{{ application.status|title }}</td>
<td> <td>
{% if application.status == "started" %} {% if application.status == "started" or application.status == "withdrawn" %}
<a href="{% url 'edit-application' application.pk %}"> <a href="{% url 'edit-application' application.pk %}">
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24"> <svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24">
<use xlink:href="{%static 'img/sprite.svg'%}#edit"></use> <use xlink:href="{%static 'img/sprite.svg'%}#edit"></use>