2016-02-12 23:52:43 +08:00
|
|
|
<div class="modal fade" id="modal-import-samples" tabindex="-1" role="dialog" aria-labelledby="modal-import-samples-label">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2017-01-25 19:01:23 +08:00
|
|
|
<h4 class="modal-title"><%= t('samples.modal_import.title') %></h4>
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= t("samples.modal_import.notice") %>
|
|
|
|
</div>
|
2017-01-25 19:01:23 +08:00
|
|
|
<%= bootstrap_form_tag url: parse_sheet_team_path(@team, format: :json),
|
|
|
|
html: {'data-type' => 'json',
|
|
|
|
id: 'form-samples-file'},
|
|
|
|
remote: :true do |f| %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="modal-body">
|
|
|
|
<%= f.file_field :file %>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2017-01-25 19:01:23 +08:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t('general.cancel')%></button>
|
2016-02-12 23:52:43 +08:00
|
|
|
<input type="submit" class="btn btn-primary" value="<%= t("samples.modal_import.upload") %>"</input>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|