mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
<div class="modal fade" id="rename-repo-modal" tabindex="-1" role="dialog">
|
|
<%= form_with model: @repository,
|
|
url: team_repository_path(id: @repository, format: :json),
|
|
data: { 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">
|
|
<i class="sn-icon sn-icon-close"></i>
|
|
</button>
|
|
<h3 class="modal-title"><%= t("repositories.index.modal_rename.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_rename.name") %></label>
|
|
<%= f.text_field :name,
|
|
autofocus: true,
|
|
class: "sci-input-field",
|
|
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<%= f.submit t("repositories.index.modal_rename.rename"), class: "btn btn-success" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|