2017-06-01 02:28:23 +08:00
|
|
|
<div class="modal fade" id="rename-repo-modal" tabindex="-1" role="dialog">
|
2017-06-01 01:24:38 +08:00
|
|
|
<%= bootstrap_form_for @repository,
|
|
|
|
url: team_repository_path(id: @repository, format: :json),
|
|
|
|
remote: true do |f| %>
|
|
|
|
<div class="modal-dialog" role="document">
|
2017-06-01 02:28:23 +08:00
|
|
|
<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_rename.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_rename.name"),
|
|
|
|
autofocus: true,
|
|
|
|
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
|
|
|
|
</div>
|
2017-06-01 01:24:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-01 02:28:23 +08:00
|
|
|
<div class="modal-footer">
|
2017-06-02 23:38:46 +08:00
|
|
|
<%= f.submit t("repositories.index.modal_rename.rename"), class: "btn btn-primary" %>
|
2017-06-01 02:28:23 +08:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
|
|
</div>
|
2017-06-01 01:24:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|