contact.html 2.32 KB
Newer Older
Anton Petrov's avatar
Anton Petrov committed
1 2 3 4 5 6 7 8 9 10 11
{% extends "portal/base.html" %}

{% block title %}
Contact Us
{% endblock %}

{% block content %}

<div class="row">

  <div class="col-md-8">
12
    <h1>Contact us</h1>
Anton Petrov's avatar
Anton Petrov committed
13 14 15 16 17 18 19 20
    <form action="/contact/" method="post" role="form">{% csrf_token %}
      {{ form.non_field_errors }}
      <div class="form-group {% if form.subject.errors %} has-error {% endif %}" >
        {% if form.subject.errors %}
            <label class="control-label" for="emailSubject">Email subject ({{ form.subject.errors|striptags }})</label>
        {% else %}
            <label for="emailSubject">Email subject</label>
        {% endif %}
21
        <input type="text" autofocus class="form-control" name="subject" id="emailSubject" placeholder="" tabindex="1"
Anton Petrov's avatar
Anton Petrov committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
               {% if form.subject.errors %}value="{{ form.subject.value }}"{% endif %}>
      </div>

      <div class="form-group {% if form.message.errors %} has-error {% endif %}" >
        {% if form.message.errors %}
            <label class="control-label" for="emailMessage">Your message ({{ form.message.errors|striptags }})</label>
        {% else %}
            <label for="emailSubject">Your message</label>
        {% endif %}
        <textarea type="text" class="form-control" name="message" id="emailMessage" placeholder="" tabindex="2" rows="4">{% if form.message.errors %}{{ form.message.value }}{% endif %}</textarea>
      </div>

      <div class="form-group">
        <div class="form-group {% if form.sender.errors %} has-error {% endif %}" >
        {% if form.sender.errors %}
            <label class="control-label" for="emailSender">Your email address ({{ form.sender.errors|striptags }})</label>
        {% else %}
            <label for="emailSender">Your email address</label>
        {% endif %}
        <input type="email" class="form-control" name="sender" id="emailSender" placeholder="" tabindex="3"
            {% if form.sender.errors %}value={{ form.sender.value }}{% endif %}>
      </div>
      <div class="checkbox">
        {{ form.cc_myself.errors }}
        <label>
          <input type="checkbox" name="cc_myself" tabindex="4"> CC yourself?
        </label>
      </div>

51 52
      <button type="submit" class="btn btn-primary" tabindex="5" disabled="disabled">Submit</button>
      <span class="help-block">The form has been temporarily disabled.</span>
Anton Petrov's avatar
Anton Petrov committed
53 54 55 56 57 58 59
    </form>
  </div>


</div>

{% endblock %}