mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Fix issues with no errors showing
This commit is contained in:
@@ -12,11 +12,9 @@
|
|||||||
<form action="{% url eve_api.views.eveapi_add %}" method="post">
|
<form action="{% url eve_api.views.eveapi_add %}" method="post">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.api_user_id %}
|
{% 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.api_key class="xxlarge"%}
|
||||||
<!--{% include "formtools/formfield.html" with field=form.description %}-->
|
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add API Key" class="btn primary"/>
|
<input type="submit" value="Add API Key" class="btn primary"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@@ -11,11 +11,10 @@
|
|||||||
|
|
||||||
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
|
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.api_user_id %}
|
{% 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.api_key class="xxlarge" %}
|
||||||
{% include "formtools/formfield.html" with field=form.description class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.description class="xxlarge" %}
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add API Key" class="btn primary"/>
|
<input type="submit" value="Add API Key" class="btn primary"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
6
app/formtools/templates/formtools/formerror.html
Normal file
6
app/formtools/templates/formtools/formerror.html
Normal 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 %}
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
{% load add_class %}
|
{% load add_class %}
|
||||||
|
|
||||||
<div class="clearfix">
|
<div class="clearfix{% if field.errors %}error{% endif %}">
|
||||||
{{ field.label_tag }}
|
{{ field.label_tag }}
|
||||||
<div class="input">
|
<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 %}
|
{% if field.help_text %}
|
||||||
<span class="help-block">{{ field.help_text }}</span>
|
<span class="help-block">{{ field.help_text }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
<form action="{% url groups.views.create_request groupid %}" method="post">
|
<form action="{% url groups.views.create_request groupid %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Create Request" class="btn primary" />
|
<input type="submit" value="Create Request" class="btn primary" />
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<p>Fill in a note you want to send to the user.</p>
|
<p>Fill in a note you want to send to the user.</p>
|
||||||
<form action="{% url hr-acceptapplication application.id %}" method="post">
|
<form action="{% url hr-acceptapplication application.id %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
||||||
{% include "formtools/formfield.html" with field=form.template %}
|
{% include "formtools/formfield.html" with field=form.template %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
<form action="{% url hr-addapplication %}" method="post">
|
<form action="{% url hr-addapplication %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.character %}
|
{% include "formtools/formfield.html" with field=form.character %}
|
||||||
{% include "formtools/formfield.html" with field=form.corporation %}
|
{% include "formtools/formfield.html" with field=form.corporation %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<form action="{% url hr-addmessage application.id %}" method="post">
|
<form action="{% url hr-addmessage application.id %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
||||||
{% if form.template %}{% include "formtools/formfield.html" with field=form.template %}{% endif %}
|
{% if form.template %}{% include "formtools/formfield.html" with field=form.template %}{% endif %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<form action="{% url hr-addnote application.id %}" method="post">
|
<form action="{% url hr-addnote application.id %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add" class="btn primary"/>
|
<input type="submit" value="Add" class="btn primary"/>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<form action="{% url hr-rejectapplication application.id %}" method="post">
|
<form action="{% url hr-rejectapplication application.id %}" method="post">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
|
||||||
{% include "formtools/formfield.html" with field=form.template %}
|
{% include "formtools/formfield.html" with field=form.template %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<form action="{% url hr-blacklist-add %}" method="post">
|
<form action="{% url hr-blacklist-add %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.type %}
|
{% 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.value class="xxlarge" %}
|
||||||
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
|
{% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ The person you are recommending needs to have created their application before y
|
|||||||
|
|
||||||
<form action="{% url hr-addrecommendation %}" method="post">
|
<form action="{% url hr-addrecommendation %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.character %}
|
{% include "formtools/formfield.html" with field=form.character %}
|
||||||
{% include "formtools/formfield.html" with field=form.application %}
|
{% include "formtools/formfield.html" with field=form.application %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ on from time to time</p>
|
|||||||
|
|
||||||
<form action="{% url reddit-addaccount %}" method="post">
|
<form action="{% url reddit-addaccount %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.username %}
|
{% include "formtools/formfield.html" with field=form.username %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add Account" />
|
<input type="submit" value="Add Account" />
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ password below.</p>
|
|||||||
|
|
||||||
<form action="{% url sso.views.set_apipasswd %}" method="post">
|
<form action="{% url sso.views.set_apipasswd %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.password %}
|
{% include "formtools/formfield.html" with field=form.password %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Reset Account" class="btn primary" />
|
<input type="submit" value="Reset Account" class="btn primary" />
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.email1 %}
|
{% include "formtools/formfield.html" with field=form.email1 %}
|
||||||
{% include "formtools/formfield.html" with field=form.email2 %}
|
{% include "formtools/formfield.html" with field=form.email2 %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<form action="{% url sso.views.user_lookup %}" method="post">
|
<form action="{% url sso.views.user_lookup %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
{{ form.type.label_tag }}
|
{{ form.type.label_tag }}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.character %}
|
{% include "formtools/formfield.html" with field=form.character %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Change" class="btn primary" />
|
<input type="submit" value="Change" class="btn primary" />
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ up to date, if so use the "Refresh" function.</p>
|
|||||||
|
|
||||||
<form action="{% url sso.views.service_add %}" method="post">
|
<form action="{% url sso.views.service_add %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.character %}
|
{% include "formtools/formfield.html" with field=form.character %}
|
||||||
{% include "formtools/formfield.html" with field=form.service %}
|
{% include "formtools/formfield.html" with field=form.service %}
|
||||||
{% include "formtools/formfield.html" with field=form.password %}
|
{% include "formtools/formfield.html" with field=form.password %}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ below.</p>
|
|||||||
|
|
||||||
<form action="{% url sso.views.service_reset serviceid %}" method="post">
|
<form action="{% url sso.views.service_reset serviceid %}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.password %}
|
{% include "formtools/formfield.html" with field=form.password %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="submit" value="Reset Account" class="btn primary"/>
|
<input type="submit" value="Reset Account" class="btn primary"/>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
<form method="post" action="{% url django.contrib.auth.views.login %}">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.username %}
|
{% include "formtools/formfield.html" with field=form.username %}
|
||||||
{% include "formtools/formfield.html" with field=form.password %}
|
{% include "formtools/formfield.html" with field=form.password %}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
<form method='post' action=''>
|
<form method='post' action=''>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.old_password %}
|
{% 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_password1 %}
|
||||||
{% include "formtools/formfield.html" with field=form.new_password2 %}
|
{% include "formtools/formfield.html" with field=form.new_password2 %}
|
||||||
|
|||||||
@@ -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>
|
<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=''>
|
<form method='post' action=''>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.email %}
|
{% include "formtools/formfield.html" with field=form.email %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type='submit' value="Reset password" class="btn primary"/>
|
<input type='submit' value="Reset password" class="btn primary"/>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<form method='post' action=''>
|
<form method='post' action=''>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
{% include "formtools/formerror.html" %}
|
||||||
{% include "formtools/formfield.html" with field=form.username %}
|
{% include "formtools/formfield.html" with field=form.username %}
|
||||||
{% include "formtools/formfield.html" with field=form.email %}
|
{% include "formtools/formfield.html" with field=form.email %}
|
||||||
{% include "formtools/formfield.html" with field=form.password1 %}
|
{% include "formtools/formfield.html" with field=form.password1 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user