-
Notifications
You must be signed in to change notification settings - Fork 6
/
videoedit.html
95 lines (95 loc) · 3.91 KB
/
videoedit.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{% extends "layout.html" %}
{% from "baseframe/forms.html" import renderfield, ajaxform, richtext_editor %}
{% block title %}Editing: {{ video.title }}{% endblock %}
{% block headline %}
<h3><a href="{{ url_for('channel_view', channel=channel.name) }}">{{ channel.title }}</a> ›
<a href="{{ url_for('playlist_view', channel=channel.name, playlist=playlist.name) }}">{{ playlist.short_title or playlist.title }}</a> ›</h3>
<h1>{{ video.title }} » Edit</h1>
{% endblock %}
{% block content %}
<form method="POST">
<input type="hidden" name="form.id" value="video"/>
{{ form.hidden_tag() }}
{%- if form.errors %}
<div class="alert alert-error">Please correct the indicated errors</div>
{%- endif %}
<div class="pull-right">
<button name="done" type="submit" class="btn btn-primary"><i class="icon-ok"></i> Done</button>
<a class="btn btn-danger" href="{{ url_for('video_delete', channel=channel.name, playlist=playlist.name, video=video.url_name) }}"><i class="icon-trash"></i> Delete...</a>
</div>
<div class="control-group{% if form.title.errors %} error{% endif %}" id="field-{{ form.title.id }}">
<h2>{{ form.title.label.text }} <small>{{ form.title.description }}{% if form.title.flags.required %} (required){% endif %}</small></h2>
{{ form.title(class="input-primary span12", autofocus="autofocus") }}
{% if form.title.errors -%}
{% for error in form.title.errors -%}
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% endif %}
</div>
<div class="row">
<div class="span6">
<div class="control-group{% if form.description.errors %} error{% endif %}" id="field-{{ form.description.id }}">
<h3>{{ form.description.label.text }} <small>{{ form.description.description }}{% if form.description.flags.required %} (required){% endif %}</small></h3>
{{ form.description }}
</div>
</div>
<div class="span6">
<h3>Speakers <small>Tag speakers to this video</small></h3>
<ol>
<li><em>(No speaker tagged yet)</em></li>
</ol>
<div class="form-inline">
<input type="text" name="name" class="span5" placeholder="Username or email">
<button class="btn"><i class="icon-plus"></i> Add</button>
</div>
</div>
</div>
</form>
<div class="row">
<div class="span6">
<form class="form-inline" method="POST">
<input type="hidden" name="form.id" value="video_url"/>
{{ formvideo.hidden_tag() }}
<div class="control-group" id="field-{{ formvideo.video_url.id }}">
{{ formvideo.video_url.label(class='control-label') }}
<div class="controls">
{{ formvideo.video_url(class='span5') }}
<button class="btn" type="submit" name="video_update"><i class="icon-refresh"></i> Update</button>
</div>
</div>
<div class="video video169">
{{ video.embed_video_for('edit')|safe }}
</div>
</form>
</div>
<div class="span6">
<form class="form-inline" method="POST">
<input type="hidden" name="form.id" value="slide_url"/>
{{ formslides.hidden_tag() }}
<div class="control-group" id="field-{{ formslides.slides_url.id }}">
{{ formslides.slides_url.label(class='control-label') }}
<div class="controls">
{{ formslides.slides_url(class='span5') }}
<button class="btn" type="submit" name="slides_update"><i class="icon-refresh"></i> Update</button>
</div>
</div>
<div class="video video169">
{% set slides_html = video.embed_slides_for('edit')|safe %}
{{ raise }}
{%- if slides_html %}
<div class="video169">
{{ slides_html }}
</div>
{%- else -%}
<div class="video169 placeholder">
No slides available
</div>
{%- endif %}
</div>
</form>
</div>
</div>
{% endblock %}
{% block footerscripts %}
{{ richtext_editor(form.description) }}
{% endblock %}