Skip to content

Commit

Permalink
Add dir=auto to text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 20, 2022
1 parent 3a534ea commit 1e2fdd4
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/views/diary_entries/_form.html.erb
@@ -1,5 +1,5 @@
<%= f.text_field :title %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %>
<%= f.text_field :title, :dir => :auto %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :dir => :auto, :format => @diary_entry.body_format %>
<%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>

<fieldset>
Expand Down
2 changes: 1 addition & 1 deletion app/views/diary_entries/show.html.erb
Expand Up @@ -24,7 +24,7 @@
<h3 id="newcomment"><%= t ".leave_a_comment" %></h3>

<%= bootstrap_form_for @entry.comments.new, :url => { :action => "comment" } do |f| %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :dir => :auto, :hide_label => true %>
<%= f.primary %>
<% if @entry.subscribers.exists?(current_user.id) %>
<%= link_to t("javascripts.changesets.show.unsubscribe"), diary_entry_unsubscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => "btn btn-light" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/issues/_comments.html.erb
Expand Up @@ -18,7 +18,7 @@

<div>
<%= bootstrap_form_for @new_comment, :url => issue_comments_path(@issue) do |f| %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :dir => :auto, :hide_label => true %>
<%= f.form_group do %>
<%= f.check_box :reassign, { :label => t(".reassign_param"), :id => "reassign", :name => "reassign", :checked => false }, true, false %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/messages/new.html.erb
Expand Up @@ -4,8 +4,8 @@
<%= bootstrap_form_for @message do |f| %>
<%= hidden_field_tag :display_name, @message.recipient.display_name, :autocomplete => "off" %>
<%= f.text_field :title %>
<%= f.richtext_field :body, :cols => 80, :rows => 20 %>
<%= f.text_field :title, :dir => :auto %>
<%= f.richtext_field :body, :cols => 80, :rows => 20, :dir => :auto %>
<%= f.primary %>
<%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "btn btn-link" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/profiles/edit.html.erb
Expand Up @@ -7,7 +7,7 @@
<% end %>
<%= bootstrap_form_for current_user, :url => { :action => :update }, :html => { :multipart => true, :autocomplete => :off } do |f| %>
<%= f.richtext_field :description, :cols => 80, :rows => 20 %>
<%= f.richtext_field :description, :cols => 80, :rows => 20, :dir => :auto %>

<fieldset class="form-group">
<%= f.label t(".image") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/redactions/edit.html.erb
Expand Up @@ -6,6 +6,6 @@
<%= bootstrap_form_for(@redaction) do |f| %>
<%= f.text_field :title %>
<%= f.richtext_field :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
<%= f.richtext_field :description, :cols => 80, :rows => 20, :dir => :auto, :format => @redaction.description_format %>
<%= f.primary %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/redactions/new.html.erb
Expand Up @@ -5,6 +5,6 @@
<%= bootstrap_form_for(@redaction) do |f| %>
<%= f.text_field :title %>
<%= f.richtext_field :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
<%= f.richtext_field :description, :cols => 80, :rows => 20, :dir => :auto, :format => @redaction.description_format %>
<%= f.primary %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/user_blocks/edit.html.erb
Expand Up @@ -12,7 +12,7 @@
<% end %>
<%= bootstrap_form_for(@user_block) do |f| %>
<%= f.richtext_field :reason, :cols => 80, :rows => 20, :format => @user_block.reason_format %>
<%= f.richtext_field :reason, :cols => 80, :rows => 20, :dir => :auto, :format => @user_block.reason_format %>
<%= f.form_group do %>
<%= label_tag "user_block_period", t(".period") %><br />
Expand Down
2 changes: 1 addition & 1 deletion app/views/user_blocks/new.html.erb
Expand Up @@ -6,7 +6,7 @@
<% end %>
<%= bootstrap_form_for(@user_block) do |f| %>
<%= hidden_field_tag "display_name", @user.display_name, :autocomplete => "off" %>
<%= f.richtext_field :reason, :cols => 80, :rows => 20 %>
<%= f.richtext_field :reason, :cols => 80, :rows => 20, :dir => :auto %>
<%= f.form_group do %>
<%= label_tag "user_block_period", t(".period") %><br />
Expand Down

0 comments on commit 1e2fdd4

Please sign in to comment.