~ucl-cs-study-devs/study.cs.ucl-websites/password-cn

« back to all changes in this revision

Viewing changes to src/UCL/StudyBundle/Resources/views/Default/join.html.twig

  • Committer: Steve DODIER-LAZARO
  • Date: 2015-06-21 23:56:23 UTC
  • Revision ID: sdodierl@secdev.cs.ucl.ac.uk-20150621235623-bd8awkjopup2lml1
Adding a city of origin screening criteria, and removing the multitasking ones

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
{% extends 'UCLStudyBundle::base.html.twig' %}
4
4
 
5
5
{% block body %}
6
 
    <p class="lead">{{ 'We will need a bit of information about you, to help us ensure participants from multiple backgrounds, genders and levels of proficiency are represented in the study.' | trans }}</p>
 
6
    <p class="lead">{{ 'We will need a bit of information about you, to help us ensure participants from multiple backgrounds are represented in the study.' | trans }}</p>
7
7
    <div class="form-row clearfix">
8
8
      <div class="col-sm-6"><p class="bs-callout bs-callout-success">{{ '<strong>If you are selected</strong>, you will receive an email with a complete breakdown of what will happen. You can then decide if you still want to join.' | trans | raw }}</p></div>
9
9
      <div class="col-sm-6"><p class="bs-callout bs-callout-danger">{{ '<strong>If you are not selected</strong>, We will let you know within 3 weeks and your details will be permanently deleted.</p>' | trans | raw }}</div>
17
17
      {% else %}
18
18
        {{ form_row(form.pseudonym) }}
19
19
      {% endif %}
20
 
    <aside>{{ 'It doesn\'t have to be your real name, but we will need your real name later on to issue payments.' | trans }}</aside>
21
20
  </div>
22
21
  {% if err_email is defined %}
23
22
    <div class="has-error">{{ form_row(form.email) }}<aside class="alert alert-warning">{{ err_email }}</aside></div>
28
27
  {% else %}
29
28
  {{ form_row(form.email) }}
30
29
  {% endif %}
 
30
    <hr />  
31
31
  {% if err_age is defined %}
32
32
    <div class="form-group has-error">{{ form_row(form.age, {'attr': {'class': 'btn alert-danger'}}) }}<aside class="alert alert-warning">{{ err_age }}</aside></div>
33
33
  {% else %}
45
45
        {{ form_row(form.occupation) }}
46
46
      {% endif %}
47
47
  </div>
48
 
  <div class="form-row">
49
 
    {% if err_proficiency is defined %}
50
 
      <div class="form-group has-error">{{ form_row(form.proficiency, {'attr': {'class': 'btn alert-danger'}}) }}<aside class="alert alert-warning">{{ err_proficiency }}</aside></div>
51
 
    {% else %}
52
 
      {{ form_row(form.proficiency) }}
53
 
    {% endif %}
54
 
    <aside>{{ '<sub>1</sub> Technical skills include setting up a firewall, configuring a personal website, writing your own software or scripts, compiling a kernel yourself.' | trans | raw }}</aside>
55
 
  </div>
56
 
  
57
 
  <hr />  
58
 
 {# <p>The following information will be used to ensure your <span class="fa fa-linux"></span> system is compatible with the software used in the study. If you use a derivate of Debian or Ubuntu, please indicate which one.</p> #}
59
 
  
60
 
  <div class="form-row">
61
 
    {% if err_distro is defined or err_distroValid is defined %}
62
 
      <div class="form-group has-error">{{ form_row(form.distro, {'attr': {'class': 'btn alert-danger'}}) }}
63
 
    {% if err_distro is defined %}<aside class="alert alert-warning">{{ err_distro }}</aside>{% endif %}</div>
64
 
    {% else %}
65
 
      {{ form_row(form.distro) }}
66
 
    {% endif %}
67
 
    {% if err_distro_other is defined or err_distroValid is defined %}
68
 
      <div class="form-group has-error small">{{ form_row(form.distro_other) }}
69
 
    {% if err_distro_other is defined %}<aside class="alert alert-warning">{{ err_distro }}</aside>{% endif %}</div>
70
 
    {% else %}
71
 
      <div class=" small">{{ form_row(form.distro_other) }}</div>
72
 
    {% endif %}
73
 
  {% if err_distroValid is defined %}
74
 
    <aside class="alert alert-warning">{{ err_distroValid }}</aside>
 
48
    <hr />  
 
49
  <div class="form-row">
 
50
    {% if err_city is defined or err_cityValid is defined %}
 
51
      <div class="form-group has-error">{{ form_row(form.city, {'attr': {'class': 'btn alert-danger'}}) }}
 
52
    {% if err_city is defined %}<aside class="alert alert-warning">{{ err_city }}</aside>{% endif %}</div>
 
53
    {% else %}
 
54
      {{ form_row(form.city) }}
 
55
    {% endif %}
 
56
    {% if err_city_other is defined or err_cityValid is defined %}
 
57
      <div class="form-group has-error small">{{ form_row(form.city_other) }}
 
58
    {% if err_city_other is defined %}<aside class="alert alert-warning">{{ err_city }}</aside>{% endif %}</div>
 
59
    {% else %}
 
60
      <div class=" small">{{ form_row(form.city_other) }}</div>
 
61
    {% endif %}
 
62
  {% if err_cityValid is defined %}
 
63
    <aside class="alert alert-warning">{{ err_cityValid }}</aside>
75
64
  {% endif %}
76
65
  </div>
77
 
 
78
 
  <div class="form-row">
79
 
    {% if err_de is defined %}
80
 
      <div class="form-group has-error">{{ form_row(form.de, {'attr': {'class': 'btn alert-danger'}}) }}<aside class="alert alert-warning">{{ err_de }}</aside></div>
81
 
    {% else %}
82
 
      {{ form_row(form.de) }}
83
 
    {% endif %}
84
 
  </div>
85
 
 
86
 
  <div class="form-row">
87
 
    {% if err_browser is defined %}
88
 
      <div class="form-group has-error">{{ form_row(form.browser, {'attr': {'class': 'btn alert-danger'}}) }}<aside class="alert alert-warning">{{ err_browser }}</aside></div>
89
 
    {% else %}
90
 
      {{ form_row(form.browser) }}
91
 
    {% endif %}
92
 
  </div>
93
 
  <hr />  
 
66
  
 
67
    <hr />  
94
68
{% include ('UCLStudyBundle::dpa.html.twig') %}
95
69
 
96
70
    {{ form_row(form.register, {}) }}