-
Notifications
You must be signed in to change notification settings - Fork 185
/
_user.twig
71 lines (57 loc) · 4.83 KB
/
_user.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
64
65
66
67
68
69
70
71
<form action="{{ formAction }}" method="POST" enctype="multipart/form-data" class="form-horizontal" role="form">
{% if id is defined %}
<input name="id" type="hidden" value="{{ id }}">
{% endif %}
<div class="flex">
<div class="w-1/2 mr-4">
<label for="form-user-email">Email</label>
<input id="form-user-email" type="email" name="email" placeholder="you@example.com" value="{{ email | default('') }}">
<label for="form-user-first-name">First Name</label>
<input id="form-user-first-name" type="text" name="first_name" placeholder="First Name" value="{{ first_name | default('') }}">
<label for="form-user-last-name">Last Name</label>
<input id="form-user-last-name" type="text" name="last_name" placeholder="Last Name" value="{{ last_name | default('') }}">
<label for="form-user-company">Company</label>
<input id="form-user-company" type="text" name="company" placeholder="Company" value="{{ company | default('') }}">
<label for="form-user-twitter">Twitter</label>
<input id="form-user-twitter" type="text" name="twitter" placeholder="@twitter" value="{{ twitter | default('') }}">
<label for="form-user-joindin-username">joind.in username</label>
<input id="form-user-joindin-username" type="text" name="joindin_username" placeholder="first_lastname" value="{{ joindin_username | default('') }}">
<label for="form-user-url">URL</label>
<input id="form-user-url" type="text" name="url" placeholder="https://example.com" value="{{ url | default('') }}">
{% if site.online_conference == false %}
<h3 class="text-base text-dark-soft mt-4">Travel Assistance</h3>
<div>
<input id="form-transportation" name="transportation" type="checkbox" value="1" {% if transportation == '1' %}checked{% endif %}>
<label for="form-transportation" class="text-base text-normal text-dark">I need help with flight cost</label>
</div>
<div>
<input id="form-hotel" name="hotel" type="checkbox" value="1" {% if hotel == '1' %}checked{% endif %}>
<label for="form-hotel" class="text-base text-normal text-dark">I need help with hotel cost</label>
</div>
{% endif %}
</div>
<div class="w-1/2 ml-4">
<label for="form-user-bio">Speaker Bio</label>
<textarea id="form-user-bio" name="speaker_bio" placeholder="Tell us about yourself ..." rows="5">{{ speaker_bio | default('') }}</textarea>
<p class="text-xs text-em mb-2 text-dark-soft">Speaker bio can be written using <a href="https://daringfireball.net/projects/markdown/basics" target="_blank" class="text-underline" rel="noopener noreferrer">markdown</a> to support links</p>
{% if site.online_conference == false %}
<label for="form-user-airport">Departing Airport Code</label>
<input id="form-user-airport" type="text" name="airport" placeholder="3 Characters" value="{{ airport | default('') }}">
{% endif %}
<label for="form-user-notes">Additional Notes</label>
<textarea id="form-user-notes" name="speaker_info" placeholder="Any other information you feel the organizers should be aware of ..." rows="5">{{ speaker_info | default('') }}</textarea>
<p class="text-xs text-em mb-2 text-dark-soft">Speaker notes can be written using <a href="https://daringfireball.net/projects/markdown/basics" target="_blank" class="text-underline" rel="noopener noreferrer">markdown</a> to support links</p>
<label for="form-user-photo" class="btn btn-brand cursor-pointer inline-block"><i class="fa fa-upload"></i><span class="ml-2">Upload Photo</span></label>
<input type="file" id="form-user-photo" name="speaker_photo" placeholder="Photo at least 300px wide by 300px high" accept="image/jpg, image/jpeg, image/png" class="hidden">
<p class="text-xs text-em mb-2 text-dark-soft">Photo should be square, and must be at least 300px wide by 300px high. JPG and PNG are the only accepted formats.</p>
{% if speaker_photo is defined and speaker_photo is not empty %}
<img src="{{ uploads(speaker_photo) }}" class="rounded-pill">
{% endif %}
{% if coc_link is defined and coc_link is not empty %}
<label for="form-agree-coc">Code of Conduct</label>
<input id="form-agree-coc" name="agree_coc" type="checkbox" value="agreed" > I agree to abide by the <a href="{{ coc_link }}" target="_blank" rel="noopener noreferrer">Code of conduct</a>.
{% endif %}
</div>
</div>
<button type="submit" class="btn btn-brand">{{ buttonInfo }}</button>
</form>