mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 06:39:25 +00:00
Move the useful formfield tools out into a app to reuse elsewhere
This commit is contained in:
@@ -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"/>
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{% load add_class %}
|
||||
|
||||
<div class="clearfix">
|
||||
{{ field.label_tag }}
|
||||
<div class="input">
|
||||
{% if class %}{{ field|add_class:class }}{% else %}{{ field }}{% endif %}
|
||||
{% if field.help_text %}
|
||||
<span class="help-block">{{ field.help_text }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user