scinote-web/app/views/repositories/_copy_repository_modal.html.erb
2023-07-03 12:59:13 +02:00

33 lines
1.5 KiB
Text

<div class="modal fade" id="copy-repo-modal" tabindex="-1" role="dialog">
<%= form_with model: @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">&times;</span>
</button>
<h3 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h3>
</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 sci-input-container">
<label><%= t("repositories.index.modal_copy.name") %></label>
<%= f.text_field :name,
help: t("repositories.index.modal_copy.description"),
autofocus: true,
class: "sci-input-field",
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-success" %>
</div>
</div>
</div>
<% end %>
</div>