1- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :generation_id ) %> ">
2- <%= f . label :generation_id , "기수" , class : "col-sm-2 control-label" %>
3- < div class ="col-sm-10 ">
4- <%= f . text_field :generation_id , autofocus : true , class : "form-control" %>
5- < span class ="glyphicon <%= validation_state_feedback ( @user , :generation_id ) %> form-control-feedback "> </ span >
6- < span class ="help-block "> <%= attribute_error_message ( @user , :generation_id ) %> </ span >
7- </ div >
8- </ div >
9-
10- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :username ) %> ">
11- <%= f . label :username , "이름" , class : "col-sm-2 control-label" %>
12- < div class ="col-sm-10 ">
13- <%= f . text_field :username , autofocus : true , class : "form-control" %>
14- < span class ="glyphicon <%= validation_state_feedback ( @user , :username ) %> form-control-feedback "> </ span >
15- < span class ="help-block "> <%= attribute_error_message ( @user , :username ) %> </ span >
16- </ div >
17- </ div >
18-
19- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :birth ) %> ">
20- <%= f . label :birth , "생년월일" , class : "col-sm-2 control-label" %>
21- < div class ="col-sm-10 ">
22- <%= f . text_field :birth , autofocus : true , class : "form-control" %>
23- < span class ="glyphicon <%= validation_state_feedback ( @user , :birth ) %> form-control-feedback "> </ span >
24- < span class ="help-block "> <%= attribute_error_message ( @user , :birth ) %> </ span >
25- </ div >
26- </ div >
27-
28- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :sex ) %> ">
29- <%= f . label :sex , "성별" , class : "col-sm-2 control-label" %>
30- < div class ="col-sm-10 ">
31- <%= f . text_field :sex , autofocus : true , class : "form-control" %>
32- < span class ="glyphicon <%= validation_state_feedback ( @user , :sex ) %> form-control-feedback "> </ span >
33- < span class ="help-block "> <%= attribute_error_message ( @user , :sex ) %> </ span >
34- </ div >
35- </ div >
36-
37- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :major ) %> ">
38- <%= f . label :major , "전공" , class : "col-sm-2 control-label" %>
39- < div class ="col-sm-10 ">
40- <%= f . text_field :major , autofocus : true , class : "form-control" %>
41- < span class ="glyphicon <%= validation_state_feedback ( @user , :major ) %> form-control-feedback "> </ span >
42- < span class ="help-block "> <%= attribute_error_message ( @user , :major ) %> </ span >
43- </ div >
44- </ div >
45-
46- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :student_id ) %> ">
47- <%= f . label :student_id , "학번" , class : "col-sm-2 control-label" %>
48- < div class ="col-sm-10 ">
49- <%= f . text_field :student_id , autofocus : true , class : "form-control" %>
50- < span class ="glyphicon <%= validation_state_feedback ( @user , :student_id ) %> form-control-feedback "> </ span >
51- < span class ="help-block "> <%= attribute_error_message ( @user , :student_id ) %> </ span >
52- </ div >
53- </ div >
54-
55- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :phone_number ) %> ">
56- <%= f . label :phone_number , "본인 연락처" , class : "col-sm-2 control-label" %>
57- < div class ="col-sm-10 ">
58- <%= f . text_field :phone_number , value : pretty_phone_number ( @user . phone_number ) , autofocus : true , class : "form-control" %>
59- < span class ="glyphicon <%= validation_state_feedback ( @user , :phone_number ) %> form-control-feedback "> </ span >
60- < span class ="help-block "> <%= attribute_error_message ( @user , :phone_number ) %> </ span >
61- </ div >
62- </ div >
63-
64- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :home_phone_number ) %> ">
65- <%= f . label :home_phone_number , "자택 전화번호" , class : "col-sm-2 control-label" %>
66- < div class ="col-sm-10 ">
67- <%= f . text_field :home_phone_number , autofocus : true , class : "form-control" %>
68- < span class ="glyphicon <%= validation_state_feedback ( @user , :home_phone_number ) %> form-control-feedback "> </ span >
69- < span class ="help-block "> <%= attribute_error_message ( @user , :home_phone_number ) %> </ span >
70- </ div >
71- </ div >
72-
73- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :emergency_phone_number ) %> ">
74- <%= f . label :emergency_phone_number , "응급시 연락처" , class : "col-sm-2 control-label" %>
75- < div class ="col-sm-10 ">
76- <%= f . text_field :emergency_phone_number , autofocus : true , class : "form-control" %>
77- < span class ="glyphicon <%= validation_state_feedback ( @user , :emergency_phone_number ) %> form-control-feedback "> </ span >
78- < span class ="help-block "> <%= attribute_error_message ( @user , :emergency_phone_number ) %> </ span >
79- </ div >
80- </ div >
81-
82-
83- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :email ) %> ">
84- <%= f . label :email , "이메일" , class : "col-sm-2 control-label" %>
85- < div class ="col-sm-10 ">
86- <%= f . text_field :email , autofocus : true , class : "form-control" %>
87- < span class ="glyphicon <%= validation_state_feedback ( @user , :email ) %> form-control-feedback "> </ span >
88- < span class ="help-block "> <%= attribute_error_message ( @user , :email ) %> </ span >
89- </ div >
90- </ div >
91-
92- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :habitat_id ) %> ">
93- <%= f . label :habitat_id , "해비타트 아이디" , class : "col-sm-2 control-label" %>
94- < div class ="col-sm-10 ">
95- <%= f . text_field :habitat_id , autofocus : true , class : "form-control" %>
96- < span class ="glyphicon <%= validation_state_feedback ( @user , :habitat_id ) %> form-control-feedback "> </ span >
97- < span class ="help-block "> <%= attribute_error_message ( @user , :habitat_id ) %> </ span >
98- </ div >
99- </ div >
100-
101- < div class ="form-group form-group-lg has-feedback <%= validation_state ( @user , :member_type ) %> ">
102- <%= f . label :member_type , "단원구분" , class : "col-sm-2 control-label" %>
103- < div class ="col-sm-10 ">
104- <%= f . text_field :member_type , autofocus : true , class : "form-control" %>
105- < span class ="glyphicon <%= validation_state_feedback ( @user , :member_type ) %> form-control-feedback "> </ span >
106- < span class ="help-block "> <%= attribute_error_message ( @user , :member_type ) %> </ span >
107- </ div >
108- </ div >
1+ <%= f.validation_text_field :generation_id, "기수" %>
2+ <%= f.validation_text_field :username, "이름" %>
3+ <%= f.validation_text_field :birth, "생년월일" %>
4+ <%= f.validation_text_field :sex, "성별" %>
5+ <%= f.validation_text_field :generation_id, "기수" %>
6+ <%= f.validation_text_field :major, "전공" %>
7+ <%= f.validation_text_field :student_id, "학번" %>
8+ <%= f.validation_text_field :phone_number, "본인 연락처" %>
9+ <%= f.validation_text_field :home_phone_number, "자택 전화번호" %>
10+ <%= f.validation_text_field :emergency_phone_number, "응급시 연락처" %>
11+ <%= f.validation_text_field :email, "이메일" %>
12+ <%= f.validation_text_field :habitat_id, "해비타트 아이디" %>
13+ <%= f.validation_text_field :member_type, "단원구분" %>
0 commit comments