<%= form_for([@member_listing.profile, @member_listing], url: form_url) do |f| %> <%= render 'phcnotifi/validations', :object => @member_listing %>
<%= f.label :mbcompanyname, "Company Name" %> <%= f.text_field :mbcompanyname, class: "form-control", placeholder: "Business/Organization: Name" %>
<%= f.label :mbcontactname, "Contact Name" %> <%= f.text_field :mbcontactname, class: "form-control", placeholder: "Business/Organization: Contact Person" %>
<%= f.label :mbaddressl1, "Address Line 1" %> <%= f.text_field :mbaddressl1, class: "form-control", placeholder: "Location: Street Address" %>
<%= f.label :mbaddressl2, "Address Line 2" %> <%= f.text_field :mbaddressl2, class: "form-control", placeholder: "Location: Box - Suite - Floor" %>
<%= f.label :mbcity, "City" %> <%= f.text_field :mbcity, class: "form-control", placeholder: "Location: City" %>
<%= f.label :mbprovince, "Province/State" %> <%= f.text_field :mbprovince, class: "form-control", placeholder: "Location: Province/State" %>
<%= f.label :mbcountry, "Country" %> <%= country_select("member_listing", "mbcountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
<%= f.label :mbpostalcode, "Postal Code" %>
<%= f.text_field :mbpostalcode, class: "form-control", placeholder: "Location: PostalCode" %>
<%= f.label :mbphone, "Business Phone Number" %> <%= f.text_field :mbphone, class: "form-control", placeholder: "Business/Organization: PhoneNumber (Public)" %>
<%= f.label :mbcontactemail, "Business General Email" %> <%= f.text_field :mbcontactemail, class: "form-control", placeholder: "Business/Organization: Email Address (Public)" %>
<%= f.label :mbwebsite, "Business Website" %> <%= f.text_field :mbwebsite, class: "form-control", placeholder: "Business/Organization: Website (Public)" %>
<%= f.collection_check_boxes :category_ids, Phcmembers::Directory::Category.all, :id, :catname do |listing_category| %> <%= listing_category.check_box %> <%= listing_category.label %>
<% end %>
<%= f.submit "Submit", class: "btn btn-primary" %>
<% end %>