Add menu to edit contact form. Do some minor layout tweeks.

This commit is contained in:
Roland 2011-08-07 22:07:28 +02:00
parent 4d3857c135
commit fe79a4aa12
3 changed files with 18 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<%= form_for @contact, :html => {:class => "new_data_form"} do |f| %>
<fieldset>
<legend>Contact details</legend>
<%# <legend>Contact details</legend> %>
<div class="row">
<div class="twocol"><%= label_tag(:firstname, "First name") %></div>
<div class="threecol"><%= f.text_field :firstname, :placeholder => "Vorname" %></div>

View file

@ -1,3 +1,18 @@
<h1>Edit Contact</h1>
<div class="row">
<div class="twelvecol">
<div align="center">
| <%= link_to 'back', contact_path %>
| <%= link_to 'all contacts', contacts_path %>
&middot;
<%= link_to 'birthdays', birthdays_path %> |
</div>
</div>
</div>
<div class="row">
<div class="twelvecol">
<h1>Edit Contact</h1>
</div>
</div>
<%= render "form" %>

View file

@ -6,7 +6,7 @@
</div>
<div class="threecol show_picture">
<img src="/images/dummy_buddy_lxs.png" />
<img src="/images/dummy_buddy_l.png" />
</div>
<div class="sixcol">
<span id="show_name"><%= @contact.firstname %> <%= @contact.lastname %></span>