From: Thomas Levine Date: Tue, 11 Jun 2013 19:58:08 +0000 (-0400) Subject: Add standard-label class to all form labels X-Git-Tag: live~5430 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6ded8b55c87f32579b9f42ecb8a58567f4dfe30d?hp=19b4c1422594ab721e641fe89119758c834e549b Add standard-label class to all form labels --- diff --git a/app/views/diary_entry/edit.html.erb b/app/views/diary_entry/edit.html.erb index 0cb1bf8ac..940389c83 100644 --- a/app/views/diary_entry/edit.html.erb +++ b/app/views/diary_entry/edit.html.erb @@ -11,26 +11,26 @@ <%= form_for :diary_entry do |f| %>
- + <%= f.text_field :title, :size => 60 %>
- + <%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %>
- + <%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>

<%= t 'diary_entry.edit.location' -%>

<%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
- + <%= f.text_field :latitude, :size => 20, :id => "latitude" %>
- + <%= f.text_field :longitude, :size => 20, :id => "longitude" %>

<%= t 'diary_entry.edit.use_map_link' -%>

diff --git a/app/views/message/new.html.erb b/app/views/message/new.html.erb index 6b8ad1826..ea9c510f9 100644 --- a/app/views/message/new.html.erb +++ b/app/views/message/new.html.erb @@ -6,12 +6,12 @@ <%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
- + <%= f.text_field :title, :size => 60, :value => @subject %>
- + <%= richtext_area :message, :body, :cols => 80, :value => @body %>
diff --git a/app/views/trace/create.html.erb b/app/views/trace/create.html.erb index 98bce9a51..bfdbf37b4 100644 --- a/app/views/trace/create.html.erb +++ b/app/views/trace/create.html.erb @@ -7,20 +7,20 @@ <%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
- + <%= f.file_field :gpx_file %>
- + <%= f.text_field :description %>
- + <%= f.text_field :tagstring %>

(<%= t'trace.trace_form.tags_help' %>)

- + <%= f.select :visibility, [[t('trace.visibility.private'),"private"],[t('trace.visibility.public'),"public"],[t('trace.visibility.trackable'),"trackable"],[t('trace.visibility.identifiable'),"identifiable"]] %>

(<%= t'trace.trace_form.visibility_help' %>)

diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index f7408dfe5..b5f93dcfb 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -9,40 +9,40 @@ <%= error_messages_for 'user' %> <%= form_for :user, :html => { :multipart => true, :id => 'accountForm',:class => 'standard-form' } do |f| %>
- + <%= f.text_field :display_name %>
- +

<%= t 'user.account.email never displayed publicly' %>

- + <%= f.email_field :new_email %>

<%= t 'user.account.email never displayed publicly' %>

- + <%= f.password_field :pass_crypt, {:value => '', :autocomplete => :off} %>
- + <%= f.password_field :pass_crypt_confirmation, {:value => '', :autocomplete => :off} %>
- + <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>

(<%= t 'user.account.openid.link text' %>)

- +

<% if @user.data_public? %> <%= t 'user.account.public editing.enabled' %> @@ -55,7 +55,7 @@

- +

<% if @user.terms_agreed? %> <%= t 'user.account.contributor terms.agreed' %> @@ -71,22 +71,22 @@

- + <%= richtext_area :user, :description, :rows => '15', :cols => '80' %>
- + <%= f.text_field :languages %>
- + <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{DEFAULT_EDITOR}.name")), 'default']] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
- +
<%= user_image @user %>
@@ -137,9 +137,9 @@
class="nohome"<%end%> >

<%= t 'user.account.no home location' %>

- + <%= f.text_field :home_lat, :id => "home_lat" %> - + <%= f.text_field :home_lon, :id => "home_lon" %>
diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index a7927b6e0..f03292fe9 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -11,13 +11,13 @@
-
-
<%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %> -
@@ -48,12 +48,12 @@
- + <%= url_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %> (<%= t 'user.account.openid.link text' %>)
- + <%= check_box_tag "remember_me", "yes", false, :tabindex => 5 %>
diff --git a/app/views/user/lost_password.html.erb b/app/views/user/lost_password.html.erb index cf7f9b7d0..19147e0b0 100644 --- a/app/views/user/lost_password.html.erb +++ b/app/views/user/lost_password.html.erb @@ -6,7 +6,7 @@ <%= form_tag :action => 'lost_password' do %>
- + <%= text_field('user', 'email', { :tabindex => 1} ) %> <%= submit_tag t('user.lost_password.new password button'), :tabindex => 2 %>
diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 2b1138666..ab243cbfd 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -12,13 +12,13 @@
-
-