Skip to main content

max / makenotwork

1.7 KB · 40 lines History Blame Raw
1 {%- import "partials/_ui.html" as ui -%}
2 <div id="insertion-library">
3 <h3 class="insertion-list-heading">Clips</h3>
4
5 <div class="insertion-list-toolbar">
6 <button type="button" class="btn btn-sm insertion-list-upload" data-action="insertionsStartUpload">Upload Clip</button>
7 <input type="file" id="insertion-file-input" class="sr-only" accept=".mp3,.wav,.flac,.ogg,.m4a,.aac,.mp4,.webm,.mov" data-change="onInsertionFileSelected">
8 </div>
9
10 {% if insertions.is_empty() %}
11 {% call ui::empty_state("", "No clips yet. Upload an audio or video clip to use as a pre-roll, mid-roll, or post-roll on your items.") %}{% endcall %}
12 {% else %}
13 <table class="data-table insertion-list-table well">
14 <thead>
15 <tr>
16 <th>Title</th>
17 <th>Duration</th>
18 <th>Type</th>
19 <th>Created</th>
20 <th class="insertion-list-th-actions">Actions</th>
21 </tr>
22 </thead>
23 <tbody>
24 {% for ins in insertions %}
25 <tr id="insertion-row-{{ ins.id }}">
26 <td>{{ ins.title }}</td>
27 <td>{{ ins.duration_display }}</td>
28 <td>{{ ins.media_type }}</td>
29 <td>{{ ins.created_at }}</td>
30 <td class="insertion-list-actions">
31 <button type="button" class="btn btn-xs insertion-list-action-btn" data-title="{{ ins.title }}" data-action="onInsertionRename" data-arg="{{ ins.id }}">Rename</button>
32 {{ crate::quasi::clip_acts::delete_html(ins.id)|safe }}
33 </td>
34 </tr>
35 {% endfor %}
36 </tbody>
37 </table>
38 {% endif %}
39 </div>
40