mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Show hidden fields (fixes the update api issue)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
|
||||
<fieldset>
|
||||
{% include "formtools/formerror.html" %}
|
||||
{% include "formtools/formfield.html" with field=form.user %}
|
||||
{% 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" %}
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
{% load add_class %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
<div class="clearfix{% if field.errors %} error{% endif %}">
|
||||
{{ field.label_tag }}
|
||||
<div class="input">
|
||||
{% if class %}{{ field|add_class:class }}{% else %}{{ field}}{% endif %}
|
||||
{% if class %}{{ field|add_class:class }}{% else %}{{ field }}{% endif %}
|
||||
{% if field.help_text %}<span class="help-block">{{ field.help_text }}</span>{% endif %}
|
||||
{% if field.errors %}<span class="help-inline">{% for error in field.errors %}{{ error }} {% endfor %}</span>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user