app/views/web/admin/members/_form.html.haml
= simple_form_for @member, :validate => true, :url => admin_member_path(@member), :html => {:class => "form-horizontal well"} do |f|
= f.error_notification
- with_options :scope => "members" do |member_t|
= f.input :state_event, :as => :state_event
.tabbable
%ul.nav.nav-tabs
%li.active
%a{:href => '#general', "data-toggle" => "tab"}= member_t.t('general_info')
%li
%a{:href => '#additional_educations', "data-toggle" => "tab"}= member_t.t 'additional_educations_tab'
%li
%a{:href => '#skill', "data-toggle" => "tab"}= member_t.t 'skill'
%li
%a{:href => '#hobby', "data-toggle" => "tab"}= member_t.t('hobby')
.tab-content
.tab-pane.active#general
.row
.span5
%fieldset
%legend= member_t.t('contact_info')
= f.input :first_name
= f.input :last_name
= f.input :patronymic
= f.input :phone
= f.input :city
= f.input :birthday, :as => :date_picker
= f.input :email
= f.input :skype
= f.input :jabber
= f.input :icq
-#= f.input :facebook
-#= f.input :twitter
-#= f.input :vkontakte
= f.input :web
.span6
%fieldset
%legend= member_t.t('education')
= f.input :institute
= f.input :study_start do
= f.input_field :start_month, :collection => Member::STUDY_MONTH, :include_blank => t('datetime.prompts.month'),
:style => 'width: 155px'
= f.input_field :start_year, :placeholder => t('datetime.prompts.year'), :class => 'span1'
= f.input :study_finish do
= f.input_field :finish_month, :collection => Member::STUDY_MONTH, :include_blank => t('datetime.prompts.month'),
:style => 'width: 155px'
= f.input_field :finish_year, :placeholder => t('datetime.prompts.year'), :class => 'span1'
= f.input :department
= f.input :profession
= f.input :group
= f.input :schoolyear_count, :collection => Member::SCHOOLYEARS
= f.input :degree
= f.input :gpa
%fieldset
%legend= member_t.t 'camp'
= f.input :camp_time, :label => false, :inline_label => member_t.t('camp_time')
= f.input :camp_life, :label => false, :inline_label => member_t.t('camp_life')
= f.input :camp_notebook, :label => false, :inline_label => member_t.t('camp_notebook')
= f.input :camp_training, :label => false, :inline_label => member_t.t('camp_training')
%fieldset
%legend= member_t.t 'how_hear_about_as'
= f.input :how_hear_about_as, :label => false
.tab-pane#additional_educations
%fieldset
%legend= member_t.t 'additional_educations'
= f.simple_fields_for :additional_educations do |p|
= render 'additional_education_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :additional_educations
%fieldset
%legend= member_t.t 'achievements'
= f.simple_fields_for :achievements do |p|
= render 'achievement_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :achievements
%fieldset
%legend= member_t.t 'langs'
= f.simple_fields_for :langs do |p|
= render 'lang_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :langs
.tab-pane#skill
%h2= member_t.t 'skill'
%fieldset
%legend= member_t.t 'skills.program_lang'
= f.simple_fields_for :skill_program_langs do |p|
= render 'skill_program_lang_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :skill_program_langs
%fieldset
%legend= member_t.t 'skills.database'
= f.simple_fields_for :skill_databases do |p|
= render 'skill_database_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :skill_databases
%fieldset
%legend= member_t.t 'skills.os'
= f.simple_fields_for :skill_operation_systems do |p|
= render 'skill_operation_system_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :skill_operation_systems
%fieldset
%legend= member_t.t 'skills.ide'
= f.simple_fields_for :skill_ides do |p|
= render 'skill_ide_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :skill_ides
%fieldset
%legend= member_t.t 'skills.other'
= f.simple_fields_for :skill_others do |p|
= render 'skill_other_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :skill_others
%fieldset
%legend= member_t.t 'preference'
= f.simple_fields_for :preferences do |p|
= render 'preference_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :preferences
%fieldset
%legend= member_t.t 'job'
= f.simple_fields_for :jobs do |p|
= render 'job_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :jobs
%fieldset
%legend= member_t.t 'other'
= f.simple_fields_for :others do |p|
= render 'other_fields', :f => p
-#.links.control-group
= link_to_add_association member_t.t('add'), f, :others
.tab-pane#hobby
= f.input :hobby, :as => :text_desc
= f.input :sport, :as => :text_desc
.form-actions
= f.button :submit, :class => 'btn btn-primary'