next_sges 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/next_sges_manifest.js +2 -0
  6. data/app/assets/javascripts/next_sges/administrators.js +2 -0
  7. data/app/assets/javascripts/next_sges/application.js +13 -0
  8. data/app/assets/javascripts/next_sges/collection_note_items.js +2 -0
  9. data/app/assets/javascripts/next_sges/collection_notes.js +2 -0
  10. data/app/assets/javascripts/next_sges/collection_types.js +2 -0
  11. data/app/assets/javascripts/next_sges/deposits.js +2 -0
  12. data/app/assets/javascripts/next_sges/inscriptions.js +2 -0
  13. data/app/assets/javascripts/next_sges/parents.js +2 -0
  14. data/app/assets/javascripts/next_sges/responsible_others.js +2 -0
  15. data/app/assets/javascripts/next_sges/school_admins.js +2 -0
  16. data/app/assets/javascripts/next_sges/schools.js +2 -0
  17. data/app/assets/javascripts/next_sges/students.js +2 -0
  18. data/app/assets/stylesheets/next_sges/administrators.css +4 -0
  19. data/app/assets/stylesheets/next_sges/application.css +15 -0
  20. data/app/assets/stylesheets/next_sges/collection_note_items.css +4 -0
  21. data/app/assets/stylesheets/next_sges/collection_notes.css +4 -0
  22. data/app/assets/stylesheets/next_sges/collection_types.css +4 -0
  23. data/app/assets/stylesheets/next_sges/deposits.css +4 -0
  24. data/app/assets/stylesheets/next_sges/inscriptions.css +4 -0
  25. data/app/assets/stylesheets/next_sges/parents.css +4 -0
  26. data/app/assets/stylesheets/next_sges/responsible_others.css +4 -0
  27. data/app/assets/stylesheets/next_sges/school_admins.css +4 -0
  28. data/app/assets/stylesheets/next_sges/schools.css +4 -0
  29. data/app/assets/stylesheets/next_sges/students.css +4 -0
  30. data/app/assets/stylesheets/scaffold.css +80 -0
  31. data/app/controllers/next_sges/administrators_controller.rb +62 -0
  32. data/app/controllers/next_sges/application_controller.rb +5 -0
  33. data/app/controllers/next_sges/collection_note_items_controller.rb +62 -0
  34. data/app/controllers/next_sges/collection_notes_controller.rb +62 -0
  35. data/app/controllers/next_sges/collection_types_controller.rb +62 -0
  36. data/app/controllers/next_sges/deposits_controller.rb +62 -0
  37. data/app/controllers/next_sges/inscriptions_controller.rb +62 -0
  38. data/app/controllers/next_sges/parents_controller.rb +62 -0
  39. data/app/controllers/next_sges/responsible_others_controller.rb +62 -0
  40. data/app/controllers/next_sges/school_admins_controller.rb +62 -0
  41. data/app/controllers/next_sges/schools_controller.rb +62 -0
  42. data/app/controllers/next_sges/students_controller.rb +62 -0
  43. data/app/helpers/next_sges/administrators_helper.rb +4 -0
  44. data/app/helpers/next_sges/application_helper.rb +4 -0
  45. data/app/helpers/next_sges/collection_note_items_helper.rb +4 -0
  46. data/app/helpers/next_sges/collection_notes_helper.rb +4 -0
  47. data/app/helpers/next_sges/collection_types_helper.rb +4 -0
  48. data/app/helpers/next_sges/deposits_helper.rb +4 -0
  49. data/app/helpers/next_sges/inscriptions_helper.rb +4 -0
  50. data/app/helpers/next_sges/parents_helper.rb +4 -0
  51. data/app/helpers/next_sges/responsible_others_helper.rb +4 -0
  52. data/app/helpers/next_sges/school_admins_helper.rb +4 -0
  53. data/app/helpers/next_sges/schools_helper.rb +4 -0
  54. data/app/helpers/next_sges/students_helper.rb +4 -0
  55. data/app/jobs/next_sges/application_job.rb +4 -0
  56. data/app/mailers/next_sges/application_mailer.rb +6 -0
  57. data/app/models/next_sges/administrator.rb +19 -0
  58. data/app/models/next_sges/application_record.rb +33 -0
  59. data/app/models/next_sges/collection_note.rb +68 -0
  60. data/app/models/next_sges/collection_note_item.rb +173 -0
  61. data/app/models/next_sges/collection_type.rb +36 -0
  62. data/app/models/next_sges/deposit.rb +31 -0
  63. data/app/models/next_sges/inscription.rb +5 -0
  64. data/app/models/next_sges/parent.rb +37 -0
  65. data/app/models/next_sges/responsible_other.rb +20 -0
  66. data/app/models/next_sges/school.rb +21 -0
  67. data/app/models/next_sges/school_admin.rb +10 -0
  68. data/app/models/next_sges/student.rb +39 -0
  69. data/app/views/layouts/next_sges/application.html.erb +14 -0
  70. data/app/views/next_sges/administrators/_form.html.erb +27 -0
  71. data/app/views/next_sges/administrators/edit.html.erb +6 -0
  72. data/app/views/next_sges/administrators/index.html.erb +29 -0
  73. data/app/views/next_sges/administrators/new.html.erb +5 -0
  74. data/app/views/next_sges/administrators/show.html.erb +14 -0
  75. data/app/views/next_sges/collection_note_items/_form.html.erb +107 -0
  76. data/app/views/next_sges/collection_note_items/edit.html.erb +6 -0
  77. data/app/views/next_sges/collection_note_items/index.html.erb +61 -0
  78. data/app/views/next_sges/collection_note_items/new.html.erb +5 -0
  79. data/app/views/next_sges/collection_note_items/show.html.erb +94 -0
  80. data/app/views/next_sges/collection_notes/_form.html.erb +37 -0
  81. data/app/views/next_sges/collection_notes/edit.html.erb +6 -0
  82. data/app/views/next_sges/collection_notes/index.html.erb +33 -0
  83. data/app/views/next_sges/collection_notes/new.html.erb +5 -0
  84. data/app/views/next_sges/collection_notes/show.html.erb +24 -0
  85. data/app/views/next_sges/collection_types/_form.html.erb +37 -0
  86. data/app/views/next_sges/collection_types/edit.html.erb +6 -0
  87. data/app/views/next_sges/collection_types/index.html.erb +33 -0
  88. data/app/views/next_sges/collection_types/new.html.erb +5 -0
  89. data/app/views/next_sges/collection_types/show.html.erb +24 -0
  90. data/app/views/next_sges/deposits/_form.html.erb +37 -0
  91. data/app/views/next_sges/deposits/edit.html.erb +6 -0
  92. data/app/views/next_sges/deposits/index.html.erb +33 -0
  93. data/app/views/next_sges/deposits/new.html.erb +5 -0
  94. data/app/views/next_sges/deposits/show.html.erb +24 -0
  95. data/app/views/next_sges/inscriptions/_form.html.erb +102 -0
  96. data/app/views/next_sges/inscriptions/edit.html.erb +6 -0
  97. data/app/views/next_sges/inscriptions/index.html.erb +59 -0
  98. data/app/views/next_sges/inscriptions/new.html.erb +5 -0
  99. data/app/views/next_sges/inscriptions/show.html.erb +89 -0
  100. data/app/views/next_sges/parents/_form.html.erb +42 -0
  101. data/app/views/next_sges/parents/edit.html.erb +6 -0
  102. data/app/views/next_sges/parents/index.html.erb +35 -0
  103. data/app/views/next_sges/parents/new.html.erb +5 -0
  104. data/app/views/next_sges/parents/show.html.erb +29 -0
  105. data/app/views/next_sges/responsible_others/_form.html.erb +97 -0
  106. data/app/views/next_sges/responsible_others/edit.html.erb +6 -0
  107. data/app/views/next_sges/responsible_others/index.html.erb +57 -0
  108. data/app/views/next_sges/responsible_others/new.html.erb +5 -0
  109. data/app/views/next_sges/responsible_others/show.html.erb +84 -0
  110. data/app/views/next_sges/school_admins/_form.html.erb +32 -0
  111. data/app/views/next_sges/school_admins/edit.html.erb +6 -0
  112. data/app/views/next_sges/school_admins/index.html.erb +31 -0
  113. data/app/views/next_sges/school_admins/new.html.erb +5 -0
  114. data/app/views/next_sges/school_admins/show.html.erb +19 -0
  115. data/app/views/next_sges/schools/_form.html.erb +62 -0
  116. data/app/views/next_sges/schools/edit.html.erb +6 -0
  117. data/app/views/next_sges/schools/index.html.erb +43 -0
  118. data/app/views/next_sges/schools/new.html.erb +5 -0
  119. data/app/views/next_sges/schools/show.html.erb +49 -0
  120. data/app/views/next_sges/students/_form.html.erb +42 -0
  121. data/app/views/next_sges/students/edit.html.erb +6 -0
  122. data/app/views/next_sges/students/index.html.erb +35 -0
  123. data/app/views/next_sges/students/new.html.erb +5 -0
  124. data/app/views/next_sges/students/show.html.erb +29 -0
  125. data/config/routes.rb +13 -0
  126. data/db/migrate/20171209090042_create_next_sges_schools.rb +17 -0
  127. data/db/migrate/20171209093554_create_next_sges_parents.rb +17 -0
  128. data/db/migrate/20171209093716_create_next_sges_collection_types.rb +13 -0
  129. data/db/migrate/20171209095546_create_next_sges_students.rb +17 -0
  130. data/db/migrate/20171209100114_create_next_sges_collection_notes.rb +14 -0
  131. data/db/migrate/20171209104046_create_next_sges_deposits.rb +13 -0
  132. data/db/migrate/20171209110844_create_next_sges_administrators.rb +10 -0
  133. data/db/migrate/20171209111036_create_next_sges_school_admins.rb +12 -0
  134. data/db/migrate/20171209213002_create_next_sges_inscriptions.rb +25 -0
  135. data/db/migrate/20171209213302_create_join_table_inscription_collection_type.rb +8 -0
  136. data/db/migrate/20171211132659_create_join_table_student_collection_type.rb +8 -0
  137. data/db/migrate/20171211140033_add_value_to_collection_types.rb +5 -0
  138. data/db/migrate/20171213141321_create_next_sges_collection_note_items.rb +26 -0
  139. data/db/migrate/20171213160012_add_discount_ad_fine_to_collection_type.rb +13 -0
  140. data/db/migrate/20171214154917_rename_anual_payment_discount_from_next_sges_collection_types.rb +5 -0
  141. data/db/migrate/20171214204406_add_account_balance_to_next_sges_parents.rb +17 -0
  142. data/db/migrate/20171215120306_remove_student_from_deposit.rb +6 -0
  143. data/db/migrate/20171215133634_add_type_to_next_sges_deposits.rb +5 -0
  144. data/db/migrate/20171215144509_add_documents_to_next_sgad_parents.rb +6 -0
  145. data/db/migrate/20171215175025_add_avatar_to_next_sges_schools.rb +5 -0
  146. data/db/migrate/20171218082424_add_nif_to_next_sges_schools.rb +11 -0
  147. data/db/migrate/20171221224739_create_next_sges_responsible_others.rb +24 -0
  148. data/db/migrate/20171227221731_add_birthday_to_next_sgad_students.rb +7 -0
  149. data/db/migrate/20180216140129_add_collection_note_to_deposits.rb +5 -0
  150. data/lib/next_sges.rb +5 -0
  151. data/lib/next_sges/engine.rb +5 -0
  152. data/lib/next_sges/version.rb +3 -0
  153. data/lib/tasks/next_sges_tasks.rake +4 -0
  154. metadata +224 -0
@@ -0,0 +1,102 @@
1
+ <%= form_with(model: inscription, local: true) do |form| %>
2
+ <% if inscription.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(inscription.errors.count, "error") %> prohibited this inscription from being saved:</h2>
5
+
6
+ <ul>
7
+ <% inscription.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :student_name %>
16
+ <%= form.text_field :student_name, id: :inscription_student_name %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :student_birthday %>
21
+ <%= form.datetime_select :student_birthday, id: :inscription_student_birthday %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :student_nationality %>
26
+ <%= form.text_field :student_nationality, id: :inscription_student_nationality %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= form.label :student_indentification_type %>
31
+ <%= form.number_field :student_indentification_type, id: :inscription_student_indentification_type %>
32
+ </div>
33
+
34
+ <div class="field">
35
+ <%= form.label :student_ientification_number %>
36
+ <%= form.text_field :student_ientification_number, id: :inscription_student_ientification_number %>
37
+ </div>
38
+
39
+ <div class="field">
40
+ <%= form.label :student_address %>
41
+ <%= form.text_field :student_address, id: :inscription_student_address %>
42
+ </div>
43
+
44
+ <div class="field">
45
+ <%= form.label :parent_name %>
46
+ <%= form.text_field :parent_name, id: :inscription_parent_name %>
47
+ </div>
48
+
49
+ <div class="field">
50
+ <%= form.label :parent_birthday %>
51
+ <%= form.datetime_select :parent_birthday, id: :inscription_parent_birthday %>
52
+ </div>
53
+
54
+ <div class="field">
55
+ <%= form.label :parent_nationality %>
56
+ <%= form.text_field :parent_nationality, id: :inscription_parent_nationality %>
57
+ </div>
58
+
59
+ <div class="field">
60
+ <%= form.label :parent_indentification_type %>
61
+ <%= form.number_field :parent_indentification_type, id: :inscription_parent_indentification_type %>
62
+ </div>
63
+
64
+ <div class="field">
65
+ <%= form.label :parent_ientification_number %>
66
+ <%= form.text_field :parent_ientification_number, id: :inscription_parent_ientification_number %>
67
+ </div>
68
+
69
+ <div class="field">
70
+ <%= form.label :parent_address %>
71
+ <%= form.text_field :parent_address, id: :inscription_parent_address %>
72
+ </div>
73
+
74
+ <div class="field">
75
+ <%= form.label :parent_cellphone1 %>
76
+ <%= form.text_field :parent_cellphone1, id: :inscription_parent_cellphone1 %>
77
+ </div>
78
+
79
+ <div class="field">
80
+ <%= form.label :parent_cellphone2 %>
81
+ <%= form.text_field :parent_cellphone2, id: :inscription_parent_cellphone2 %>
82
+ </div>
83
+
84
+ <div class="field">
85
+ <%= form.label :parent_email %>
86
+ <%= form.text_field :parent_email, id: :inscription_parent_email %>
87
+ </div>
88
+
89
+ <div class="field">
90
+ <%= form.label :documents %>
91
+ <%= form.text_field :documents, id: :inscription_documents %>
92
+ </div>
93
+
94
+ <div class="field">
95
+ <%= form.label :school_id %>
96
+ <%= form.text_field :school_id, id: :inscription_school_id %>
97
+ </div>
98
+
99
+ <div class="actions">
100
+ <%= form.submit %>
101
+ </div>
102
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Inscription</h1>
2
+
3
+ <%= render 'form', inscription: @inscription %>
4
+
5
+ <%= link_to 'Show', @inscription %> |
6
+ <%= link_to 'Back', inscriptions_path %>
@@ -0,0 +1,59 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Inscriptions</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Student name</th>
9
+ <th>Student birthday</th>
10
+ <th>Student nationality</th>
11
+ <th>Student indentification type</th>
12
+ <th>Student ientification number</th>
13
+ <th>Student address</th>
14
+ <th>Parent name</th>
15
+ <th>Parent birthday</th>
16
+ <th>Parent nationality</th>
17
+ <th>Parent indentification type</th>
18
+ <th>Parent ientification number</th>
19
+ <th>Parent address</th>
20
+ <th>Parent cellphone1</th>
21
+ <th>Parent cellphone2</th>
22
+ <th>Parent email</th>
23
+ <th>Documents</th>
24
+ <th>School</th>
25
+ <th colspan="3"></th>
26
+ </tr>
27
+ </thead>
28
+
29
+ <tbody>
30
+ <% @inscriptions.each do |inscription| %>
31
+ <tr>
32
+ <td><%= inscription.student_name %></td>
33
+ <td><%= inscription.student_birthday %></td>
34
+ <td><%= inscription.student_nationality %></td>
35
+ <td><%= inscription.student_indentification_type %></td>
36
+ <td><%= inscription.student_ientification_number %></td>
37
+ <td><%= inscription.student_address %></td>
38
+ <td><%= inscription.parent_name %></td>
39
+ <td><%= inscription.parent_birthday %></td>
40
+ <td><%= inscription.parent_nationality %></td>
41
+ <td><%= inscription.parent_indentification_type %></td>
42
+ <td><%= inscription.parent_ientification_number %></td>
43
+ <td><%= inscription.parent_address %></td>
44
+ <td><%= inscription.parent_cellphone1 %></td>
45
+ <td><%= inscription.parent_cellphone2 %></td>
46
+ <td><%= inscription.parent_email %></td>
47
+ <td><%= inscription.documents %></td>
48
+ <td><%= inscription.school %></td>
49
+ <td><%= link_to 'Show', inscription %></td>
50
+ <td><%= link_to 'Edit', edit_inscription_path(inscription) %></td>
51
+ <td><%= link_to 'Destroy', inscription, method: :delete, data: { confirm: 'Are you sure?' } %></td>
52
+ </tr>
53
+ <% end %>
54
+ </tbody>
55
+ </table>
56
+
57
+ <br>
58
+
59
+ <%= link_to 'New Inscription', new_inscription_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Inscription</h1>
2
+
3
+ <%= render 'form', inscription: @inscription %>
4
+
5
+ <%= link_to 'Back', inscriptions_path %>
@@ -0,0 +1,89 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Student name:</strong>
5
+ <%= @inscription.student_name %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Student birthday:</strong>
10
+ <%= @inscription.student_birthday %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Student nationality:</strong>
15
+ <%= @inscription.student_nationality %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Student indentification type:</strong>
20
+ <%= @inscription.student_indentification_type %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Student ientification number:</strong>
25
+ <%= @inscription.student_ientification_number %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong>Student address:</strong>
30
+ <%= @inscription.student_address %>
31
+ </p>
32
+
33
+ <p>
34
+ <strong>Parent name:</strong>
35
+ <%= @inscription.parent_name %>
36
+ </p>
37
+
38
+ <p>
39
+ <strong>Parent birthday:</strong>
40
+ <%= @inscription.parent_birthday %>
41
+ </p>
42
+
43
+ <p>
44
+ <strong>Parent nationality:</strong>
45
+ <%= @inscription.parent_nationality %>
46
+ </p>
47
+
48
+ <p>
49
+ <strong>Parent indentification type:</strong>
50
+ <%= @inscription.parent_indentification_type %>
51
+ </p>
52
+
53
+ <p>
54
+ <strong>Parent ientification number:</strong>
55
+ <%= @inscription.parent_ientification_number %>
56
+ </p>
57
+
58
+ <p>
59
+ <strong>Parent address:</strong>
60
+ <%= @inscription.parent_address %>
61
+ </p>
62
+
63
+ <p>
64
+ <strong>Parent cellphone1:</strong>
65
+ <%= @inscription.parent_cellphone1 %>
66
+ </p>
67
+
68
+ <p>
69
+ <strong>Parent cellphone2:</strong>
70
+ <%= @inscription.parent_cellphone2 %>
71
+ </p>
72
+
73
+ <p>
74
+ <strong>Parent email:</strong>
75
+ <%= @inscription.parent_email %>
76
+ </p>
77
+
78
+ <p>
79
+ <strong>Documents:</strong>
80
+ <%= @inscription.documents %>
81
+ </p>
82
+
83
+ <p>
84
+ <strong>School:</strong>
85
+ <%= @inscription.school %>
86
+ </p>
87
+
88
+ <%= link_to 'Edit', edit_inscription_path(@inscription) %> |
89
+ <%= link_to 'Back', inscriptions_path %>
@@ -0,0 +1,42 @@
1
+ <%= form_with(model: parent, local: true) do |form| %>
2
+ <% if parent.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(parent.errors.count, "error") %> prohibited this parent from being saved:</h2>
5
+
6
+ <ul>
7
+ <% parent.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :name %>
16
+ <%= form.text_field :name, id: :parent_name %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :email %>
21
+ <%= form.text_field :email, id: :parent_email %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :cellphone1 %>
26
+ <%= form.text_field :cellphone1, id: :parent_cellphone1 %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= form.label :cellphone2 %>
31
+ <%= form.text_field :cellphone2, id: :parent_cellphone2 %>
32
+ </div>
33
+
34
+ <div class="field">
35
+ <%= form.label :number %>
36
+ <%= form.text_field :number, id: :parent_number %>
37
+ </div>
38
+
39
+ <div class="actions">
40
+ <%= form.submit %>
41
+ </div>
42
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Parent</h1>
2
+
3
+ <%= render 'form', parent: @parent %>
4
+
5
+ <%= link_to 'Show', @parent %> |
6
+ <%= link_to 'Back', parents_path %>
@@ -0,0 +1,35 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Parents</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Name</th>
9
+ <th>Email</th>
10
+ <th>Cellphone1</th>
11
+ <th>Cellphone2</th>
12
+ <th>Number</th>
13
+ <th colspan="3"></th>
14
+ </tr>
15
+ </thead>
16
+
17
+ <tbody>
18
+ <% @parents.each do |parent| %>
19
+ <tr>
20
+ <td><%= parent.name %></td>
21
+ <td><%= parent.email %></td>
22
+ <td><%= parent.cellphone1 %></td>
23
+ <td><%= parent.cellphone2 %></td>
24
+ <td><%= parent.number %></td>
25
+ <td><%= link_to 'Show', parent %></td>
26
+ <td><%= link_to 'Edit', edit_parent_path(parent) %></td>
27
+ <td><%= link_to 'Destroy', parent, method: :delete, data: { confirm: 'Are you sure?' } %></td>
28
+ </tr>
29
+ <% end %>
30
+ </tbody>
31
+ </table>
32
+
33
+ <br>
34
+
35
+ <%= link_to 'New Parent', new_parent_path %>
@@ -0,0 +1,5 @@
1
+ <h1>New Parent</h1>
2
+
3
+ <%= render 'form', parent: @parent %>
4
+
5
+ <%= link_to 'Back', parents_path %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Name:</strong>
5
+ <%= @parent.name %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Email:</strong>
10
+ <%= @parent.email %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Cellphone1:</strong>
15
+ <%= @parent.cellphone1 %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Cellphone2:</strong>
20
+ <%= @parent.cellphone2 %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Number:</strong>
25
+ <%= @parent.number %>
26
+ </p>
27
+
28
+ <%= link_to 'Edit', edit_parent_path(@parent) %> |
29
+ <%= link_to 'Back', parents_path %>
@@ -0,0 +1,97 @@
1
+ <%= form_with(model: responsible_other, local: true) do |form| %>
2
+ <% if responsible_other.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(responsible_other.errors.count, "error") %> prohibited this responsible_other from being saved:</h2>
5
+
6
+ <ul>
7
+ <% responsible_other.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :first_name %>
16
+ <%= form.text_field :first_name, id: :responsible_other_first_name %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :middle_name %>
21
+ <%= form.text_field :middle_name, id: :responsible_other_middle_name %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :last_name %>
26
+ <%= form.text_field :last_name, id: :responsible_other_last_name %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= form.label :avatar %>
31
+ <%= form.text_field :avatar, id: :responsible_other_avatar %>
32
+ </div>
33
+
34
+ <div class="field">
35
+ <%= form.label :documents %>
36
+ <%= form.text_field :documents, id: :responsible_other_documents %>
37
+ </div>
38
+
39
+ <div class="field">
40
+ <%= form.label :relation_to_parent %>
41
+ <%= form.number_field :relation_to_parent, id: :responsible_other_relation_to_parent %>
42
+ </div>
43
+
44
+ <div class="field">
45
+ <%= form.label :parent_id %>
46
+ <%= form.text_field :parent_id, id: :responsible_other_parent_id %>
47
+ </div>
48
+
49
+ <div class="field">
50
+ <%= form.label :status %>
51
+ <%= form.number_field :status, id: :responsible_other_status %>
52
+ </div>
53
+
54
+ <div class="field">
55
+ <%= form.label :school_id %>
56
+ <%= form.text_field :school_id, id: :responsible_other_school_id %>
57
+ </div>
58
+
59
+ <div class="field">
60
+ <%= form.label :birthdate %>
61
+ <%= form.datetime_select :birthdate, id: :responsible_other_birthdate %>
62
+ </div>
63
+
64
+ <div class="field">
65
+ <%= form.label :identification_type %>
66
+ <%= form.number_field :identification_type, id: :responsible_other_identification_type %>
67
+ </div>
68
+
69
+ <div class="field">
70
+ <%= form.label :identification_number %>
71
+ <%= form.text_field :identification_number, id: :responsible_other_identification_number %>
72
+ </div>
73
+
74
+ <div class="field">
75
+ <%= form.label :email %>
76
+ <%= form.text_field :email, id: :responsible_other_email %>
77
+ </div>
78
+
79
+ <div class="field">
80
+ <%= form.label :cellphone %>
81
+ <%= form.text_field :cellphone, id: :responsible_other_cellphone %>
82
+ </div>
83
+
84
+ <div class="field">
85
+ <%= form.label :address %>
86
+ <%= form.text_field :address, id: :responsible_other_address %>
87
+ </div>
88
+
89
+ <div class="field">
90
+ <%= form.label :number %>
91
+ <%= form.text_field :number, id: :responsible_other_number %>
92
+ </div>
93
+
94
+ <div class="actions">
95
+ <%= form.submit %>
96
+ </div>
97
+ <% end %>