aboutsummaryrefslogtreecommitdiff
path: root/web/templates/audio_file/index.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/audio_file/index.html.eex')
-rw-r--r--web/templates/audio_file/index.html.eex30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/templates/audio_file/index.html.eex b/web/templates/audio_file/index.html.eex
new file mode 100644
index 0000000..445178d
--- /dev/null
+++ b/web/templates/audio_file/index.html.eex
@@ -0,0 +1,30 @@
+<h2>Listing audio file</h2>
+
+<table class="table">
+ <thead>
+ <tr>
+ <th>Audio path</th>
+ <th>Transcription file path</th>
+ <th>Audio duration</th>
+
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+<%= for audio_file <- @audio_file do %>
+ <tr>
+ <td><%= audio_file.audio_path %></td>
+ <td><%= audio_file.transcription_file_path %></td>
+ <td><%= audio_file.audio_duration %></td>
+
+ <td class="text-right">
+ <%= link "Show", to: audio_file_path(@conn, :show, audio_file), class: "btn btn-default btn-xs" %>
+ <%= link "Edit", to: audio_file_path(@conn, :edit, audio_file), class: "btn btn-default btn-xs" %>
+ <%= link "Delete", to: audio_file_path(@conn, :delete, audio_file), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>
+ </td>
+ </tr>
+<% end %>
+ </tbody>
+</table>
+
+<%= link "New audio file", to: audio_file_path(@conn, :new) %>