hr_engine6 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/hr_engine6_manifest.js +1 -0
  6. data/app/assets/stylesheets/hr_engine6/admins.css +4 -0
  7. data/app/assets/stylesheets/hr_engine6/application.css +15 -0
  8. data/app/assets/stylesheets/hr_engine6/clients.css +4 -0
  9. data/app/assets/stylesheets/hr_engine6/job_applicants.css +4 -0
  10. data/app/assets/stylesheets/hr_engine6/job_applications.css +4 -0
  11. data/app/assets/stylesheets/hr_engine6/job_listings.css +4 -0
  12. data/app/assets/stylesheets/scaffold.css +80 -0
  13. data/app/controllers/hr_engine6/admins_controller.rb +79 -0
  14. data/app/controllers/hr_engine6/application_controller.rb +5 -0
  15. data/app/controllers/hr_engine6/clients_controller.rb +79 -0
  16. data/app/controllers/hr_engine6/job_applicants_controller.rb +129 -0
  17. data/app/controllers/hr_engine6/job_applications_controller.rb +81 -0
  18. data/app/controllers/hr_engine6/job_listings_controller.rb +86 -0
  19. data/app/helpers/hr_engine6/admins_helper.rb +4 -0
  20. data/app/helpers/hr_engine6/application_helper.rb +4 -0
  21. data/app/helpers/hr_engine6/clients_helper.rb +4 -0
  22. data/app/helpers/hr_engine6/job_applicants_helper.rb +4 -0
  23. data/app/helpers/hr_engine6/job_applications_helper.rb +4 -0
  24. data/app/helpers/hr_engine6/job_listings_helper.rb +4 -0
  25. data/app/jobs/hr_engine6/application_job.rb +4 -0
  26. data/app/mailers/hr_engine6/application_mailer.rb +6 -0
  27. data/app/models/hr_engine6/admin.rb +4 -0
  28. data/app/models/hr_engine6/application_record.rb +5 -0
  29. data/app/models/hr_engine6/client.rb +4 -0
  30. data/app/models/hr_engine6/job_applicant.rb +6 -0
  31. data/app/models/hr_engine6/job_application.rb +6 -0
  32. data/app/models/hr_engine6/job_listing.rb +6 -0
  33. data/app/views/hr_engine6/admins/_admin.json.jbuilder +2 -0
  34. data/app/views/hr_engine6/admins/_form.html.erb +17 -0
  35. data/app/views/hr_engine6/admins/edit.html.erb +6 -0
  36. data/app/views/hr_engine6/admins/index.html.erb +25 -0
  37. data/app/views/hr_engine6/admins/index.json.jbuilder +1 -0
  38. data/app/views/hr_engine6/admins/new.html.erb +5 -0
  39. data/app/views/hr_engine6/admins/show.html.erb +4 -0
  40. data/app/views/hr_engine6/admins/show.json.jbuilder +1 -0
  41. data/app/views/hr_engine6/clients/_client.json.jbuilder +2 -0
  42. data/app/views/hr_engine6/clients/_form.html.erb +17 -0
  43. data/app/views/hr_engine6/clients/edit.html.erb +6 -0
  44. data/app/views/hr_engine6/clients/index.html.erb +25 -0
  45. data/app/views/hr_engine6/clients/index.json.jbuilder +1 -0
  46. data/app/views/hr_engine6/clients/new.html.erb +5 -0
  47. data/app/views/hr_engine6/clients/show.html.erb +4 -0
  48. data/app/views/hr_engine6/clients/show.json.jbuilder +1 -0
  49. data/app/views/hr_engine6/job_applicants/_form.html.erb +96 -0
  50. data/app/views/hr_engine6/job_applicants/_job_applicant.json.jbuilder +2 -0
  51. data/app/views/hr_engine6/job_applicants/edit.html.erb +6 -0
  52. data/app/views/hr_engine6/job_applicants/index.html.erb +49 -0
  53. data/app/views/hr_engine6/job_applicants/index.json.jbuilder +1 -0
  54. data/app/views/hr_engine6/job_applicants/new.html.erb +5 -0
  55. data/app/views/hr_engine6/job_applicants/show.html.erb +72 -0
  56. data/app/views/hr_engine6/job_applicants/show.json.jbuilder +1 -0
  57. data/app/views/hr_engine6/job_applications/_form.html.erb +20 -0
  58. data/app/views/hr_engine6/job_applications/_job_application.json.jbuilder +2 -0
  59. data/app/views/hr_engine6/job_applications/edit.html.erb +6 -0
  60. data/app/views/hr_engine6/job_applications/index.html.erb +36 -0
  61. data/app/views/hr_engine6/job_applications/index.json.jbuilder +1 -0
  62. data/app/views/hr_engine6/job_applications/new.html.erb +6 -0
  63. data/app/views/hr_engine6/job_applications/show.html.erb +35 -0
  64. data/app/views/hr_engine6/job_applications/show.json.jbuilder +1 -0
  65. data/app/views/hr_engine6/job_listings/_form.html.erb +32 -0
  66. data/app/views/hr_engine6/job_listings/_job_listing.json.jbuilder +2 -0
  67. data/app/views/hr_engine6/job_listings/clientindex.html.erb +32 -0
  68. data/app/views/hr_engine6/job_listings/clientindex.json.jbuilder +1 -0
  69. data/app/views/hr_engine6/job_listings/clientshow.html.erb +18 -0
  70. data/app/views/hr_engine6/job_listings/clientshow.json.jbuilder +1 -0
  71. data/app/views/hr_engine6/job_listings/edit.html.erb +6 -0
  72. data/app/views/hr_engine6/job_listings/index.html.erb +32 -0
  73. data/app/views/hr_engine6/job_listings/index.json.jbuilder +1 -0
  74. data/app/views/hr_engine6/job_listings/new.html.erb +5 -0
  75. data/app/views/hr_engine6/job_listings/show.html.erb +19 -0
  76. data/app/views/hr_engine6/job_listings/show.json.jbuilder +1 -0
  77. data/app/views/layouts/hr_engine6/application.html.erb +15 -0
  78. data/config/routes.rb +16 -0
  79. data/db/migrate/20200818121456_create_hr_engine6_job_applicants.rb +21 -0
  80. data/db/migrate/20200818121603_create_hr_engine6_job_applications.rb +8 -0
  81. data/db/migrate/20200818121658_create_hr_engine6_job_listings.rb +11 -0
  82. data/db/migrate/20200818121718_create_hr_engine6_admins.rb +8 -0
  83. data/db/migrate/20200818121745_create_hr_engine6_clients.rb +8 -0
  84. data/db/migrate/20200818122121_job_applicant_belongs_to_admin.rb +7 -0
  85. data/db/migrate/20200818122511_job_listings_belong_to_admin.rb +7 -0
  86. data/db/migrate/20200818122602_job_application_belongs_to_admin.rb +7 -0
  87. data/db/migrate/20200818122713_job_applicant_belongs_to_client.rb +7 -0
  88. data/db/migrate/20200818122753_job_application_belongs_to_client.rb +7 -0
  89. data/db/migrate/20200818122831_job_listing_belongs_to_client.rb +7 -0
  90. data/db/migrate/20200818123256_job_application_belongs_to_all2.rb +13 -0
  91. data/db/migrate/20200820135913_job_application_has_all2.rb +15 -0
  92. data/db/migrate/20200820145522_job_applicant_belongs_to_listings.rb +9 -0
  93. data/lib/hr_engine6.rb +5 -0
  94. data/lib/hr_engine6/engine.rb +5 -0
  95. data/lib/hr_engine6/version.rb +3 -0
  96. data/lib/tasks/hr_engine6_tasks.rake +4 -0
  97. metadata +172 -0
@@ -0,0 +1,2 @@
1
+ json.extract! job_applicant, :id, :name, :surname, :birth_date, :birth_place, :address, :e_mail, :mobile_phone, :house_phone, :nationality, :graduated_school, :position, :foreign_language, :created_at, :updated_at
2
+ json.url job_applicant_url(job_applicant, format: :json)
@@ -0,0 +1,6 @@
1
+ <h1>İş Adayı Düzenleme</h1>
2
+
3
+ <%= render 'form', job_applicant: @job_applicant %>
4
+
5
+ <%= link_to 'Göster', @job_applicant %> |
6
+ <%= link_to 'Geri', job_applicants_path %>
@@ -0,0 +1,49 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>İş Adayları</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>İsim</th>
9
+ <th>Soyisim</th>
10
+ <th>Doğum tarihi</th>
11
+ <th>Doğum yeri</th>
12
+ <th>Adres</th>
13
+ <th>E-posta</th>
14
+ <th>Cep telefonu</th>
15
+ <th>Ev telefonu</th>
16
+ <th>Uyruk</th>
17
+ <th>Mezun olunan okul</th>
18
+ <th>Pozisyon</th>
19
+ <th>Bilinen yabancı diller</th>
20
+ <th colspan="3"></th>
21
+ </tr>
22
+ </thead>
23
+
24
+ <tbody>
25
+ <% @job_applicants.each do |job_applicant| %>
26
+ <tr>
27
+ <td><%= job_applicant.name %></td>
28
+ <td><%= job_applicant.surname %></td>
29
+ <td><%= job_applicant.birth_date %></td>
30
+ <td><%= job_applicant.birth_place %></td>
31
+ <td><%= job_applicant.address %></td>
32
+ <td><%= job_applicant.e_mail %></td>
33
+ <td><%= job_applicant.mobile_phone %></td>
34
+ <td><%= job_applicant.house_phone %></td>
35
+ <td><%= job_applicant.nationality %></td>
36
+ <td><%= job_applicant.graduated_school %></td>
37
+ <td><%= job_applicant.position %></td>
38
+ <td><%= job_applicant.foreign_language %></td>
39
+ <td><%= link_to 'Göster', job_applicant %></td>
40
+ <td><%= link_to 'Düzenle', edit_job_applicant_path(job_applicant) %></td>
41
+ <td><%= link_to 'Sil', job_applicant, method: :delete, data: { confirm: 'Emin misiniz?' } %></td>
42
+ </tr>
43
+ <% end %>
44
+ </tbody>
45
+ </table>
46
+
47
+ <br>
48
+
49
+ <%= link_to 'Yeni İş Adayı', new_job_applicant_path %>
@@ -0,0 +1 @@
1
+ json.array! @job_applicants, partial: "job_applicants/job_applicant", as: :job_applicant
@@ -0,0 +1,5 @@
1
+ <h1>Yeni İş Adayı</h1>
2
+
3
+ <%= render 'form', job_applicant: @job_applicant %>
4
+
5
+ <%= link_to 'Geri', clients_path %>
@@ -0,0 +1,72 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <% job = HrEngine6::JobListing.find_by(id: @job_applicant.hr_engine6_job_listing_id) %>
4
+
5
+ <p>
6
+ <strong>İş:</strong>
7
+ <%= job.title %>
8
+ </p>
9
+
10
+ <p>
11
+ <strong>İsim:</strong>
12
+ <%= @job_applicant.name %>
13
+ </p>
14
+
15
+ <p>
16
+ <strong>Soyisim:</strong>
17
+ <%= @job_applicant.surname %>
18
+ </p>
19
+
20
+ <p>
21
+ <strong>Doğum tarihi:</strong>
22
+ <%= @job_applicant.birth_date %>
23
+ </p>
24
+
25
+ <p>
26
+ <strong>Doğum yeri:</strong>
27
+ <%= @job_applicant.birth_place %>
28
+ </p>
29
+
30
+ <p>
31
+ <strong>Adres:</strong>
32
+ <%= @job_applicant.address %>
33
+ </p>
34
+
35
+ <p>
36
+ <strong>E-posta:</strong>
37
+ <%= @job_applicant.e_mail %>
38
+ </p>
39
+
40
+ <p>
41
+ <strong>Cep telefonu:</strong>
42
+ <%= @job_applicant.mobile_phone %>
43
+ </p>
44
+
45
+ <p>
46
+ <strong>Ev telefonu:</strong>
47
+ <%= @job_applicant.house_phone %>
48
+ </p>
49
+
50
+ <p>
51
+ <strong>Uyruk:</strong>
52
+ <%= @job_applicant.nationality %>
53
+ </p>
54
+
55
+ <p>
56
+ <strong>Mezun olunan okul:</strong>
57
+ <%= @job_applicant.graduated_school %>
58
+ </p>
59
+
60
+ <p>
61
+ <strong>Pozisyon:</strong>
62
+ <%= @job_applicant.position %>
63
+ </p>
64
+
65
+ <p>
66
+ <strong>Bilinen yabancı diller:</strong>
67
+ <%= @job_applicant.foreign_language%>
68
+ </p>
69
+
70
+
71
+
72
+ <%= link_to 'Başvur', "/hr_engine6/new_application?applicant_id=#{@job_applicant.id}&listing_id=#{@job_applicant.hr_engine6_job_listing_id}" %>
@@ -0,0 +1 @@
1
+ json.partial! "job_applicants/job_applicant", job_applicant: @job_applicant
@@ -0,0 +1,20 @@
1
+ <%= form_with(model: @job_application, local: true) do |form| %>
2
+
3
+
4
+ <% if @job_application.errors.any? %>
5
+ <div id="error_explanation">
6
+ <h2><%= pluralize(@job_application.errors.count, "error") %> prohibited this job_application from being saved:</h2>
7
+
8
+ <ul>
9
+ <% @job_application.errors.full_messages.each do |message| %>
10
+ <li><%= message %></li>
11
+ <% end %>
12
+ </ul>
13
+ </div>
14
+ <% end %>
15
+
16
+ <div class="actions">
17
+ <%= form.submit %>
18
+ <%= form.hidden_field 'job_applicant_id'.to_sym, :value => params['applicant_id'.to_sym] %>
19
+ </div>
20
+ <% end %>
@@ -0,0 +1,2 @@
1
+ json.extract! job_application, :id, :created_at, :updated_at
2
+ json.url job_application_url(job_application, format: :json)
@@ -0,0 +1,6 @@
1
+ <h1>İş Başvurusu Düzenleme</h1>
2
+
3
+ <%= render 'form', job_application: @job_application %>
4
+
5
+ <%= link_to 'Göster', @job_application %> |
6
+ <%= link_to 'Geri', job_applications_path %>
@@ -0,0 +1,36 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>İş Başvuruları</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+
9
+ <th>İsim</th>
10
+ <th>Soyisim</th>
11
+ <th>E-posta adresi</th>
12
+ <th>Telefon numarası</th>
13
+ <th colspan="4"></th>
14
+ </tr>
15
+ </thead>
16
+
17
+ <tbody>
18
+
19
+ <tr>
20
+ <% @job_applications.each do |job_application|
21
+ person = HrEngine6::JobApplicant.find_by(id: job_application.hr_engine6_job_applicant_id) %>
22
+
23
+ <td><%= person.name %></td>
24
+ <td><%= person.surname %></td>
25
+ <td><%= person.e_mail %></td>
26
+ <td><%= person.mobile_phone %></td>
27
+ <td><%= link_to 'Göster', job_application %></td>
28
+ <td><%= link_to 'Sil', job_application, method: :delete, data: { confirm: 'Emin misiniz?' } %></td>
29
+ </tr>
30
+ <% end %>
31
+ </tbody>
32
+ </table>
33
+
34
+ <br>
35
+
36
+ <%= link_to 'Ana Ekran', '/hr_engine6' %>
@@ -0,0 +1 @@
1
+ json.array! @job_applications, partial: "job_applications/job_application", as: :job_application
@@ -0,0 +1,6 @@
1
+ <h1>Yeni İş Başvurusu</h1>
2
+
3
+ <%= render 'form', job_application: @job_application %>
4
+
5
+ <%= link_to 'Geri', job_applications_path %>
6
+
@@ -0,0 +1,35 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+
4
+ <%person = HrEngine6::JobApplicant.find_by(id: @job_application.hr_engine6_job_applicant_id)
5
+ job = HrEngine6::JobListing.find_by(id: @job_application.hr_engine6_job_listing_id)
6
+ %>
7
+
8
+ <p>
9
+ <strong>Başvurulan İş:</strong>
10
+ <%= job.title %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>İsim:</strong>
15
+ <%= person.name %>
16
+ </p>
17
+
18
+ <p>
19
+ <strong>Soyisim:</strong>
20
+ <%= person.surname %>
21
+ </p>
22
+
23
+ <p>
24
+ <strong>Telefon:</strong>
25
+ <%= person.mobile_phone %>
26
+ </p>
27
+
28
+ <p>
29
+ <strong>E-posta Adresi:</strong>
30
+ <%= person.e_mail %>
31
+ </p>
32
+
33
+
34
+
35
+ <%= link_to 'Geri', :back %>
@@ -0,0 +1 @@
1
+ json.partial! "job_applications/job_application", job_application: @job_application
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: job_listing, local: true) do |form| %>
2
+ <% if job_listing.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(job_listing.errors.count, "error") %> prohibited this job_listing from being saved:</h2>
5
+
6
+ <ul>
7
+ <% job_listing.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 "Başlık" %>
16
+ <%= form.text_field :title %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label "İş Tanımı" %>
21
+ <%= form.text_field :description %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label "Gereklilikler" %>
26
+ <%= form.text_field :qualifications %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit "Gönder"%>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,2 @@
1
+ json.extract! job_listing, :id, :title, :description, :qualifications, :created_at, :updated_at
2
+ json.url job_listing_url(job_listing, format: :json)
@@ -0,0 +1,32 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>İş İlanları</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Başlık</th>
9
+ <th>İş Tanımı</th>
10
+ <th>Gereklilikler</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @job_listings.each do |job_listing| %>
17
+ <tr>
18
+ <td><%= job_listing.title %></td>
19
+ <td><%= job_listing.description %></td>
20
+ <td><%= job_listing.qualifications %></td>
21
+ <td><%= link_to 'Göster', "/hr_engine6/job_listings/" + (job_listing.id).to_s + "/clientshow" %></td>
22
+
23
+
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+
29
+ <td><%= link_to 'Ana Ekran', clients_path %></td>
30
+
31
+ <br>
32
+
@@ -0,0 +1 @@
1
+ json.array! @job_listings, partial: "job_listings/job_listing", as: :job_listing
@@ -0,0 +1,18 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Başlık:</strong>
5
+ <%= @job_listing.title %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>İş Tanımı:</strong>
10
+ <%= @job_listing.description %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Gereklilikler:</strong>
15
+ <%= @job_listing.qualifications %>
16
+ </p>
17
+
18
+ <%= link_to 'Geri', job_listings_client_path %>
@@ -0,0 +1 @@
1
+ json.array! @job_listings, partial: "job_listings/job_listing", as: :job_listing
@@ -0,0 +1,6 @@
1
+ <h1>İş İlanı Düzenleme</h1>
2
+
3
+ <%= render 'form', job_listing: @job_listing %>
4
+
5
+ <%= link_to 'Göster', @job_listing %> |
6
+ <%= link_to 'Geri', job_listings_path %>
@@ -0,0 +1,32 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>İş İlanları</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Başlık</th>
9
+ <th>İş Tanımı</th>
10
+ <th>Gereklilikler</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @job_listings.each do |job_listing| %>
17
+ <tr>
18
+ <td><%= job_listing.title %></td>
19
+ <td><%= job_listing.description %></td>
20
+ <td><%= job_listing.qualifications %></td>
21
+ <td><%= link_to 'Göster', job_listing %></td>
22
+ <td><%= link_to 'Düzenle', edit_job_listing_path(job_listing) %></td>
23
+ <td><%= link_to 'Sil', job_listing, method: :delete, data: { confirm: 'Emin misiniz?' } %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+
29
+ <br>
30
+
31
+ <%= link_to 'Yeni İş İlanı', new_job_listing_path %> |
32
+ <%= link_to 'Ana Ekran', '/hr_engine6' %>
@@ -0,0 +1 @@
1
+ json.array! @job_listings, partial: "job_listings/job_listing", as: :job_listing
@@ -0,0 +1,5 @@
1
+ <h1>Yeni İş İlanı</h1>
2
+
3
+ <%= render 'form', job_listing: @job_listing %>
4
+
5
+ <%= link_to 'Ana Ekran', '/hr_engine6' %>
@@ -0,0 +1,19 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Başlık:</strong>
5
+ <%= @job_listing.title %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>İş Tanımı:</strong>
10
+ <%= @job_listing.description %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Gereklilikler:</strong>
15
+ <%= @job_listing.qualifications %>
16
+ </p>
17
+
18
+ <%= link_to 'Düzenle', edit_job_listing_path(@job_listing) %> |
19
+ <%= link_to 'Ana Ekran', "/hr_engine6" %>
@@ -0,0 +1 @@
1
+ json.partial! "job_listings/job_listing", job_listing: @job_listing
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>HR Engine</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
9
+ <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
10
+ </head>
11
+
12
+ <body>
13
+ <%= yield %>
14
+ </body>
15
+ </html>