Skip to content

Commit

Permalink
[chores] Improved HTML layout of accounts/login
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 17, 2023
1 parent 7036fc0 commit 5502369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openwisp_users/accounts/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>{% trans "Sign In" %}</h1>
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
<a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
<button class="primaryAction" type="submit">{% trans "Sign In" %}</button>
<p><input type="submit" class="button" value="{% trans "Sign In" %}" /></p>
<p><a class="button" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a></p>
</form>
{% endblock %}
4 changes: 3 additions & 1 deletion tests/testapp/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ def test_group_reversion(self):
def test_accounts_login(self):
r = self.client.get(reverse('account_login'), follow=True)
self.assertEqual(r.status_code, 200)
self.assertContains(r, '<button class="primaryAction" type="submit">')
self.assertContains(
r, '<input type="submit" class="button" value="Sign In" />', html=True
)

0 comments on commit 5502369

Please sign in to comment.