moved project remove button to edit section
This commit is contained in:
parent
42c46f3720
commit
f94d51d765
2 changed files with 8 additions and 14 deletions
|
@ -42,9 +42,6 @@
|
||||||
%td= f.text_area :description, :placeholder => "project description", :style => "height:50px"
|
%td= f.text_area :description, :placeholder => "project description", :style => "height:50px"
|
||||||
|
|
||||||
%br
|
%br
|
||||||
.actions
|
|
||||||
= f.submit :class => "button"
|
|
||||||
|
|
||||||
%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
|
%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
|
||||||
%center
|
%center
|
||||||
= image_tag "ajax-loader.gif", :class => "append-bottom"
|
= image_tag "ajax-loader.gif", :class => "append-bottom"
|
||||||
|
@ -53,6 +50,14 @@
|
||||||
- else
|
- else
|
||||||
%h3.prepend-top Updating project & repository. Please wait for few minutes
|
%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
|
:javascript
|
||||||
$('.new_project, .edit_project').bind('ajax:before', function() {
|
$('.new_project, .edit_project').bind('ajax:before', function() {
|
||||||
$(this).find(".form_content").hide();
|
$(this).find(".form_content").hide();
|
||||||
|
|
|
@ -34,17 +34,6 @@ eos
|
||||||
%>
|
%>
|
||||||
<%= raw bash_lexer.highlight(exist_repo_setup_str) %>
|
<%= 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/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue