Permalink
Browse files

move delete button to edit screen; show graph by default

  • Loading branch information...
1 parent 63426f8 commit 6a360832ae0c56a422dc550d08caf9626a6fe842 @carvil committed Apr 9, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −1 app/views/babies/edit.html.erb
  2. +1 −4 app/views/babies/show.html.erb
@@ -2,6 +2,9 @@
<div class="span6">
<legend>Edit baby</legend>
<%= render 'babies/form' %>
- <%= link_to "Back", :back %>
+ <ul class="quick-links">
+ <li><%= link_to "Back", :back %></li>
+ <li><%= link_to "Delete #{@baby.name} from records", baby_path(@baby), :method => :delete, :confirm => "are you sure?" %></li>
+ </ul>
</div>
</div>
@@ -13,8 +13,6 @@
<div class="actions">
<%= link_to "Manage data", new_baby_stat_path(@baby), :class => "btn btn-primary" %>
<%= link_to "Edit", edit_baby_path(@baby), :class => "btn" %>
- <%= link_to "List All", babies_path, :class => "btn"%>
- <%= link_to "Delete", baby_path(@baby), :method => :delete, :confirm => "are you sure?", :class => "btn btn-danger" %>
</div>
</div>
</div>
@@ -33,10 +31,9 @@
Height for age
</a>
</div>
- <div id="height-for-age" class="accordion-body collapse">
+ <div id="height-for-age" class="accordion-body in">
<div class="accordion-inner">
<script type="text/javascript" charset="utf-8">
-
build_graph({
render_to_div: "height-for-age-graph",
title: "Height for age",

0 comments on commit 6a36083

Please sign in to comment.