forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtz-display.html
More file actions
38 lines (38 loc) · 1.64 KB
/
tz-display.html
File metadata and controls
38 lines (38 loc) · 1.64 KB
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
{% load origin %}
{% origin %}
<div class="tz-display input-group my-3">
<label class="input-group-text border-primary bg-white fw-bold">Time zone:</label>
<input type="radio"
autocomplete="off"
{% if timezone == "meeting" %}checked{% endif %}
name="tzradio"
class="btn-check"
id="meeting-timezone{{ id_suffix }}"
onclick="ietf_timezone.use('{{ timezone }}')">
<label class="btn btn-outline-primary" for="meeting-timezone{{ id_suffix }}">Meeting</label>
<input type="radio"
autocomplete="off"
{% if timezone == "local" %}checked{% endif %}
name="tzradio"
class="btn-check"
id="local-timezone{{ id_suffix }}"
onclick="ietf_timezone.use('local')">
<label class="btn btn-outline-primary" for="local-timezone{{ id_suffix }}">Local</label>
<input type="radio"
autocomplete="off"
{% if timezone == "UTC" %}checked{% endif %}
name="tzradio"
class="btn-check"
id="utc-timezone{{ id_suffix }}"
onclick="ietf_timezone.use('UTC')">
<label class="btn btn-outline-primary" for="utc-timezone{{ id_suffix }}">UTC</label>
<select id="timezone-select{{ id_suffix }}"
class="tz-select select2-field form-select border-primary"
data-max-entries="1" data-minimum-input-length="0"
onchange="$('.tz-display input[name=tzradio]').prop('checked', false);">
{# Avoid blank while loading. JavaScript replaces the option list after init. #}
<option selected>
{{ timezone }}
</option>
</select>
</div>