Skip to content

Commit 0da1f33

Browse files
Thaleia TagarakiAstradeni
authored andcommitted
Added autofocus in a number of forms, plus correction of a few spelling mistakes
1 parent 2180e61 commit 0da1f33

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

app/views/admin/campaigns/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.col-md-8
1212
= semantic_form_for(@campaign, url: (@campaign.new_record? ? admin_conference_campaigns_path : admin_conference_campaign_path(@conference.short_title, @campaign))) do |f|
1313
= f.inputs do
14-
= f.input :name
14+
= f.input :name, input_html: { autofocus: true }
1515
= f.inputs name: 'UTM Parameters' do
1616
= f.input :utm_campaign, label: 'Campaign', hint: 'Groups all of the content from one campaign. E.g. 20percentpromocode'
1717
= f.input :utm_source, label: 'Source', hint: 'Which website is sending you traffic. E.g. Facebook, google+, blog'

app/views/admin/commercials/index.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
.row
1515
.col-md-6
1616
= semantic_form_for(@commercial, url: admin_conference_commercials_path(conference_id: @conference.short_title)) do |f|
17-
= f.input :url, label: 'URL', as: :string, input_html: { required: 'required' },
17+
= f.input :url, label: 'URL', as: :string, input_html: { required: 'required' }, input_html: { autofocus: true },
1818
hint: 'Just paste the url of your video/photo provider. YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.'
1919
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true }
2020
%hr

app/views/admin/contacts/edit.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.col-md-8
99
= semantic_form_for(@contact, url: admin_conference_contact_path(@conference.short_title), html: {multipart: true}) do |f|
1010
= f.inputs name: 'Mail' do
11-
= f.input :email, hint: 'Contact email address for your conference. Will be used as reply-to address in emails sent out by the system.'
11+
= f.input :email, input_html: { autofocus: true }, hint: 'Contact email address for your conference. Will be used as reply-to address in emails sent out by the system.'
1212
= f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers'
1313
= f.inputs name: 'Social Media' do
1414
= f.input :social_tag, hint: "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"

app/views/admin/difficulty_levels/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.row
1010
.col-md-8
1111
= semantic_form_for(@difficulty_level, url: (@difficulty_level.new_record? ? admin_conference_program_difficulty_levels_path : admin_conference_program_difficulty_level_path(@conference.short_title, @difficulty_level))) do |f|
12-
= f.input :title, required: true
12+
= f.input :title, input_html: { autofocus: true }, required: true
1313
= f.input :description, input_html: {rows: 3, class: 'span6'}
1414
= f.input :color, input_html: {size: 6, type: 'color'}
1515
%p.text-right

app/views/admin/event_types/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.row
1010
.col-md-12
1111
= semantic_form_for(@event_type, url: (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))) do |f|
12-
= f.input :title
12+
= f.input :title, input_html: { autofocus: true }
1313
= f.input :length, input_html: {size: 3, type: 'number', step: @event_type.program.schedule_interval, min: @event_type.program.schedule_interval}
1414
= f.input :description
1515
= f.input :minimum_abstract_length, input_html: {size: 3}

app/views/admin/programs/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
= f.input :schedule_fluid, label: 'Allow submitters to change their event after it is scheduled'
1010
= f.input :rating, hint: 'Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals.'
1111
= f.input :languages, hint: "Enter the languages allowed for events as values of #{link_to('ISO 639-1', 'http://www.loc.gov/standards/iso639-2/php/code_list.php', target: "_blank")} language codes separated with commas. The first language would be the default language. Leave it blank if you do not want to specify languages.".html_safe
12-
= f.input :schedule_interval, hint: "It is the minimal time interval of your schedule. The value should be 5, 6, 10, 12, 15, 20, 30 or 60. Warning! Some events could be unscheduled when changing this value."
12+
= f.input :schedule_interval, input_html: { autofocus: true }, hint: "It is the minimal time interval of your schedule. The value should be 5, 6, 10, 12, 15, 20, 30 or 60. Warning! Some events could be unscheduled when changing this value."
1313
= f.input :blind_voting, hint: 'Enable this feature if you do not want to show voting results and voters prior to user submitting a vote. For the feature to work you need to set the voting dates below as well'
1414
= f.input :voting_start_date, as: :string, input_html: { id: 'datetimepicker-voting_start_date', readonly: true, value: (f.object.voting_start_date.to_formatted_s(:db_without_seconds) unless f.object.voting_start_date.nil?) }
1515
= f.input :voting_end_date, as: :string, input_html: { id: 'datetimepicker-voting_start_date', readonly: true, value: (f.object.voting_end_date.to_formatted_s(:db_without_seconds) unless f.object.voting_end_date.nil?) }

app/views/admin/reports/_all_events.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
All Events
66
= "(#{@events.length})"
77
%p.text-muted
8-
All submissions and the information that they are mssing
8+
All submissions and the information that they are missing
99

1010
.col-md-12
1111
%table.table.table-striped.table-bordered.table-hover.datatable

app/views/admin/resources/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.row
99
.col-md-8
1010
= semantic_form_for(@resource, :url => (@resource.new_record? ? admin_conference_resources_path : admin_conference_resource_path(@conference.short_title, @resource))) do |f|
11-
= f.input :name
11+
= f.input :name, input_html: { autofocus: true }
1212
= f.input :description, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
1313
= f.input :used
1414
= f.input :quantity

app/views/admin/roles/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
= semantic_form_for @role, url: @url do |f|
1111
.row
1212
.col-md-5
13-
= f.input :description
13+
= f.input :description, input_html: { autofocus: true }
1414

1515
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

app/views/admin/roles/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
= u.label 'Add user by email: '
2626
.input-group
27-
= u.input :email, label: false, placeholder: "User's email"
27+
= u.input :email, input_html: { autofocus: true }, label: false, placeholder: "User's email"
2828
.input-group-btn
2929
= u.submit 'Add', id: 'user-add', class: 'btn btn-primary'
3030

0 commit comments

Comments
 (0)