polyglot/app/views/users/setting.html.erb

65 lines
2.5 KiB
Plaintext
Raw Normal View History

<div id="settings-page"></div>
2018-08-31 09:17:26 +00:00
2018-09-05 12:07:43 +00:00
<% language_names = [] %>
<% @languages.each do |language| %>
<% language_names << language.name %>
<% end %>
2018-08-31 09:17:26 +00:00
<% fonts = [
"Arial",
"Times New Roman",
"Calibri"
] %>
2018-08-31 09:17:26 +00:00
<div class="container">
<div class="contacts-container">
2018-09-01 18:12:26 +00:00
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="settings">
<h2>Settings</h2>
<div>
2018-09-05 12:07:43 +00:00
<%= simple_form_for(current_user, url: update_setting_path) do |t| %>
2018-09-01 18:12:26 +00:00
<div>
<div class="card card-form card-form-no-hover">
<%= t.label :language, class:'padding-right no-margin font-weight-normal' %>
2018-09-05 12:07:43 +00:00
<%= t.input_field :language, collection: language_names, class:'input-field-text-black input-dropdown form-control', include_blank: false %>
2018-09-01 18:12:26 +00:00
</div>
<div class="card card-form card-form-no-hover">
<%= 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' %>
2018-09-01 18:12:26 +00:00
</div>
<div class="card card-form card-form-no-hover">
<%= 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' %>
2018-09-01 18:12:26 +00:00
</div>
<div class="card card-form card-form-no-hover">
<%= t.label :enable_transcript, class:'padding-right no-margin font-weight-normal' %>
<label class="switch">
<%= t.input_field :enable_transcript, class:'input-field-text-black' %>
<span class="slider round"></span>
</label>
</div>
2018-09-05 12:07:43 +00:00
<%= t.button :submit, value: 'Save', class: "btn btn-primary save-btn form-control" %>
2018-09-01 18:12:26 +00:00
<p></p>
</div>
<% end %>
2018-09-05 12:07:43 +00:00
<%#= link_to "Save", update_setting_path, method: :patch, class: "btn btn-primary save-btn form-control" %>
</div>
2018-09-01 18:12:26 +00:00
</div>
</div>
2018-09-01 18:12:26 +00:00
<div class="col-xs-12 col-md-6 hidden-xs hidden-sm">
<div class="video-feed">
<div class="video-content">
<video id="settings-video" class="flex-video" autoplay=""></video>
</div>
</div>
2018-08-31 09:17:26 +00:00
</div>
</div>
</div>
2018-08-31 09:17:26 +00:00
</div>
<%= javascript_pack_tag 'settings_video' %>
2018-08-31 09:17:26 +00:00