Created
February 18, 2013 16:55
-
-
Save ArionHardison/4978776 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for(@contact, :validate => true) do |f| | |
= f.hidden_field :phone_book_id, :value => @contact.phone_book.blank? ? current_user.phone_book.id : @contact.phone_book.id | |
.flds | |
.label-field= f.label :name, :class => "label-field" | |
.input-field= f.text_field :name , :class => "text-field medium-field" | |
.clear{:style => "height: 10px;"} | |
.flds | |
.label-field= f.label :phone_number, :class => "label-field" | |
.input-field= f.text_field :phone_number , :class => "text-field medium-field" | |
.clear{:style => "height: 10px;"} | |
.flds | |
.label-field= f.label :email, :class => "label-field" | |
.input-field= f.text_field :email , :class => "text-field medium-field" | |
.clear{:style => "height: 10px;"} | |
.flds | |
.label-field= f.label :tag_tokens, 'Tags', :class => "label-field" | |
.input-field= f.text_field :tag_tokens, "data-pre" => @contact.tags.map(&:attributes).to_json, :class => "select-field huge-field" | |
.clear{:style => "height: 10px;"} | |
.flds | |
.label-field= f.label :timezone, :class => "label-field" | |
.input-field= time_zone_select :contact, :timezone, nil, :default => "Pacific Time (US & Canada)", :class => "select-field medium-field" | |
.clear{:style => "height: 15px;"} | |
.options.input-field | |
.options-row | |
.option-field= f.check_box :is_public | |
.option-field= f.label :is_public | |
.option-field= f.check_box :is_shared | |
.option-field= f.label :is_shared | |
.clear | |
.actions | |
= f.submit "Save contact", :disable_with => "Please wait...", :class => "submit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment