mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Move the useful formfield tools out into a app to reuse elsewhere
This commit is contained in:
@@ -72,6 +72,7 @@ INSTALLED_APPS = (
|
|||||||
'djcelery',
|
'djcelery',
|
||||||
'registration',
|
'registration',
|
||||||
'pagination',
|
'pagination',
|
||||||
|
'formtools',
|
||||||
'eve_proxy',
|
'eve_proxy',
|
||||||
'eve_api',
|
'eve_api',
|
||||||
'reddit',
|
'reddit',
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
<formset>
|
<formset>
|
||||||
|
|
||||||
{% include "eve_api/formfield.html" with field=form.api_user_id %}
|
{% include "formtools/formfield.html" with field=form.api_user_id %}
|
||||||
{% include "eve_api/formfield.html" with field=form.api_key class="xxlarge"%}
|
{% include "formtools/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.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"/>
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
|
<form action="{% url eveapi-update acc.api_user_id %}" method="post">
|
||||||
<formset>
|
<formset>
|
||||||
|
|
||||||
{% include "eve_api/formfield.html" with field=form.api_user_id %}
|
{% include "formtools/formfield.html" with field=form.api_user_id %}
|
||||||
{% include "eve_api/formfield.html" with field=form.api_key class="xxlarge" %}
|
{% include "formtools/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.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"/>
|
||||||
|
|||||||
0
app/formtools/__init__.py
Normal file
0
app/formtools/__init__.py
Normal file
0
app/formtools/templatetags/__init__.py
Normal file
0
app/formtools/templatetags/__init__.py
Normal file
Reference in New Issue
Block a user