diff --git a/hypha/apply/funds/templates/funds/application_base.html b/hypha/apply/funds/templates/funds/application_base.html index 02fdd8bd48489813ce8584bfe14de297c9badf87..1b54df2f360a7f9c4f41731ae1122edb54a7926a 100644 --- a/hypha/apply/funds/templates/funds/application_base.html +++ b/hypha/apply/funds/templates/funds/application_base.html @@ -53,7 +53,7 @@ {% endif %} {% endif %} {% endfor %} - <input class="link link--button-tertiary" type="submit" value="Save Draft" name="draft" /> + <button class="link link--button-tertiary" type="submit" name="draft" value="Save Draft">Save Draft</button> <button class="link link--button-secondary" type="submit" disabled>Submit for review</button> </form> <p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p> diff --git a/hypha/apply/funds/tests/test_models.py b/hypha/apply/funds/tests/test_models.py index 2a05f3817ccbe6cd1f6adadcfe20aa4057f3aa1a..53b64b21a96fbbd99f1aa1ba2eabb628bbfdac86 100644 --- a/hypha/apply/funds/tests/test_models.py +++ b/hypha/apply/funds/tests/test_models.py @@ -9,8 +9,7 @@ from django.core import mail from django.core.exceptions import ValidationError from django.test import TestCase, override_settings from django.urls import reverse -from django.utils.translation import gettext - +from django.utils.translation import gettext_lazy from hypha.apply.funds.blocks import EmailBlock, FullNameBlock from hypha.apply.funds.models import ApplicationSubmission, Reminder from hypha.apply.funds.workflow import Request @@ -216,7 +215,7 @@ class TestFormSubmission(TestCase): if isinstance(field.block, FullNameBlock): data[field.id] = self.name if name is None else name if draft: - data['draft'] = gettext("Save Draft") + data['draft'] = gettext_lazy("Save Draft") request = make_request(user, data, method='post', site=self.site)