Move the useful formfield tools out into a app to reuse elsewhere

This commit is contained in:
2011-12-04 15:59:13 +00:00
parent 6616fefbab
commit 8e85ace60d
7 changed files with 7 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ INSTALLED_APPS = (
'djcelery',
'registration',
'pagination',
'formtools',
'eve_proxy',
'eve_api',
'reddit',

View File

@@ -13,9 +13,9 @@
<formset>
{% include "eve_api/formfield.html" with field=form.api_user_id %}
{% include "eve_api/formfield.html" with field=form.api_key class="xxlarge"%}
<!--{% include "eve_api/formfield.html" with field=form.description %}-->
{% 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"/>

View File

@@ -12,9 +12,9 @@
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
<formset>
{% include "eve_api/formfield.html" with field=form.api_user_id %}
{% include "eve_api/formfield.html" with field=form.api_key class="xxlarge" %}
{% include "eve_api/formfield.html" with field=form.description class="xxlarge" %}
{% 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"/>

View File

View File