aboutsummaryrefslogtreecommitdiff
path: root/web/templates/audio_file/index.html.eex
blob: d598af41cf96f49527ec1dc10157261f4b6b15f5 (plain)
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
<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.id %>_<%= audio_file.audio_path %></td>
      <td><%= audio_file.audio_name %></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) %>