<%=_('Edit/Create contact')%>

<% form_tag( contacts_path, 'method' => 'post', 'class' => 'two_columns') do %> <%= form_input(:hidden_field, 'contact', 'id') %> <%= form_input(:hidden_field, 'contact', 'customer_id') %> <%= form_input(:text_field, 'contact', 'fname', t(:first_name), 'class'=>'two_columns') %> <%= form_input(:text_field, 'contact', 'lname', t(:last_name), 'class'=>'two_columns') %> <%= form_input((@contact.new_record? ? :text_field : :read_only_field), 'contact', 'email', t(:email), 'class'=>'two_columns')%>
<% for group in @contactgroups %> <% end %> <% if not(@contactgroups.empty?) %> <%=_('Contact belong to these groups')%>: <% end col = 1 for group in @contactgroups %> <% if col%2 == 0 %> <% end col = col + 1 %> <% end %> <% if col%2 == 0 and not(@contactgroups.empty?) %> <% end %> <% if not(@contactgroups.empty?) %>
>  <%=group.name %>
 
<% end %>
<% end %>