Skip to content
Browse files

Merge pull request #12 from devfeng/master

just fixed a bug :)
  • Loading branch information...
2 parents 57b1b6e + c15b819 commit 18e588861c01d9a6899b2b17247caec448453f48 @dyve committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 bootstrap_toolkit/templates/bootstrap_toolkit/field_text.html
View
4 bootstrap_toolkit/templates/bootstrap_toolkit/field_text.html
@@ -2,12 +2,12 @@
{% if attrs.prepend %}
<div class="input-prepend">
<span class="add-on">{{ attrs.prepend }}</span>
- <input{% if field.auto_id %} id="{{ field.auto_id }}"{% endif %} type="{{ type }}" name="{{ field.html_name }}"{% for key, value in attrs.items %}{% if not key == "prepend" %} {{ key }}="{{ value }}"{% endif %}{% endfor %}>
+ <input{% if field.auto_id %} id="{{ field.auto_id }}"{% endif %} type="{{ type }}" name="{{ field.html_name }}"{% if field.value %} value="{{ field.value }}"{% endif %}{% for key, value in attrs.items %}{% if not key == "prepend" %} {{ key }}="{{ value }}"{% endif %}{% endfor %}>
</div>
{% else %}
{% if attrs.append %}
<div class="input-append">
- <input{% if field.auto_id %} id="{{ field.auto_id }}"{% endif %} type="{{ type }}" name="{{ field.html_name }}"{% for key, value in attrs.items %}{% if not key == "append" %} {{ key }}="{{ value }}"{% endif %}{% endfor %}>
+ <input{% if field.auto_id %} id="{{ field.auto_id }}"{% endif %} type="{{ type }}" name="{{ field.html_name }}"{% if field.value %} value="{{ field.value }}"{% endif %}{% for key, value in attrs.items %}{% if not key == "append" %} {{ key }}="{{ value }}"{% endif %}{% endfor %}>
<span class="add-on">{{ attrs.append }}</span>
</div>
{% else %}

0 comments on commit 18e5888

Please sign in to comment.
Something went wrong with that request. Please try again.