<%= form_for(@team_member, :url => (@team_member.new_record? ? dhatu.team_members_path : team_member_path), :method => (@team_member.new_record? ? :post : :put), :remote => true, :html => {:id=>"form_team_member", :class=>"mb-0 form-horizontal"}) do |f| %>
<%= @team_member.errors[:base].to_sentence %>
<%= theme_form_field(@team_member, :name, form_style: "top-bottom", html_options: { placeholder: "Dr. Alexander Grahambell"}) -%> <%= theme_form_field(@team_member, :designation, form_style: "top-bottom", html_options: { placeholder: "Vice President"}, required: false) -%> <%= theme_form_field(@team_member, :description, required: true, required: false, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") -%>
<%= theme_form_field(@team_member, :linked_in_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
<%= theme_form_field(@team_member, :google_plus_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
<%= theme_form_field(@team_member, :facebook_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
<%= theme_form_field(@team_member, :twitter_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %> <%= link_to raw("Cancel"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
<%= clear_tag %> <% end %>