Skip to content

Instantly share code, notes, and snippets.

@dizpers
Last active December 14, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dizpers/5135994 to your computer and use it in GitHub Desktop.
Save dizpers/5135994 to your computer and use it in GitHub Desktop.
<div id="modalHelp" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalHelpLabel" aria-hidden="true">
<div class="modal-header">
<h3 id="modalHelpLabel">Help</h3>
</div>
<div class="modal-body">
{% form_from_page slug="help" as help_form %}
{% load widget_tweaks %}
<form action="." method='POST' class="row-fluid">
{{ help_form.errors }}
{% csrf_token %}
{% for hidden in help_form.hidden_fields %}
{{ hidden }}
{% endfor %}
{% for field in help_form.visible_fields %}
<fieldset class="control-group">
<label class="control-label" for="id_{{ field.name }}">{{ field.label }}</label>
<div class="controls">
{% render_field field class="span12" %}
<p class="help-text">{{ field.help_text }} </p>
</div>
</fieldset>
{% endfor %}
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary" id="modalOk">Send</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment