Skip to content

Commit

Permalink
Merge pull request daldal-Mango#43 from SJLEE316/main
Browse files Browse the repository at this point in the history
signup form
  • Loading branch information
dddooo9 authored Aug 29, 2021
2 parents 1b881df + ac1c9a6 commit b9afd13
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Miracle30/static/css/signup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.signup {
display: flex;
flex-direction: column;
align-items: center;
}
30 changes: 20 additions & 10 deletions Miracle30/templates/account/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,27 @@
{% block head_title %}{% trans "Signup" %}{% endblock %}

{% block content %}
<h1>{% trans "Sign Up" %}</h1>
<link rel="stylesheet" href="{% static 'css/signup.css' %}">

<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p>
<section class="main">
<h1 class="text_center">{% trans "Sign Up" %}</h1>

<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}">
{% csrf_token %}
{{ form.as_p }}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
<button type="submit">{% trans "Sign Up" %} &raquo;</button>
</form>
<p class="text_center">
{% blocktrans %}
Already have an account? Then please <a href="{{ login_url }}">sign in</a>.
{%endblocktrans %}
</p>

<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}">
<div class="signup_form">
{% csrf_token %}
{{ form.as_p }}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
</div>
<button type="submit" class="btn1 btn_center">{% trans "Sign Up" %} &raquo;</button>
</form>
</section>

{% endblock %}

0 comments on commit b9afd13

Please sign in to comment.