Browse Source

Nailed unused templates

Ralfp 12 years ago
parent
commit
df3bd59cf7

+ 0 - 9
templates/_bootstrap/field_snippet.html

@@ -1,9 +0,0 @@
-{% if field.widget == "text" %}
-{% include "_bootstrap/fields/text.html" %}
-{% endif %}
-{% if field.widget == "recaptcha" %}
-{% include "_bootstrap/fields/recaptcha.html" %}
-{% endif %}
-{% if field.widget == "checkbox" %}
-{% include "_bootstrap/fields/checkbox.html" %}
-{% endif %}

+ 0 - 4
templates/_bootstrap/fields/checkbox.html

@@ -1,4 +0,0 @@
-<label class="checkbox">
-  <input id="{{ field.html_id }}" name="{{ field.html_name }}" type="checkbox"{% if field.required%} required="required"{% endif %}{% if field.value %} checked="checked"{% endif %}>
-  {{ field.help_text }}
-</label>

+ 0 - 8
templates/_bootstrap/fields/recaptcha.html

@@ -1,8 +0,0 @@
-<div class="recaptcha-wrapper">
-  <script type="text/javascript" src="{{ field.attrs.api_server }}/challenge?k={{ field.attrs.public_key }}{{ field.attrs.error_param }}"></script>
-  <noscript>
-    <iframe src="{{ field.attrs.api_server }}/noscript?k={{ field.attrs.public_key }}{{ field.attrs.error_param }}" height="300" width="500" frameborder="0"></iframe><br>
-    <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
-    <input type='hidden' name='recaptcha_response_field' value='manual_challenge'>
-  </noscript>
-</div>

+ 0 - 6
templates/_bootstrap/fields/text.html

@@ -1,6 +0,0 @@
-<input id="{{ field.html_id }}" name="{{ field.html_name }}" type="{{ field.attrs.type }}" class="span{% spaceless %}
-{% if horizontal %}
-  {% widthratio field.width 140 max_width %}
-{% else %}
-  {% widthratio field.width 100 max_width %}
-{% endif %}{% endspaceless %}"{%if field.attrs.max_length %} maxlength="{{ field.attrs.max_length }}"{% endif %}{% if field.placeholder %} placeholder="{{ field.placeholder }}"{% endif %}{% if field.has_value %} value="{{ field.value }}"{% endif %}{% if field.required%} required="required"{% endif %}>

+ 0 - 0
templates/_bootstrap/fields/textarea.html


+ 0 - 12
templates/_bootstrap/form_snippet.html

@@ -1,12 +0,0 @@
-            <fieldset>
-              <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">{% for field in form.hidden %}
-              <input type="hidden" name="{{ field.id }}" value="{{ field.value }}">{% endfor %}{% for fieldset in form.fieldsets %}{% if fieldset.legend %}
-              <legend><div>{{ fieldset.legend }}{% if fieldset.help %} <span>{{ fieldset.help }}</span>{% endif %}</div></legend>{% endif %}
-              {% for field in fieldset.fields %}
-              	{% include "_bootstrap/row_snippet.html" %}
-              	{% if field.endrow %}
-              {% if not field.last %}
-              {% endif %}{% endif %}{% endfor %}{% if not fieldset.last %}
-              <hr>
-            {% endif %}</fieldset>{% if not fieldset.last %}
-            <fieldset>{% endif %}{% endfor %}

+ 0 - 17
templates/_bootstrap/row_snippet.html

@@ -1,17 +0,0 @@
-                <div class="control-group{% if field.errors %} error{% endif %}">{% if field.label %}
-                  <label class="control-label" for="{{ field.html_id }}">{{ field.label }}:</label>{% endif %}{% if field.nested %}
-                  <div class="controls controls-nested">
-                  	<div class="row">
-                    {% for subfield in field.nested %}{% with field=subfield nested=1 %}                     	
-                  	  <div class="span{% widthratio field.width 100 max_width %}">{% include "_bootstrap/field_snippet.html" %}</div>
-                    {% endwith %}{% endfor %}
-                    </div>{% for error in field.errors %}
-                    <p class="help-block" style="font-weight: bold;">{{ error }}</p>{% endfor %}{% if field.widget != "checkbox" and field.help_text %}
-                    <p class="help-block">{{ field.help_text }}</p>{% endif %}
-                  </div>{% else %}
-                  <div class="controls">
-					{% include "_bootstrap/field_snippet.html" %}{% for error in field.errors %}
-                    <p class="help-block" style="font-weight: bold;">{{ error }}</p>{% endfor %}{% if field.widget != "checkbox" and field.help_text %}
-                    <p class="help-block">{{ field.help_text }}</p>{% endif %}
-                  </div>{% endif %}
-                </div>