<% language_names = [] %> <% @languages.each do |language| %> <% language_names << language.name %> <% end %> <% fonts = [ "Arial", "Times New Roman", "Calibri" ] %>

Settings

<%= simple_form_for(current_user, url: update_setting_path) do |t| %>
<%= t.label :language, class:'padding-right no-margin font-weight-normal' %> <%= t.input_field :language, collection: language_names, class:'input-field-text-black input-dropdown form-control', include_blank: false %>
<%= t.label :caption_font, class:'padding-right no-margin font-weight-normal' %> <%= t.input_field :caption_font, collection: fonts.sort, class:'input-field-text-black input-dropdown form-control' %>
<%= t.label :caption_font_size, class:'padding-right no-margin font-weight-normal' %> <%= t.input_field :caption_font_size, class:'input-field-text-black input-dropdown form-control' %>
<%= t.label :enable_transcript, class:'padding-right no-margin font-weight-normal' %>
<%= t.button :submit, value: 'Save', class: "btn btn-primary save-btn form-control" %>

<% end %> <%#= link_to "Save", update_setting_path, method: :patch, class: "btn btn-primary save-btn form-control" %>
<%= javascript_pack_tag 'settings_video' %>