app/views/erd/erd/_column.html.erb in erd-0.6.4 vs app/views/erd/erd/_column.html.erb in erd-0.7.0

- old
+ new

@@ -1,14 +1,18 @@ <li class="column"> <table> <tr> <td> - <span class="column_name_text"><%= column[:name] %></span> - <form class="rename_column_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="column" type="hidden" value="<%= column[:name] %>" /><input name="to" type="text" /><input type="submit" value="Change" /></span><a href="#!" class="cancel">Cancel</a></form> + <span class="column_name_text<%= "#{' edit' if edit_mode}" %>"><%= column[:name] %></span> + <% if edit_mode %> + <form class="rename_column_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="column" type="hidden" value="<%= column[:name] %>" /><input name="to" type="text" /><input type="submit" value="Change" /></span><a href="#!" class="cancel">Cancel</a></form> + <% end %> </td> <td> - <span class="column_type_text <%= column[:type] %>"><%= column[:type] %></span> - <form class="alter_column_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="column" type="hidden" value="<%= column[:name] %>" /><input name="type" type="hidden" value="<%= column[:type] %>" /><input name="to" type="text" /><input type="submit" value="Change" /></span><a href="#!" class="cancel">Cancel</a></form> + <span class="column_type_text <%= column[:type] %><%= "#{' edit' if edit_mode}" %>"><%= column[:type] %></span> + <% if edit_mode %> + <form class="alter_column_form"><span><input name="model" type="hidden" value="<%= model[:model] %>" /><input name="column" type="hidden" value="<%= column[:name] %>" /><input name="type" type="hidden" value="<%= column[:type] %>" /><input name="to" type="text" /><input type="submit" value="Change" /></span><a href="#!" class="cancel">Cancel</a></form> + <% end %> </td> </tr> </table> </li>