Show hidden fields (fixes the update api issue)

This commit is contained in:
2011-12-06 18:57:33 +00:00
parent c2e67f057e
commit 5adc4001f8
2 changed files with 6 additions and 2 deletions

View File

@@ -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" %}

View File

@@ -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 %}