Skip to content

Commit

Permalink
Added search placeholders to submissions and summaries tables, with l…
Browse files Browse the repository at this point in the history
…ocalization text
  • Loading branch information
spring-ryanc committed Feb 8, 2015
1 parent da80085 commit f8a7830
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/submissions/_submissions_table.js.jsx.erb
Expand Up @@ -211,6 +211,7 @@
filters={this.props.filters}
filter_type={true}
onSelectedRowsChange={this.updateSelectedSubmissions}
search_placeholder={'<%= j raw I18n.t('browse_submissions.search_submissions') %>'}
/>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion app/views/summaries/_summaries_table.js.jsx.erb
Expand Up @@ -151,7 +151,8 @@
<Table data={summaries_data}
columns={this.props.columns}
filters={this.props.filters}
filter_type={true} />
filter_type={true}
search_placeholder={'<%= j raw I18n.t('summaries_index.search_summaries') %>'}/>
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Expand Up @@ -443,6 +443,7 @@ en:
tags_used: "Tags Used"
tags_search: "Search for Tags:"
tags_list: "Filter by Tag:"
search_submissions: "Search Submissions"

summaries_index:
group_name: "Group Name"
Expand All @@ -457,6 +458,7 @@ en:
filename: "Filename"
section: "Section"
sections: "Section:"
search_summaries: "Search Summaries"

grade_entry_forms:
blank_field: "can't be blank"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -422,6 +422,7 @@ fr:
download_groupings_files: "Télécharger tous les envois"
sections: "Section :"
revision_history: "%{num} : "
search_submissions: "Rechercher Soumissions"

summaries_index:
group_name: "Nom du groupe"
Expand All @@ -436,6 +437,7 @@ fr:
filename: "Fichier"
section: "Section"
sections: "Section :"
search_summaries: "Rechercher Résumés"

grade_entry_forms:
blank_field: "doit être rempli(e)"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/pt.yml
Expand Up @@ -419,6 +419,10 @@ pt:
download_groupings_files: "Baixar todas as submissões"
sections: "Sessão:"
revision_history: "%{num}: "
search_submissions: "Pesquisa Submissões"

summaries_index:
search_summaries: "Pesquisa Resumos"

grade_entry_forms:
blank_field: "Não pode ser branco"
Expand Down

0 comments on commit f8a7830

Please sign in to comment.