mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
33 lines
1.4 KiB
Text
33 lines
1.4 KiB
Text
|
<div class="modal fade" id="copy-repo-modal" tabindex="-1" role="dialog">
|
||
|
<%= bootstrap_form_for @tmp_repository,
|
||
|
url: team_repository_copy_path(id: @repository, format: :json),
|
||
|
remote: true do |f| %>
|
||
|
<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>
|
||
|
<h4 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h4>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||
|
<div class="form-group">
|
||
|
<%= f.text_field :name,
|
||
|
label: t("repositories.index.modal_copy.name"),
|
||
|
autofocus: true,
|
||
|
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-primary" %>
|
||
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|