contact.html 3.42 KB
Newer Older
Anton Petrov's avatar
Anton Petrov committed
1
<!--
2
Copyright [2009-2017] EMBL-European Bioinformatics Institute
Anton Petrov's avatar
Anton Petrov committed
3 4 5 6 7 8 9 10 11 12 13
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
{% extends "portal/base.html" %}

Anton Petrov's avatar
Anton Petrov committed
16 17 18 19 20
{% block meta_tags %}
    {{ block.super }}
    <meta name="description" content="Get in touch with the RNAcentral team"/>
{% endblock %}

Anton Petrov's avatar
Anton Petrov committed
21
{% block title %}
22
Contact us
Anton Petrov's avatar
Anton Petrov committed
23 24 25 26
{% endblock %}

{% block content %}

27 28
<h1><i class="fa fa-envelope"></i> Contact us</h1>

Anton Petrov's avatar
Anton Petrov committed
29 30 31 32 33 34 35
<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 %}
36
            <label class="control-label" for="emailSubject">Subject ({{ form.subject.errors|striptags }})</label>
Anton Petrov's avatar
Anton Petrov committed
37
        {% else %}
38
            <label for="emailSubject">Subject</label>
Anton Petrov's avatar
Anton Petrov committed
39
        {% endif %}
40
        <input type="text" autofocus class="form-control" name="subject" id="emailSubject" placeholder="" tabindex="1"
Anton Petrov's avatar
Anton Petrov committed
41 42 43 44 45
               {% 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 %}
46
            <label class="control-label" for="emailMessage">Message ({{ form.message.errors|striptags }})</label>
Anton Petrov's avatar
Anton Petrov committed
47
        {% else %}
48
            <label for="emailSubject">Message</label>
Anton Petrov's avatar
Anton Petrov committed
49 50
        {% 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>
51 52 53
        <p style="display: none;">
          <input type="text" id="phone" name="phone" placeholder="Please enter your phone number">
        </p>
Anton Petrov's avatar
Anton Petrov committed
54 55 56 57 58 59 60 61 62 63 64
      </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 %}>
65
        </div>
Anton Petrov's avatar
Anton Petrov committed
66 67 68 69 70 71 72 73
      </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
74
      <button type="submit" class="btn btn-primary" tabindex="5">Submit</button>
Anton Petrov's avatar
Anton Petrov committed
75 76 77
    </form>
  </div>

78 79 80 81 82 83 84 85 86 87
  <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
88 89
</div>

90
{% endblock %}