app/views/phcmembers/members/contacts/_formpatch.html.erb in phcmembers-2.2.0 vs app/views/phcmembers/members/contacts/_formpatch.html.erb in phcmembers-3.0.0
- old
+ new
@@ -1,50 +1,38 @@
<%= form_for([@members_contact.main, @members_contact], url: members_main_contact_path, method: :patch ) do |f| %>
<!-- PHC-Notifi Render Validation -->
<%= render 'phcnotifi/validations', :object => @members_contact %>
-
+
<div class="form-group field_with_errors">
- <label><%= f.label :mccontactname, "Contact Name*" %></label>
- <%= f.text_field :mccontactname, class: "form-control", placeholder: "Mailing Contact Name" %>
+ <label><%= f.label :mcaddressl1, "Address Line1" %></label>
+ <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
</div>
<div class="form-group field_with_errors">
- <label><%= f.label :mccompanyname, "Company Name" %></label>
- <%= f.text_field :mccompanyname, class: "form-control", placeholder: "Company Name" %>
+ <label><%= f.label :mcaddressl2, "Address Line2" %></label>
+ <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
</div>
<div class="form-group field_with_errors">
- <label><%= f.label :mcaddressl1, "Mailing Address Line1" %></label>
- <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Mailing Street Address" %>
- </div>
- <div class="form-group field_with_errors">
- <label><%= f.label :mcaddressl2, "Mailing Address Line2" %></label>
- <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Mailing Address POBox" %>
- </div>
- <div class="form-group field_with_errors">
<label><%= f.label :mccity, "City" %></label>
- <%= f.text_field :mccity, class: "form-control", placeholder: "Mailing City" %>
+ <%= f.text_field :mccity, class: "form-control", placeholder: "City" %>
</div>
<div class="form-group field_with_errors">
- <label><%= f.label :mcprovince, "Province or State" %></label>
- <%= f.text_field :mcprovince, class: "form-control", placeholder: "Mailing Province or State" %>
+ <label><%= f.label :mcprovince, "Province/State" %></label>
+ <%= f.text_field :mcprovince, class: "form-control", placeholder: "Province/State" %>
</div>
<div class="form-group field_with_errors">
<label><%= f.label :mccountry, "Country" %></label>
- <%= f.text_field :mccountry, class: "form-control", placeholder: "Mailing Country" %>
+ <%= country_select("members_contact", "mccountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
</div>
<div class="form-group field_with_errors">
<label><%= f.label :mcpostalcode, "PostalCode" %></label>
- <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "Mailing PostalCode" %>
+ <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "PostalCode" %>
</div>
- <div class="form-group field_with_errors">
- <label><%= f.label :mcphone, "Contact Phone" %></label>
- <%= f.text_field :mcphone, class: "form-control", placeholder: "Contact Phone Number" %>
+ <div class="form-group">
+ <label><%= f.label :mctype, "Address Type" %></label>
+ <%= f.select :mctype, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
</div>
- <div class="form-group field_with_errors">
- <label><%= f.label :mcemail, "Contact Email" %></label>
- <%= f.text_field :mcemail, class: "form-control", placeholder: "Contact Email" %>
- </div>
<div class="actions">
- <%= f.submit "Submit", class: "btn btn-primary" %>
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
</div>
<% end %>