-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-field-video.html
58 lines (57 loc) · 1.77 KB
/
form-field-video.html
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
{%- capture this_id -%}{{ include.label | slugify }}{%- endcapture -%}
<fieldset
id="{{ this_id }}"
class="
{% include patterns/form-field-auto-save-classes %}
group
pat-form-field-video
{% if include.depends %}pat-depends{% endif %}"
{% if include.action %}
data-pat-inject="
url: {{ include.action }};
source: #{{this_id}};
target: #{{this_id}}"
{% endif %}>
<legend>
{%- include patterns/i18n id=include.label %}{% include patterns/form-required.html -%}
</legend>
{% if page.video %}
<video
class="video"
controls
src="{{ page.video }}">
<source
src="{{ page.video }}"
type="video/mp4">
</video>
<div
class="pat-button-bar">
<button
tabindex="0"
class="
remove
pat-button"
type="submit"
formaction="/event-brainstorm-session-published.html">{%- include patterns/i18n id="patterns.label_remove_imp" -%}</button>
</div>
{% else %}
<div
class="pat-button-bar">
<label
class="
file-upload-button
pat-button">
{% include patterns/i18n id="label_upload_imp" %}
<input
tabindex="0"
type="file"
accept="video/mp4,video/x-m4v,video/*"
name="" />
</label>
</div>
{% endif %}
{% if include.help %}
{% include patterns/form-help.html
content=include.help more=include.help_more %}
{% endif %}
</fieldset>