2017-06-08 01:11:25 +08:00
|
|
|
<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>
|
2020-07-06 18:47:42 +08:00
|
|
|
<h3 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h3>
|
2017-06-08 01:11:25 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
2020-07-06 18:47:42 +08:00
|
|
|
<div class="form-group sci-input-container">
|
2017-06-08 01:11:25 +08:00
|
|
|
<%= f.text_field :name,
|
|
|
|
label: t("repositories.index.modal_copy.name"),
|
2017-11-13 23:30:42 +08:00
|
|
|
help: t("repositories.index.modal_copy.description"),
|
2017-06-08 01:11:25 +08:00
|
|
|
autofocus: true,
|
2020-07-06 18:47:42 +08:00
|
|
|
class: "sci-input-field",
|
2017-06-08 01:11:25 +08:00
|
|
|
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-success" %>
|
2017-06-08 01:11:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|