mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 01:47:28 +03:00 
			
		
		
		
	Fix buttons
This commit is contained in:
		
							parent
							
								
									9dda2a97da
								
							
						
					
					
						commit
						813032eff7
					
				| 
						 | 
					@ -31,9 +31,9 @@
 | 
				
			||||||
  {% endfor %}
 | 
					  {% endfor %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="buttonHolder">
 | 
					<div class="buttonHolder">
 | 
				
			||||||
      <button class="secondaryAction" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button>
 | 
					      <button class="secondaryAction btn btn-primary" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button>
 | 
				
			||||||
      <button class="secondaryAction" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button>
 | 
					      <button class="secondaryAction btn btn-primary" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button>
 | 
				
			||||||
      <button class="primaryAction" type="submit" name="action_remove" >{% trans 'Remove' %}</button>
 | 
					      <button class="primaryAction btn btn-primary" type="submit" name="action_remove" >{% trans 'Remove' %}</button>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</fieldset>
 | 
					</fieldset>
 | 
				
			||||||
| 
						 | 
					@ -50,7 +50,7 @@
 | 
				
			||||||
    <form method="post" action="{% url 'account_email' %}" class="add_email">
 | 
					    <form method="post" action="{% url 'account_email' %}" class="add_email">
 | 
				
			||||||
        {% csrf_token %}
 | 
					        {% csrf_token %}
 | 
				
			||||||
        {{ form.as_p}}
 | 
					        {{ form.as_p}}
 | 
				
			||||||
        <button name="action_add" type="submit">{% trans "Add E-mail" %}</button>
 | 
					        <button class="btn btn-primary" name="action_add" type="submit">{% trans "Add E-mail" %}</button>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
 | 
					<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
 | 
				
			||||||
{% csrf_token %}
 | 
					{% csrf_token %}
 | 
				
			||||||
    <button type="submit">{% trans 'Confirm' %}</button>
 | 
					    <button class="btn btn-primary" type="submit">{% trans 'Confirm' %}</button>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% else %}
 | 
					{% else %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,7 +41,7 @@ for a {{ site_name }} account and sign in below:{% endblocktrans %}</p>
 | 
				
			||||||
  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
 | 
					  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
 | 
				
			||||||
  {% endif %}
 | 
					  {% endif %}
 | 
				
			||||||
  <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
 | 
					  <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
 | 
				
			||||||
  <button class="primaryAction" type="submit">{% trans "Sign In" %}</button>
 | 
					  <button class="primaryAction btn btn-primary" type="submit">{% trans "Sign In" %}</button>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,7 @@
 | 
				
			||||||
  {% if redirect_field_value %}
 | 
					  {% if redirect_field_value %}
 | 
				
			||||||
  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
 | 
					  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
 | 
				
			||||||
  {% endif %}
 | 
					  {% endif %}
 | 
				
			||||||
  <button type="submit">{% trans 'Sign Out' %}</button>
 | 
					  <button class="btn btn-primary" type="submit">{% trans 'Sign Out' %}</button>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,7 @@
 | 
				
			||||||
    <form method="POST" action="{% url 'account_change_password' %}" class="password_change">
 | 
					    <form method="POST" action="{% url 'account_change_password' %}" class="password_change">
 | 
				
			||||||
        {% csrf_token %}
 | 
					        {% csrf_token %}
 | 
				
			||||||
        {{ form|crispy }}
 | 
					        {{ form|crispy }}
 | 
				
			||||||
        <button type="submit" name="action">{% trans "Change Password" %}</button>
 | 
					        <button class="btn btn-primary" type="submit" name="action">{% trans "Change Password" %}</button>
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
{% endraw %}
 | 
					{% endraw %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@
 | 
				
			||||||
  {% if redirect_field_value %}
 | 
					  {% if redirect_field_value %}
 | 
				
			||||||
  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
 | 
					  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
 | 
				
			||||||
  {% endif %}
 | 
					  {% endif %}
 | 
				
			||||||
  <button type="submit">{% trans "Sign Up" %} »</button>
 | 
					  <button class="btn btn-primary" type="submit">{% trans "Sign Up" %} »</button>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user