Skip to content

Commit 2914c05

Browse files
committed
Fix weird use of hints
1 parent 268ace8 commit 2914c05

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/views/events/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
<!-- Field: Topics -->
111111
<% if !TeSS::Config.feature['disabled'].include? 'topics' %>
112-
<%= f.autocompleter :scientific_topics, url: edam_topics_path, template: 'autocompleter/term', label: 'Topics',
112+
<%= f.autocompleter :scientific_topics, url: edam_topics_path, template: 'autocompleter/term',
113113
id_field: :uri, label_field: :preferred_label, input_html: { title: t('events.hints.topics') } %>
114114
<% end %>
115115

@@ -149,7 +149,7 @@
149149
<!-- Field: Content Provider -->
150150
<%= f.input :content_provider_id, label: 'Content provider (where the event metadata is obtained from)',
151151
collection: current_user.get_editable_providers, label_method: :title, value_method: :id, include_blank: true,
152-
field_lock: true %>
152+
field_lock: true, input_html: { title: t('events.hints.providers') } %>
153153

154154
<!-- Field: Materials -->
155155
<%= f.autocompleter :materials, input_html: { title: t('events.hints.materials') }, url: materials_path %>

app/views/materials/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<% # Required Fields -%>
1414
1515
<!-- Field: Title -->
16-
<%= f.input :title, as: :string, field_lock: true, input_html: { title: t('materials.hints.title'), placeholder: t('materials.hints.title') } %>
16+
<%= f.input :title, as: :string, field_lock: true, input_html: { title: t('materials.hints.title') } %>
1717
1818
<!-- Field: URL -->
1919
<%= render partial: 'common/url_checker',
@@ -64,7 +64,7 @@
6464

6565
<!-- Field: Provider -->
6666
<%= f.input :content_provider_id, collection: current_user.get_editable_providers, label_method: :title, value_method: :id,
67-
include_blank: true, field_lock: true, label: t('materials.hints.providers'),
67+
include_blank: true, field_lock: true, input_html: { title: t('materials.hints.providers') },
6868
visibility_toggle: TeSS::Config.feature['materials_disabled'] %>
6969

7070
<!-- Field: Authors -->

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ en:
619619
timezone: 'Select the appropriate timezone'
620620
title: 'Add a title for your training event.'
621621
url: 'Location where the event and its details are advertised on the internet.'
622+
providers: The organisation providing the event metadata.
622623
prompts:
623624
language: 'Select a language...'
624625
long: 'Long events'

0 commit comments

Comments
 (0)