Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Extending fix first implemented in commit 0ee0230 (forgot some stuff)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-jls authored and frenkel committed Dec 12, 2016
1 parent 6fc84e8 commit b1a40a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
7 changes: 3 additions & 4 deletions app/views/email_templates/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<%= form_for @email_template do |f| %>
<div class="row mt">
<div class="large-6 columns">
<%= f.text_field :name %>
<%= f.select :kind, EmailTemplate.kinds.keys.map { |k| [k.humanize, k] } %>
<%= f.text_field :name, tabindex: tabindex %>
<%= f.select :kind, EmailTemplate.kinds.keys.map { |k| [k.humanize, k] }, {}, tabindex: tabindex %>
<%= f.label :message do %>
<%= t('activerecord.attributes.email_template.message') %>
<%= content_tag :span, content_tag(:i, '', class: 'fa fa-info-circle'),
data: { tooltip: '' }, class: 'has-tip', title: t(:tooltip) %>
<% end %>
<%= f.trix_editor :message, label: false %>
<%= f.trix_editor :message, label: false, tabindex: tabindex %>
</div>
<div class="large-6 columns" id="preview-area"></div>
</div>

<div class="row">
Expand Down
26 changes: 13 additions & 13 deletions app/views/users/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,39 @@
<p><%= t(:only_fill_in_passwords_when_modifying) %></p>

<% if can? :create, User %>
<%= f.text_field :email %>
<%= f.text_field :email, tabindex: tabindex %>
<% end %>

<%= f.text_field :name %>
<%= f.text_field :name, tabindex: tabindex %>

<%= f.password_field :password %>
<%= f.password_field :password, tabindex: tabindex %>

<%= f.password_field :password_confirmation %>
<%= f.password_field :password_confirmation, tabindex: tabindex %>

<% if can? :create, User %>
<%= f.check_box :agent, label: t(:user_is_an_agent) %>
<%= f.check_box :agent, label: t(:user_is_an_agent), tabindex: tabindex %>
<% end %>

<%= f.select :time_zone, @time_zones %>
<%= f.select :time_zone, @time_zones, {}, tabindex: tabindex %>

<%= f.select :locale, @locales %>
<%= f.select :locale, @locales, {}, tabindex: tabindex %>

<%= f.select :per_page, [10, 20, 30, 50, 75, 100] %>
<%= f.select :per_page, [10, 20, 30, 50, 75, 100], {}, tabindex: tabindex %>

</div>

<div class="medium-6 columns">
<h5><%= t(:email_settings) %></h5>

<%= f.check_box :prefer_plain_text %>
<%= f.check_box :include_quote_in_reply %>
<%= f.check_box :prefer_plain_text, tabindex: tabindex %>
<%= f.check_box :include_quote_in_reply, tabindex: tabindex %>

<% if @user.agent? %>

<%= f.check_box :notify,
label: t(:receive_new_ticket_notifications) %>
label: t(:receive_new_ticket_notifications), tabindex: tabindex %>

<%= f.trix_editor :signature, class: 'mbl' %>
<%= f.trix_editor :signature, class: 'mbl', tabindex: tabindex %>
<% end %>


Expand All @@ -50,7 +50,7 @@
<p><%= t(:have_access_to_label) %></p>

<%= f.collection_select :label_ids, @labels, :id, :name, {}, {
multiple: true, class: 'select2 mbl' } %>
multiple: true, class: 'select2 mbl', tabindex: tabindex } %>
<% end %>

<% unless Rails.application.secrets[:google_client_id].blank? %>
Expand Down

0 comments on commit b1a40a8

Please sign in to comment.