Fix issues with no errors showing

This commit is contained in:
2011-12-05 23:33:18 +00:00
parent 01b161166c
commit 18a3705186
23 changed files with 33 additions and 7 deletions

View File

@@ -12,11 +12,9 @@
<form action="{% url eve_api.views.eveapi_add %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.api_user_id %}
{% include "formtools/formfield.html" with field=form.api_key class="xxlarge"%}
<!--{% include "formtools/formfield.html" with field=form.description %}-->
{% csrf_token %}
<input type="submit" value="Add API Key" class="btn primary"/>
</fieldset>

View File

@@ -11,11 +11,10 @@
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.api_user_id %}
{% include "formtools/formfield.html" with field=form.api_key class="xxlarge" %}
{% include "formtools/formfield.html" with field=form.description class="xxlarge" %}
{% csrf_token %}
<input type="submit" value="Add API Key" class="btn primary"/>
</fieldset>

View File

@@ -0,0 +1,6 @@
{% if form.non_field_errors %}
<div class="alert-message block-message error">
<p>Oops! Something went wrong, check the following and try again.</p>
{{ form.non_field_errors }}
</div>
{% endif %}

View File

@@ -1,9 +1,13 @@
{% load add_class %}
<div class="clearfix">
<div class="clearfix{% if field.errors %}error{% endif %}">
{{ field.label_tag }}
<div class="input">
{% if class %}{{ field|add_class:class }}{% else %}{{ field }}{% endif %}
{% if field.errors %}
{% if class %}{{ field|add_class:class|add_class:"error" }}{% else %}{{ field|add_class:"error" }}{% endif %}
{% else %}
{% if class %}{{ field|add_class:class }}{% else %}{{ field}}{% endif %}
{% endif %}
{% if field.help_text %}
<span class="help-block">{{ field.help_text }}</span>
{% endif %}

View File

@@ -11,6 +11,7 @@
<form action="{% url groups.views.create_request groupid %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
{% csrf_token %}
<input type="submit" value="Create Request" class="btn primary" />

View File

@@ -11,6 +11,7 @@
<p>Fill in a note you want to send to the user.</p>
<form action="{% url hr-acceptapplication application.id %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% include "formtools/formfield.html" with field=form.template %}
{% csrf_token %}

View File

@@ -12,6 +12,7 @@
<form action="{% url hr-addapplication %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.character %}
{% include "formtools/formfield.html" with field=form.corporation %}
{% csrf_token %}

View File

@@ -9,6 +9,7 @@
<form action="{% url hr-addmessage application.id %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% if form.template %}{% include "formtools/formfield.html" with field=form.template %}{% endif %}
{% csrf_token %}

View File

@@ -9,6 +9,7 @@
<form action="{% url hr-addnote application.id %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% csrf_token %}
<input type="submit" value="Add" class="btn primary"/>

View File

@@ -11,6 +11,7 @@
<form action="{% url hr-rejectapplication application.id %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% include "formtools/formfield.html" with field=form.template %}
{% csrf_token %}

View File

@@ -8,6 +8,7 @@
<form action="{% url hr-blacklist-add %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.type %}
{% include "formtools/formfield.html" with field=form.value class="xxlarge" %}
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}

View File

@@ -14,6 +14,7 @@ The person you are recommending needs to have created their application before y
<form action="{% url hr-addrecommendation %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.character %}
{% include "formtools/formfield.html" with field=form.application %}
{% csrf_token %}

View File

@@ -14,6 +14,7 @@ on from time to time</p>
<form action="{% url reddit-addaccount %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.username %}
{% csrf_token %}
<input type="submit" value="Add Account" />

View File

@@ -13,6 +13,7 @@ password below.</p>
<form action="{% url sso.views.set_apipasswd %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.password %}
{% csrf_token %}
<input type="submit" value="Reset Account" class="btn primary" />

View File

@@ -9,6 +9,7 @@
<form action="" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.email1 %}
{% include "formtools/formfield.html" with field=form.email2 %}
{% csrf_token %}

View File

@@ -11,6 +11,7 @@
<p>
<form action="{% url sso.views.user_lookup %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% csrf_token %}
<div class="clearfix">
{{ form.type.label_tag }}

View File

@@ -9,6 +9,7 @@
<form action="" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.character %}
{% csrf_token %}
<input type="submit" value="Change" class="btn primary" />

View File

@@ -18,6 +18,7 @@ up to date, if so use the "Refresh" function.</p>
<form action="{% url sso.views.service_add %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.character %}
{% include "formtools/formfield.html" with field=form.service %}
{% include "formtools/formfield.html" with field=form.password %}

View File

@@ -12,6 +12,7 @@ below.</p>
<form action="{% url sso.views.service_reset serviceid %}" method="post">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.password %}
{% csrf_token %}
<input type="submit" value="Reset Account" class="btn primary"/>

View File

@@ -15,6 +15,7 @@
<form method="post" action="{% url django.contrib.auth.views.login %}">
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.username %}
{% include "formtools/formfield.html" with field=form.password %}

View File

@@ -7,6 +7,7 @@
<form method='post' action=''>
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.old_password %}
{% include "formtools/formfield.html" with field=form.new_password1 %}
{% include "formtools/formfield.html" with field=form.new_password2 %}

View File

@@ -7,6 +7,7 @@
<p>Forgot your password? Enter your email in the form below and we'll send you instructions for creating a new one.</p>
<form method='post' action=''>
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.email %}
{% csrf_token %}
<input type='submit' value="Reset password" class="btn primary"/>

View File

@@ -14,6 +14,7 @@
<form method='post' action=''>
<fieldset>
{% include "formtools/formerror.html" %}
{% include "formtools/formfield.html" with field=form.username %}
{% include "formtools/formfield.html" with field=form.email %}
{% include "formtools/formfield.html" with field=form.password1 %}