2017-06-06 21:50:43 +08:00
|
|
|
<div class="modal" id="create-repo-modal" tabindex="-1" role="dialog" aria-labelledby="create-repo-modal-label">
|
|
|
|
<%= bootstrap_form_for [@team, @repository], remote: :true do |f| %>
|
2017-06-06 19:18:44 +08:00
|
|
|
<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>
|
2017-06-06 21:50:43 +08:00
|
|
|
<h4 class="modal-title" id="create-repo-modal-label">
|
2017-06-06 19:18:44 +08:00
|
|
|
<%= t("repositories.index.modal_create.title") %>
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<%= f.text_field :name,
|
2017-06-06 21:50:43 +08:00
|
|
|
autofocus: true,
|
2017-06-06 19:18:44 +08:00
|
|
|
label: t("repositories.index.modal_create.name_label"),
|
|
|
|
placeholder: t("repositories.index.modal_create.name_placeholder") %>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("general.cancel") %></button>
|
2018-04-25 19:57:12 +08:00
|
|
|
<%= f.submit t("repositories.index.modal_create.submit"), class: "btn btn-success" %>
|
2017-06-06 19:18:44 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|