contact.html 3.59 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
{% block meta_tags %}
    {{ block.super }}
18 19
    <meta name="description" content="Send your feedback about RNAcentral using a webform or submit an issue on GitHub"/>
    <meta name="twitter:description" content="Send your feedback about RNAcentral using a webform or submit an issue on GitHub"/>
Anton Petrov's avatar
Anton Petrov committed
20 21
{% endblock %}

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

{% block content %}

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

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

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

91
{% endblock %}