adding subtitle in modal

This commit is contained in:
Mojca Lorber 2016-10-03 09:28:58 +02:00
parent f4345f3aef
commit 5b32be2137
2 changed files with 8 additions and 3 deletions

View file

@ -4,11 +4,14 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><%= t('samples.modal_info.title', sample: @sample.name) %></h4>
<h4 class="modal-title"><%= t('samples.modal_info.head_title', sample: @sample.name) %></h4>
</div>
<div class="modal-body">
<% if @sample.my_modules.count > 0 %>
<div>
<%= t("samples.modal_info.title") %>
</div>
<div class="linked-children-datatable">
<table id="sample-info-table" class="table dataTable no-footer" role="grid">
<tbody>
@ -41,7 +44,7 @@
</table>
</div>
<% else %>
<em><%=t "search.index.sample_no_modules" %></em>
<em><%=t "samples.modal_info.no_tasks" %></em>
<% end %>
</div>

View file

@ -880,7 +880,9 @@ en:
add_new_sample_group: "Add sample group"
add_new_column: "Add column"
modal_info:
title: "Information for sample '%{sample}'"
head_title: "Information for sample '%{sample}'"
title: "This sample is assigned to tasks."
no_tasks: "This sample in not assigned to any task."
modal_import:
title: "Import samples"
notice: "You may upload .csv file (comma separated) or tab separated file (.txt or .tdv) or Excel file (.xls, .xlsx). First row should include header names, followed by rows with sample data."