diff options
author | neodarz <neodarz@neodarz.net> | 2017-01-24 17:09:18 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-01-24 17:09:18 +0100 |
commit | 033d07a519bac03fdfd28ca15e09cc287e80fd14 (patch) | |
tree | d623a1806c64ad84d7c88b0762ae6eb26ed14ce0 /web/templates/audio_file/index.html.eex | |
download | the_transcriber_backend-033d07a519bac03fdfd28ca15e09cc287e80fd14.tar.xz the_transcriber_backend-033d07a519bac03fdfd28ca15e09cc287e80fd14.zip |
Initial commit with non-functional pieces of code about file upload
Diffstat (limited to 'web/templates/audio_file/index.html.eex')
-rw-r--r-- | web/templates/audio_file/index.html.eex | 30 |
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) %> |