contact.html 2.83 KB
Newer Older
Anton Petrov's avatar
Anton Petrov committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<!--
Copyright [2009-2014] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

Anton Petrov's avatar
Anton Petrov committed
14 15 16 17 18 19 20 21 22 23 24
{% extends "portal/base.html" %}

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

{% block content %}

<div class="row">

  <div class="col-md-8">
Anton Petrov's avatar
Anton Petrov committed
25
    <h1><i class="fa fa-envelope"></i> Contact us</h1>
Anton Petrov's avatar
Anton Petrov committed
26 27 28 29 30 31 32 33
    <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 %}
34
        <input type="text" autofocus class="form-control" name="subject" id="emailSubject" placeholder="" tabindex="1"
Anton Petrov's avatar
Anton Petrov committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
               {% 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>

Anton Petrov's avatar
Anton Petrov committed
64
      <button type="submit" class="btn btn-primary" tabindex="5">Submit</button>
Anton Petrov's avatar
Anton Petrov committed
65 66 67 68 69 70 71
    </form>
  </div>


</div>

{% endblock %}