<%= form_for @customer do |f| %>
<%=t(:label_display_name)%>
<%= f.text_field :name, :required => true %>
<%=t(:label_primary_phone)%>
<%= f.telephone_field :primary_phone %>
<%=t(:label_mobile_phone)%>:
<%= f.telephone_field :mobile_phone %>
<%=t(:label_email)%>:
<%= f.email_field :email %>
<%=t(:field_notes)%>:

<%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @customer.new_record? %> <%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@customer.new_record? ? nil : 'display:none') do %> <%= f.text_area :notes, :cols => 60, :rows => 10, :accesskey => accesskey(:edit), :class => 'wiki-edit', :no_label => true %> <% end %>

<%= wikitoolbar_for 'issue_description' %>
<%= f.submit %>
<% end %>