contact.html 3.16 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
{% extends "portal/base.html" %}

{% block title %}
17
Contact us
Anton Petrov's avatar
Anton Petrov committed
18 19 20 21
{% endblock %}

{% block content %}

22 23
<h1><i class="fa fa-envelope"></i> Contact us</h1>

Anton Petrov's avatar
Anton Petrov committed
24 25 26 27 28 29 30 31 32 33 34
<div class="row">

  <div class="col-md-8">
    <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 %}
35
        <input type="text" autofocus class="form-control" name="subject" id="emailSubject" placeholder="" tabindex="1"
Anton Petrov's avatar
Anton Petrov committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
               {% 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 %}>
57
        </div>
Anton Petrov's avatar
Anton Petrov committed
58 59 60 61 62 63 64 65
      </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
66
      <button type="submit" class="btn btn-primary" tabindex="5">Submit</button>
Anton Petrov's avatar
Anton Petrov committed
67 68 69
    </form>
  </div>

70 71 72 73 74 75 76 77 78 79
  <div class="col-md-4">
    <br>
    <p class="well">
      <i class="fa fa-github fa-3x pull-left"></i>
      If you would like to report a problem with the website, consider
      <a href="http://github.com/RNAcentral/rnacentral-webcode/issues" target="_blank">submitting an issue</a>
      on GitHub.
    </p>
  </div>

Anton Petrov's avatar
Anton Petrov committed
80 81
</div>

82
{% endblock %}