Skip to content
Snippets Groups Projects
Commit f94d51d7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

moved project remove button to edit section

parent 42c46f37
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -42,9 +42,6 @@
%td= f.text_area :description, :placeholder => "project description", :style => "height:50px"
 
%br
.actions
= f.submit :class => "button"
%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
%center
= image_tag "ajax-loader.gif", :class => "append-bottom"
Loading
Loading
@@ -52,6 +49,14 @@
%h3.prepend-top Creating project & repository. Please wait for few minutes
- else
%h3.prepend-top Updating project & repository. Please wait for few minutes
.merge-tabs
= f.submit 'Save', :class => "grey-button"
 
- unless @project.new_record?
.right
= link_to 'Remove', @project, :confirm => 'Are you sure?', :method => :delete, :class => "red-button"
 
:javascript
$('.new_project, .edit_project').bind('ajax:before', function() {
Loading
Loading
Loading
Loading
@@ -34,17 +34,6 @@ eos
%>
<%= raw bash_lexer.highlight(exist_repo_setup_str) %>
 
<br /><br />
<h2>Remove this project?</h2>
<div class="error">
<p>
Be careful! <br/>
Project cant be recovered after destroy.</p>
<%= link_to 'Destroy', @project,
:confirm => 'Are you sure?', :method => :delete,
:class => "left button negative span-6", :style => "text-align:center" %>
<div class="clear"></div>
</div>
<br/>
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment