Sha256: 79a159ec32d120dc0b46e028ab946bec2ff39969cf75185b60d89fd5fe7497d4

Contents?: true

Size: 1.56 KB

Versions: 15

Compression:

Stored size: 1.56 KB

Contents

= hook(:contact_top_section, self, :f => f) do
  .section
    %table
      %tr
        %td
          .label.top.req{ :class => "#{Setting.require_first_names ? 'req' : nil}" } #{t :first_name}:
          = f.text_field :first_name, :autofocus => true
        %td= spacer
        %td
          .label.top{ :class => "#{Setting.require_last_names ? 'req' : nil}" } #{t :last_name}:
          = f.text_field :last_name
      %tr
        %td
          .label #{t :email}:
          = f.text_field :email
        %td= spacer
        %td
          .label #{t :phone}:
          = f.text_field :phone

    %table
      = fields_for(@account) do |a|
        = a.hidden_field :user_id
        = a.hidden_field :assigned_to
        = a.hidden_field :access, :value => Setting.default_access
        %tr
          %td
            != account_select_or_create(a) do |options|
              - # Add [-- None --] account choice when editing existing contact that has an account.
              - options[:include_blank] = "" unless @contact.new_record? || @contact.account.blank?
          %td= spacer
          %td
            .label #{t :assigned_to}:
            = user_select(:contact, all_users, current_user)

        - if Setting.background_info && Setting.background_info.include?(:contact)
          %tr
            %td(colspan="3")
              .label= t(:background_info) << ':'
              = f.text_area :background_info, :style =>"width:500px", :rows => 3

        = render :partial => "/shared/tags", :locals => {:f => f, :span => 3}

        = hook(:contact_top_section_bottom, self, :f => f)

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/contacts/_top_section.html.haml
fat_free_crm-0.15.2 app/views/contacts/_top_section.html.haml
fat_free_crm-0.16.4 app/views/contacts/_top_section.html.haml
fat_free_crm-0.14.1 app/views/contacts/_top_section.html.haml
fat_free_crm-0.15.1 app/views/contacts/_top_section.html.haml
fat_free_crm-0.16.3 app/views/contacts/_top_section.html.haml
fat_free_crm-0.16.2 app/views/contacts/_top_section.html.haml
fat_free_crm-0.16.1 app/views/contacts/_top_section.html.haml
fat_free_crm-0.16.0 app/views/contacts/_top_section.html.haml
fat_free_crm-0.15.0 app/views/contacts/_top_section.html.haml
fat_free_crm-0.15.0.beta.2 app/views/contacts/_top_section.html.haml
fat_free_crm-0.15.0.beta app/views/contacts/_top_section.html.haml
fat_free_crm-0.14.0 app/views/contacts/_top_section.html.haml
reduced_fat_crm-0.15.0.beta app/views/contacts/_top_section.html.haml
reduced_fat_crm-0.14.0 app/views/contacts/_top_section.html.haml