Commit f94d51d765b185c53a98f6541cb5b834117f4024
1 parent
42c46f37
Exists in
master
and in
4 other branches
moved project remove button to edit section
Showing
2 changed files
with
8 additions
and
14 deletions
Show diff stats
app/views/projects/_form.html.haml
| @@ -42,9 +42,6 @@ | @@ -42,9 +42,6 @@ | ||
| 42 | %td= f.text_area :description, :placeholder => "project description", :style => "height:50px" | 42 | %td= f.text_area :description, :placeholder => "project description", :style => "height:50px" |
| 43 | 43 | ||
| 44 | %br | 44 | %br |
| 45 | - .actions | ||
| 46 | - = f.submit :class => "button" | ||
| 47 | - | ||
| 48 | %div{ :class => "ajax_loader", :style => "display:none;height:200px;"} | 45 | %div{ :class => "ajax_loader", :style => "display:none;height:200px;"} |
| 49 | %center | 46 | %center |
| 50 | = image_tag "ajax-loader.gif", :class => "append-bottom" | 47 | = image_tag "ajax-loader.gif", :class => "append-bottom" |
| @@ -52,6 +49,14 @@ | @@ -52,6 +49,14 @@ | ||
| 52 | %h3.prepend-top Creating project & repository. Please wait for few minutes | 49 | %h3.prepend-top Creating project & repository. Please wait for few minutes |
| 53 | - else | 50 | - else |
| 54 | %h3.prepend-top Updating project & repository. Please wait for few minutes | 51 | %h3.prepend-top Updating project & repository. Please wait for few minutes |
| 52 | + | ||
| 53 | + .merge-tabs | ||
| 54 | + = f.submit 'Save', :class => "grey-button" | ||
| 55 | + | ||
| 56 | + - unless @project.new_record? | ||
| 57 | + .right | ||
| 58 | + = link_to 'Remove', @project, :confirm => 'Are you sure?', :method => :delete, :class => "red-button" | ||
| 59 | + | ||
| 55 | 60 | ||
| 56 | :javascript | 61 | :javascript |
| 57 | $('.new_project, .edit_project').bind('ajax:before', function() { | 62 | $('.new_project, .edit_project').bind('ajax:before', function() { |
app/views/projects/empty.html.erb
| @@ -34,17 +34,6 @@ eos | @@ -34,17 +34,6 @@ eos | ||
| 34 | %> | 34 | %> |
| 35 | <%= raw bash_lexer.highlight(exist_repo_setup_str) %> | 35 | <%= raw bash_lexer.highlight(exist_repo_setup_str) %> |
| 36 | 36 | ||
| 37 | - <br /><br /> | ||
| 38 | - <h2>Remove this project?</h2> | ||
| 39 | - <div class="error"> | ||
| 40 | - <p> | ||
| 41 | - Be careful! <br/> | ||
| 42 | - Project cant be recovered after destroy.</p> | ||
| 43 | - <%= link_to 'Destroy', @project, | ||
| 44 | - :confirm => 'Are you sure?', :method => :delete, | ||
| 45 | - :class => "left button negative span-6", :style => "text-align:center" %> | ||
| 46 | - <div class="clear"></div> | ||
| 47 | - </div> | ||
| 48 | <br/> | 37 | <br/> |
| 49 | </div> | 38 | </div> |
| 50 | </div> | 39 | </div> |