Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "base/theme.html" %}
- {% load widget_tweaks %}
- {% block main_content %}
- <div class="header-buffer">
- </div>
- <section id="services">
- <div class="container">
- <div class="row">
- {% if form %}
- <div class="col-md-8 col-md-offset-2">
- <form action="" method="post" enctype="multipart/form-data">
- {% csrf_token %}
- {{ form.media }}
- {% for field in form %}
- <div class="form-group warning">
- <label for="exampleInputFile">{{ field.label }}</label>
- {{ field|add_class:"form-control"}}
- {% if field.help_text %}
- <p class="help-block">{{ field.help_text }}</p>
- {% endif %}
- </div>
- {% if field.errors %}
- {% for error in field.errors %}
- <div class="alert alert-danger" id="error_{{ field.name }}">{{ error|escape }}</div>
- {% endfor %}
- {% endif %}
- {% endfor %}
- <input type="submit" class="btn btn-success" role="button" value="{{ verb|default:"Submit" }}" />
- </form>
- </div>
- {% endif %}
- </div>
- </div>
- </section>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement