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,16 @@
1
+ HrEngine6::Engine.routes.draw do
2
+ resources :clients
3
+ resources :admins
4
+ resources :job_listings
5
+ get "/job_listings/:id/clientshow" => "job_listings#clientshow"
6
+ resources :job_applications
7
+ resources :job_applicants
8
+
9
+ root 'admins#index'
10
+
11
+ get '/new_applicant' => 'job_applicants#new'
12
+ get '/new_application' => 'job_applications#create'
13
+
14
+ # We should redirect clients to the client versions of main actions
15
+ get '/job_listings_client' => 'job_listings#clientindex'
16
+ end
@@ -0,0 +1,21 @@
1
+ class CreateHrEngine6JobApplicants < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :hr_engine6_job_applicants do |t|
4
+ t.string :name
5
+ t.string :surname
6
+ t.date :birth_date
7
+ t.string :birth_place
8
+ t.string :address
9
+ t.string :e_mail
10
+ t.string :mobile_phone
11
+ t.string :house_phone
12
+ t.string :nationality
13
+ t.string :graduated_school
14
+ t.string :position
15
+ t.string :foreign_language
16
+
17
+
18
+ t.timestamps
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,8 @@
1
+ class CreateHrEngine6JobApplications < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :hr_engine6_job_applications do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ class CreateHrEngine6JobListings < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :hr_engine6_job_listings do |t|
4
+ t.string :title
5
+ t.string :description
6
+ t.string :qualifications
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ class CreateHrEngine6Admins < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :hr_engine6_admins do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ class CreateHrEngine6Clients < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :hr_engine6_clients do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ class JobApplicantBelongsToAdmin < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applicants do |t|
4
+ t.belongs_to :hr_engine6_admins
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class JobListingsBelongToAdmin < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_listings do |t|
4
+ t.belongs_to :hr_engine6_admins
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class JobApplicationBelongsToAdmin < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applications do |t|
4
+ t.belongs_to :hr_engine6_admins
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class JobApplicantBelongsToClient < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applicants do |t|
4
+ t.belongs_to :hr_engine6_clients
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class JobApplicationBelongsToClient < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applications do |t|
4
+ t.belongs_to :hr_engine6_clients
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class JobListingBelongsToClient < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_listings do |t|
4
+ t.belongs_to :hr_engine6_clients
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ class JobApplicationBelongsToAll2 < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applications do |t|
4
+
5
+ t.belongs_to :hr_engine6_job_applicant, index: {name: "application_applicant"}
6
+ t.belongs_to :hr_engine6_job_listing, index: {name: 'application_listing'}
7
+
8
+ end
9
+
10
+
11
+
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ class JobApplicationHasAll2 < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applicants do |t|
4
+
5
+ t.belongs_to :hr_engine6_job_application, index: {name: "job_applicant_id"}
6
+
7
+ end
8
+
9
+ change_table :hr_engine6_job_listings do |t|
10
+
11
+ t.belongs_to :hr_engine6_job_application, index: {name: "job_listing_id"}
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,9 @@
1
+ class JobApplicantBelongsToListings < ActiveRecord::Migration[6.0]
2
+ def change
3
+ change_table :hr_engine6_job_applicants do |t|
4
+
5
+ t.belongs_to :hr_engine6_job_listing, index: {name: "applicant_listing_id"}
6
+
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ require "hr_engine6/engine"
2
+
3
+ module HrEngine6
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,5 @@
1
+ module HrEngine6
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace HrEngine6
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module HrEngine6
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :hr_engine6 do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,172 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hr_engine6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Emre Boyaci
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.3
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.3.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.3
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 6.0.3.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: sqlite3
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: Description of HrEngine6.
48
+ email:
49
+ - 44240521+aemreb@users.noreply.github.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - MIT-LICENSE
55
+ - README.md
56
+ - Rakefile
57
+ - app/assets/config/hr_engine6_manifest.js
58
+ - app/assets/stylesheets/hr_engine6/admins.css
59
+ - app/assets/stylesheets/hr_engine6/application.css
60
+ - app/assets/stylesheets/hr_engine6/clients.css
61
+ - app/assets/stylesheets/hr_engine6/job_applicants.css
62
+ - app/assets/stylesheets/hr_engine6/job_applications.css
63
+ - app/assets/stylesheets/hr_engine6/job_listings.css
64
+ - app/assets/stylesheets/scaffold.css
65
+ - app/controllers/hr_engine6/admins_controller.rb
66
+ - app/controllers/hr_engine6/application_controller.rb
67
+ - app/controllers/hr_engine6/clients_controller.rb
68
+ - app/controllers/hr_engine6/job_applicants_controller.rb
69
+ - app/controllers/hr_engine6/job_applications_controller.rb
70
+ - app/controllers/hr_engine6/job_listings_controller.rb
71
+ - app/helpers/hr_engine6/admins_helper.rb
72
+ - app/helpers/hr_engine6/application_helper.rb
73
+ - app/helpers/hr_engine6/clients_helper.rb
74
+ - app/helpers/hr_engine6/job_applicants_helper.rb
75
+ - app/helpers/hr_engine6/job_applications_helper.rb
76
+ - app/helpers/hr_engine6/job_listings_helper.rb
77
+ - app/jobs/hr_engine6/application_job.rb
78
+ - app/mailers/hr_engine6/application_mailer.rb
79
+ - app/models/hr_engine6/admin.rb
80
+ - app/models/hr_engine6/application_record.rb
81
+ - app/models/hr_engine6/client.rb
82
+ - app/models/hr_engine6/job_applicant.rb
83
+ - app/models/hr_engine6/job_application.rb
84
+ - app/models/hr_engine6/job_listing.rb
85
+ - app/views/hr_engine6/admins/_admin.json.jbuilder
86
+ - app/views/hr_engine6/admins/_form.html.erb
87
+ - app/views/hr_engine6/admins/edit.html.erb
88
+ - app/views/hr_engine6/admins/index.html.erb
89
+ - app/views/hr_engine6/admins/index.json.jbuilder
90
+ - app/views/hr_engine6/admins/new.html.erb
91
+ - app/views/hr_engine6/admins/show.html.erb
92
+ - app/views/hr_engine6/admins/show.json.jbuilder
93
+ - app/views/hr_engine6/clients/_client.json.jbuilder
94
+ - app/views/hr_engine6/clients/_form.html.erb
95
+ - app/views/hr_engine6/clients/edit.html.erb
96
+ - app/views/hr_engine6/clients/index.html.erb
97
+ - app/views/hr_engine6/clients/index.json.jbuilder
98
+ - app/views/hr_engine6/clients/new.html.erb
99
+ - app/views/hr_engine6/clients/show.html.erb
100
+ - app/views/hr_engine6/clients/show.json.jbuilder
101
+ - app/views/hr_engine6/job_applicants/_form.html.erb
102
+ - app/views/hr_engine6/job_applicants/_job_applicant.json.jbuilder
103
+ - app/views/hr_engine6/job_applicants/edit.html.erb
104
+ - app/views/hr_engine6/job_applicants/index.html.erb
105
+ - app/views/hr_engine6/job_applicants/index.json.jbuilder
106
+ - app/views/hr_engine6/job_applicants/new.html.erb
107
+ - app/views/hr_engine6/job_applicants/show.html.erb
108
+ - app/views/hr_engine6/job_applicants/show.json.jbuilder
109
+ - app/views/hr_engine6/job_applications/_form.html.erb
110
+ - app/views/hr_engine6/job_applications/_job_application.json.jbuilder
111
+ - app/views/hr_engine6/job_applications/edit.html.erb
112
+ - app/views/hr_engine6/job_applications/index.html.erb
113
+ - app/views/hr_engine6/job_applications/index.json.jbuilder
114
+ - app/views/hr_engine6/job_applications/new.html.erb
115
+ - app/views/hr_engine6/job_applications/show.html.erb
116
+ - app/views/hr_engine6/job_applications/show.json.jbuilder
117
+ - app/views/hr_engine6/job_listings/_form.html.erb
118
+ - app/views/hr_engine6/job_listings/_job_listing.json.jbuilder
119
+ - app/views/hr_engine6/job_listings/clientindex.html.erb
120
+ - app/views/hr_engine6/job_listings/clientindex.json.jbuilder
121
+ - app/views/hr_engine6/job_listings/clientshow.html.erb
122
+ - app/views/hr_engine6/job_listings/clientshow.json.jbuilder
123
+ - app/views/hr_engine6/job_listings/edit.html.erb
124
+ - app/views/hr_engine6/job_listings/index.html.erb
125
+ - app/views/hr_engine6/job_listings/index.json.jbuilder
126
+ - app/views/hr_engine6/job_listings/new.html.erb
127
+ - app/views/hr_engine6/job_listings/show.html.erb
128
+ - app/views/hr_engine6/job_listings/show.json.jbuilder
129
+ - app/views/layouts/hr_engine6/application.html.erb
130
+ - config/routes.rb
131
+ - db/migrate/20200818121456_create_hr_engine6_job_applicants.rb
132
+ - db/migrate/20200818121603_create_hr_engine6_job_applications.rb
133
+ - db/migrate/20200818121658_create_hr_engine6_job_listings.rb
134
+ - db/migrate/20200818121718_create_hr_engine6_admins.rb
135
+ - db/migrate/20200818121745_create_hr_engine6_clients.rb
136
+ - db/migrate/20200818122121_job_applicant_belongs_to_admin.rb
137
+ - db/migrate/20200818122511_job_listings_belong_to_admin.rb
138
+ - db/migrate/20200818122602_job_application_belongs_to_admin.rb
139
+ - db/migrate/20200818122713_job_applicant_belongs_to_client.rb
140
+ - db/migrate/20200818122753_job_application_belongs_to_client.rb
141
+ - db/migrate/20200818122831_job_listing_belongs_to_client.rb
142
+ - db/migrate/20200818123256_job_application_belongs_to_all2.rb
143
+ - db/migrate/20200820135913_job_application_has_all2.rb
144
+ - db/migrate/20200820145522_job_applicant_belongs_to_listings.rb
145
+ - lib/hr_engine6.rb
146
+ - lib/hr_engine6/engine.rb
147
+ - lib/hr_engine6/version.rb
148
+ - lib/tasks/hr_engine6_tasks.rake
149
+ homepage: http://futurino.com
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubygems_version: 3.0.3
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: Summary of HrEngine6.
172
+ test_files: []