Sha256: 0eafeddd95f8888fb2d83bfc89ad6068c0d2b26ddf6fc9757428cfa0c1f2356c
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
= form_for [@client, @contact] do |f| - if @contact.errors.any? #error_explanation %h2 = pluralize(@contact.errors.count, "error") prohibited this contact from being saved: %ul - @contact.errors.full_messages.each do |msg| %li= msg %fieldset %legend= legend .control-group = f.label :first_name, :class => 'control-label' .controls = f.text_field :first_name .control-group = f.label :last_name, :class => 'control-label' .controls = f.text_field :last_name .control-group = f.label :email_address, :class => 'control-label' .controls = f.text_field :email_address .control-group = f.label :phone_number, :class => 'control-label' .controls = f.text_field :phone_number .control-group = f.label :receives_email, :class => 'control-label' .controls = f.check_box :receives_email .form-actions = f.submit :class => "add_new_button btn primary" = link_to "Cancel", client_path(@client), :class => "cancel_button btn"
Version data entries
5 entries across 5 versions & 1 rubygems