| 1 | <% content_for :meta_head do %> |
| 2 | <title><%= @meta_title %> | <%= @user.name %></title> |
| 3 | <meta name="description" content="<%= @meta_description %>"> |
| 4 | <% end %> |
| 5 | <div class="row"> |
| 6 | <!-- BEGIN content --> |
| 7 | <div class="col-md-12"> |
| 8 | |
| 9 | <div class="page-header"> |
| 10 | <h1><%= t("my") %> / Arsip 📁</h1> |
| 11 | </div> |
| 12 | <%= render "shared/flash_message", object: flash %> |
| 13 | |
| 14 | </div> |
| 15 | <div class="col-md-2"> |
| 16 | <%= render "my/partial_menu" %> |
| 17 | </div> |
| 18 | <div class="col-md-10"> |
| 19 | |
| 20 | <div class="row"> |
| 21 | <!-- BEGIN content --> |
| 22 | <div class="col-md-12"> |
| 23 | <div class="lead page-info"> |
| 24 | <b><i>Arsip</i></b> is your file management system for all you <b><i>AI personal assistant</i></b> tools. |
| 25 | </div> |
| 26 | <%= form_with model: @audio_file, url: { action: "files" }, :method => :post, html: { :class => "form-horizontal" } do |form| %> |
| 27 | <div class="form-group"> |
| 28 | <label for="youtubeLink" class="col-sm-3 control-label">YouTube</label> |
| 29 | <div class="col-sm-9"> |
| 30 | <%= form.text_field :youtube_video_url, class: "form-control", placeholder: "YouTube video link" %> |
| 31 | <%= form.hidden_field :user_id, :value => @user.id %> |
| 32 | <%= form.hidden_field :is_public, :value => 0 %> |
| 33 | </div> |
| 34 | </div> |
| 35 | <div class="form-group"> |
| 36 | <label for="audioFile" class="col-sm-3 control-label">Or use your audio file</label> |
| 37 | <div class="col-sm-9"> |
| 38 | <%= form.file_field :source_file, accept: ".mp3,audio/*" %> |
| 39 | <p class="help-block">.mp3 or .wav file</p> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="form-group"> |
| 43 | <div class="col-sm-offset-3 col-sm-9"> |
| 44 | <%= form.submit "Split it!", class: "bb-button bb-blue bb-large bb-round" %> |
| 45 | </div> |
| 46 | </div> |
| 47 | <% end %> |
| 48 | </div> |
| 49 | </div> |
| 50 | <div class="row"> |
| 51 | <!-- BEGIN content --> |
| 52 | <div class="col-md-12"> |
| 53 | <h2>Files</h2> |
| 54 | <% if @audio_files.count == 0 %> |
| 55 | You don't have any files. |
| 56 | <% else %> |
| 57 | <table style="width: 100%"> |
| 58 | <% @audio_files.each_with_index do |audio_file, index| %> |
| 59 | <%= render "my/partial_files_row", audio_file: audio_file %> |
| 60 | <% end %> |
| 61 | </table> |
| 62 | <% end %> |
| 63 | </div> |
| 64 | </div> |
| 65 | |
| 66 | </div> |
| 67 | <!-- END content --> |
| 68 | </div> |
| 69 | <div class="row" style="margin-top: 20px;"> |
| 70 | <div class="col-md-12"> |
| 71 | |
| 72 | <ol class="breadcrumb"> |
| 73 | <li><%= link_to t("breadcrumb_home"), root_path %></li> |
| 74 | </ol> |
| 75 | |
| 76 | </div> |
| 77 | </div> |