multiinsert 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -15
- data/Gemfile +3 -48
- data/LICENSE.txt +22 -0
- data/README.md +28 -3
- data/Rakefile +1 -7
- data/lib/multiinsert.rb +38 -0
- data/lib/multiinsert/version.rb +3 -0
- data/multiinsert.gemspec +23 -0
- metadata +8 -180
- data/Gemfile.lock +0 -182
- data/README.rdoc +0 -261
- data/app/assets/images/Dashboard.jpg +0 -0
- data/app/assets/images/black.png +0 -0
- data/app/assets/images/giff.gif +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/images/sprites.png +0 -0
- data/app/assets/javascripts/application.js +0 -15
- data/app/assets/javascripts/effects.js +0 -9
- data/app/assets/javascripts/evaluations.js.coffee +0 -3
- data/app/assets/javascripts/tabs_old.js +0 -42
- data/app/assets/stylesheets/application.css +0 -13
- data/app/assets/stylesheets/evaluations.css.scss +0 -3
- data/app/assets/stylesheets/style.css +0 -477
- data/app/assets/stylesheets/tab.css +0 -190
- data/app/controllers/application_controller.rb +0 -15
- data/app/controllers/employee_heirarchies_controller.rb +0 -2
- data/app/controllers/evaluations_controller.rb +0 -80
- data/app/controllers/sessions_controller.rb +0 -48
- data/app/helpers/application_helper.rb +0 -2
- data/app/helpers/employee_heirarchies_helper.rb +0 -2
- data/app/helpers/evaluations_helper.rb +0 -2
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/employee.rb +0 -5
- data/app/models/employee_heirarchy.rb +0 -6
- data/app/models/evaluation.rb +0 -6
- data/app/models/evaluation_interval.rb +0 -5
- data/app/models/evaluation_period.rb +0 -6
- data/app/models/interval_format.rb +0 -4
- data/app/models/role.rb +0 -7
- data/app/models/score.rb +0 -3
- data/app/models/team.rb +0 -10
- data/app/models/team.rb~ +0 -10
- data/app/models/team_value.rb +0 -5
- data/app/models/user.rb +0 -49
- data/app/models/user.rb~ +0 -11
- data/app/models/user_history.rb +0 -6
- data/app/models/user_role.rb +0 -5
- data/app/models/value.rb +0 -8
- data/app/models/value.rb~ +0 -7
- data/app/views/devise/confirmations/new.html.erb +0 -12
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -16
- data/app/views/devise/passwords/new.html.erb +0 -12
- data/app/views/devise/registrations/edit.html.erb +0 -29
- data/app/views/devise/registrations/new.html.erb +0 -36
- data/app/views/devise/sessions/new.html.erb +0 -17
- data/app/views/devise/shared/_links.erb +0 -25
- data/app/views/devise/unlocks/new.html.erb +0 -12
- data/app/views/evaluations/edit.html.erb +0 -21
- data/app/views/evaluations/first.html.erb +0 -5
- data/app/views/evaluations/index.html.erb +0 -7
- data/app/views/evaluations/new.html.erb +0 -15
- data/app/views/evaluations/show.html.erb +0 -21
- data/app/views/layouts/application.html.erb +0 -87
- data/config.ru +0 -4
- data/config/application.rb +0 -63
- data/config/boot.rb +0 -6
- data/config/database.yml +0 -31
- data/config/database.yml~ +0 -31
- data/config/environment.rb +0 -5
- data/config/environments/development.rb +0 -37
- data/config/environments/production.rb +0 -67
- data/config/environments/test.rb +0 -37
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/devise.rb +0 -240
- data/config/initializers/inflections.rb +0 -15
- data/config/initializers/mime_types.rb +0 -5
- data/config/initializers/rails_admin.rb +0 -116
- data/config/initializers/secret_token.rb +0 -7
- data/config/initializers/session_store.rb +0 -8
- data/config/initializers/wrap_parameters.rb +0 -14
- data/config/locales/devise.en.yml +0 -59
- data/config/locales/en.yml +0 -5
- data/config/routes.rb +0 -70
- data/db/migrate/20130220053413_devise_create_users.rb +0 -52
- data/db/migrate/20130220055237_create_rails_admin_histories_table.rb +0 -18
- data/db/migrate/20130220060116_create_values.rb +0 -9
- data/db/migrate/20130220060116_create_values.rb~ +0 -8
- data/db/migrate/20130220060206_create_scores.rb +0 -9
- data/db/migrate/20130220060258_create_teams.rb +0 -8
- data/db/migrate/20130220060347_create_team_values.rb +0 -9
- data/db/migrate/20130220060347_create_team_values.rb~ +0 -10
- data/db/migrate/20130220060427_create_roles.rb +0 -8
- data/db/migrate/20130220060605_create_evaluation_periods.rb +0 -10
- data/db/migrate/20130220060807_create_evaluation_intervals.rb +0 -9
- data/db/migrate/20130220060902_create_interval_formats.rb +0 -9
- data/db/migrate/20130220061022_create_user_histories.rb +0 -13
- data/db/migrate/20130220061242_create_evaluations.rb +0 -16
- data/db/migrate/20130305063738_create_user_roles.rb +0 -9
- data/db/migrate/20130305091849_create_employees.rb +0 -12
- data/db/migrate/20130305144125_create_employee_heirarchies.rb +0 -13
- data/db/migrate/20130305150244_add_foreign_keys_to_employee_heirarchies.rb +0 -6
- data/db/migrate/20130307035139_addmanagerid_to_evaluations.rb +0 -9
- data/db/schema.rb +0 -175
- data/db/seeds.rb +0 -7
- data/doc/README_FOR_APP +0 -2
- data/lib/assets/.gitkeep +0 -0
- data/lib/tasks/.gitkeep +0 -0
- data/log/.gitkeep +0 -0
- data/public/404.html +0 -26
- data/public/422.html +0 -26
- data/public/500.html +0 -25
- data/public/favicon.ico +0 -0
- data/public/robots.txt +0 -5
- data/script/rails +0 -6
- data/test/fixtures/.gitkeep +0 -0
- data/test/fixtures/evaluation_intervals.yml +0 -9
- data/test/fixtures/evaluation_periods.yml +0 -11
- data/test/fixtures/evaluations.yml +0 -19
- data/test/fixtures/interval_formats.yml +0 -7
- data/test/fixtures/roles.yml +0 -7
- data/test/fixtures/scores.yml +0 -9
- data/test/fixtures/team_values.yml +0 -9
- data/test/fixtures/teams.yml +0 -9
- data/test/fixtures/user_histories.yml +0 -15
- data/test/fixtures/users.yml +0 -11
- data/test/fixtures/values.yml +0 -7
- data/test/functional/.gitkeep +0 -0
- data/test/functional/employee_heirarchies_controller_test.rb +0 -7
- data/test/functional/evaluations_controller_test.rb +0 -7
- data/test/integration/.gitkeep +0 -0
- data/test/performance/browsing_test.rb +0 -12
- data/test/test_helper.rb +0 -13
- data/test/unit/.gitkeep +0 -0
- data/test/unit/evaluation_interval_test.rb +0 -7
- data/test/unit/evaluation_period_test.rb +0 -7
- data/test/unit/evaluation_test.rb +0 -7
- data/test/unit/helpers/employee_heirarchies_helper_test.rb +0 -4
- data/test/unit/helpers/evaluations_helper_test.rb +0 -4
- data/test/unit/interval_format_test.rb +0 -7
- data/test/unit/role_test.rb +0 -7
- data/test/unit/score_test.rb +0 -7
- data/test/unit/team_test.rb +0 -7
- data/test/unit/team_value_test.rb +0 -7
- data/test/unit/user_history_test.rb +0 -7
- data/test/unit/user_test.rb +0 -7
- data/test/unit/value_test.rb +0 -7
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/plugins/.gitkeep +0 -0
data/app/models/user.rb~
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
class User < ActiveRecord::Base
|
2
|
-
# Include default devise modules. Others available are:
|
3
|
-
# :token_authenticatable, :confirmable,
|
4
|
-
# :lockable, :timeoutable and :omniauthable
|
5
|
-
devise :database_authenticatable, :registerable,:confirmable,
|
6
|
-
:recoverable, :rememberable, :trackable, :validatable
|
7
|
-
|
8
|
-
# Setup accessible (or protected) attributes for your model
|
9
|
-
attr_accessible :email, :password, :password_confirmation, :remember_me
|
10
|
-
# attr_accessible :title, :body
|
11
|
-
end
|
data/app/models/user_history.rb
DELETED
data/app/models/user_role.rb
DELETED
data/app/models/value.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
class Value < ActiveRecord::Base
|
2
|
-
attr_accessible :description, :title
|
3
|
-
has_many :team_values
|
4
|
-
has_many :teams, :through => :team_values
|
5
|
-
has_many :evaluations
|
6
|
-
accepts_nested_attributes_for :evaluations, :reject_if => lambda { |a| a[:content].blank? }, :allow_destroy => true
|
7
|
-
#belongs_to :team
|
8
|
-
end
|
data/app/models/value.rb~
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
<h2>Resend confirmation instructions</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
|
6
|
-
<div><%= f.label :email %><br />
|
7
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
8
|
-
|
9
|
-
<div><%= f.submit "Resend confirmation instructions" %></div>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render "devise/shared/links" %>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<p>Hello <%= @resource.email %>!</p>
|
2
|
-
|
3
|
-
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
4
|
-
|
5
|
-
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
|
6
|
-
|
7
|
-
<p>If you didn't request this, please ignore this email.</p>
|
8
|
-
<p>Your password won't change until you access the link above and create a new one.</p>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<p>Hello <%= @resource.email %>!</p>
|
2
|
-
|
3
|
-
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
|
4
|
-
|
5
|
-
<p>Click the link below to unlock your account:</p>
|
6
|
-
|
7
|
-
<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h2>Change your password</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
<%= f.hidden_field :reset_password_token %>
|
6
|
-
|
7
|
-
<div><%= f.label :password, "New password" %><br />
|
8
|
-
<%= f.password_field :password, :autofocus => true %></div>
|
9
|
-
|
10
|
-
<div><%= f.label :password_confirmation, "Confirm new password" %><br />
|
11
|
-
<%= f.password_field :password_confirmation %></div>
|
12
|
-
|
13
|
-
<div><%= f.submit "Change my password" %></div>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%= render "devise/shared/links" %>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<h2>Forgot your password?</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
|
6
|
-
<div><%= f.label :email %><br />
|
7
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
8
|
-
|
9
|
-
<div><%= f.submit "Send me reset password instructions" %></div>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render "devise/shared/links" %>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
|
6
|
-
<div><%= f.label :email %><br />
|
7
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
8
|
-
|
9
|
-
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
10
|
-
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
14
|
-
<%= f.password_field :password, :autocomplete => "off" %></div>
|
15
|
-
|
16
|
-
<div><%= f.label :password_confirmation %><br />
|
17
|
-
<%= f.password_field :password_confirmation %></div>
|
18
|
-
|
19
|
-
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
20
|
-
<%= f.password_field :current_password %></div>
|
21
|
-
|
22
|
-
<div><%= f.submit "Update" %></div>
|
23
|
-
<% end %>
|
24
|
-
|
25
|
-
<h3>Cancel my account</h3>
|
26
|
-
|
27
|
-
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %>.</p>
|
28
|
-
|
29
|
-
<%= link_to "Back", :back %>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<h2>Sign up</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
|
6
|
-
<div><%= f.label :email %><br />
|
7
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
8
|
-
|
9
|
-
<div><%= f.label :password %><br />
|
10
|
-
<%= f.password_field :password %></div>
|
11
|
-
|
12
|
-
<div><%= f.label :password_confirmation %><br />
|
13
|
-
<%= f.password_field :password_confirmation %></div>
|
14
|
-
|
15
|
-
<div><%= f.label :role %><br />
|
16
|
-
<%= select("user", "role_id", Role.all.collect {|p| [ p.role_description, p.id ] }, {:prompt =>'Select role'})%><br>
|
17
|
-
|
18
|
-
<%= f.label :SelectTeam %><br />
|
19
|
-
<%= f.select("team_id", Team.all.collect{|c| [c.name, c.id]}, {:prompt =>'Select team'})%><br>
|
20
|
-
|
21
|
-
<div><%= f.label :firstname %><br />
|
22
|
-
<%= f.text_field :firstname %></div>
|
23
|
-
|
24
|
-
<div><%= f.label :lastname %><br />
|
25
|
-
<%= f.text_field :lastname %></div>
|
26
|
-
|
27
|
-
<div><%= f.label :phoneno %><br />
|
28
|
-
<%= f.text_field :phonenum %></div>
|
29
|
-
|
30
|
-
<div><%= f.label :address %><br />
|
31
|
-
<%= f.text_field :address %></div>
|
32
|
-
|
33
|
-
<div><%= f.submit "Sign up" %></div>
|
34
|
-
<% end %>
|
35
|
-
|
36
|
-
<%= render "devise/shared/links" %>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<h2>Sign in</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
4
|
-
<div><%= f.label :email %><br />
|
5
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
6
|
-
|
7
|
-
<div><%= f.label :password %><br />
|
8
|
-
<%= f.password_field :password %></div>
|
9
|
-
|
10
|
-
<% if devise_mapping.rememberable? -%>
|
11
|
-
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
|
12
|
-
<% end -%>
|
13
|
-
|
14
|
-
<div><%= f.submit "Sign in" %></div>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
<%= render "devise/shared/links" %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<%- if controller_name != 'sessions' %>
|
2
|
-
<%= link_to "Sign in", new_session_path(resource_name) %><br />
|
3
|
-
<% end -%>
|
4
|
-
|
5
|
-
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
-
<%#= link_to "Sign up", new_registration_path(resource_name) %><br />
|
7
|
-
<% end -%>
|
8
|
-
|
9
|
-
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
|
10
|
-
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
11
|
-
<% end -%>
|
12
|
-
|
13
|
-
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
-
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
15
|
-
<% end -%>
|
16
|
-
|
17
|
-
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
-
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
19
|
-
<% end -%>
|
20
|
-
|
21
|
-
<%- if devise_mapping.omniauthable? %>
|
22
|
-
<%- resource_class.omniauth_providers.each do |provider| %>
|
23
|
-
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
|
24
|
-
<% end -%>
|
25
|
-
<% end -%>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<h2>Resend unlock instructions</h2>
|
2
|
-
|
3
|
-
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
|
6
|
-
<div><%= f.label :email %><br />
|
7
|
-
<%= f.email_field :email, :autofocus => true %></div>
|
8
|
-
|
9
|
-
<div><%= f.submit "Resend unlock instructions" %></div>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render "devise/shared/links" %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<% @evaluations.each do |evaluation| %>
|
2
|
-
|
3
|
-
<%= form_for :evaluation do |f| %>
|
4
|
-
<%= f.label :SelfPoints %>
|
5
|
-
<%#= f.text_field :self_points%>
|
6
|
-
<%= f.select("self_points", Score.all.collect {|c| [c.level, c.id]}, {:prompt =>'Select points'})%><br>
|
7
|
-
|
8
|
-
<%= f.label :SelfComments %>
|
9
|
-
<%= f.text_field :self_comments%><br>
|
10
|
-
|
11
|
-
<%#= f.label :ManagerPoints %>
|
12
|
-
<%#= f.text_field :manager_points%>
|
13
|
-
|
14
|
-
<%#= f.label :ManagerComments %>
|
15
|
-
<%#= f.text_field :manager_comments%>
|
16
|
-
|
17
|
-
<%= f.hidden_field :value_id, :value => value.id %>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
|
21
|
-
<% end %>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<% @evaluations.each do |evaluation|%>
|
2
|
-
<%#= current_user.email%><br>
|
3
|
-
Selfpoints<%= evaluation.self_points%><br>
|
4
|
-
Selfcomments<%= evaluation.self_comments%><br>
|
5
|
-
Managerpoints<%#= evaluation.manager_points%><br>
|
6
|
-
Managercomments<%#= evaluation.manager_comments%><br>
|
7
|
-
<% end %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= form_tag("/evaluations") do %>
|
2
|
-
|
3
|
-
<% @values.each do |value| %>
|
4
|
-
<%= value.title%><br>
|
5
|
-
<%= value.description%><br/>
|
6
|
-
<%= label_tag :SelfPoints %>
|
7
|
-
<%= select("evaluation-self_points-"+value.id.to_s,"", Score.all.collect {|c| [c.level, c.id]}, :prompt =>'Select points')%><br>
|
8
|
-
<%= label_tag :SelfComments %>
|
9
|
-
<%= text_field_tag "evaluation-self_comments-"+value.id.to_s%><br>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
|
13
|
-
<%= submit_tag("Submit Evaluation") %>
|
14
|
-
|
15
|
-
<% end %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<% @evaluations.each do |evaluation| %>
|
2
|
-
|
3
|
-
<%= form_for :evaluation do |f| %>
|
4
|
-
<%= f.label :SelfPoints %>
|
5
|
-
<%#= f.text_field :self_points%>
|
6
|
-
<%= f.select("self_points", Score.all.collect {|c| [c.level, c.id]}, {:prompt =>'Select points'})%><br>
|
7
|
-
|
8
|
-
<%= f.label :SelfComments %>
|
9
|
-
<%= f.text_field :self_comments%><br>
|
10
|
-
|
11
|
-
<%#= f.label :ManagerPoints %>
|
12
|
-
<%#= f.text_field :manager_points%>
|
13
|
-
|
14
|
-
<%#= f.label :ManagerComments %>
|
15
|
-
<%#= f.text_field :manager_comments%>
|
16
|
-
|
17
|
-
<%= f.hidden_field :value_id, :value => value.id %>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
|
21
|
-
<% end %>
|
@@ -1,87 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<!--<link rel="stylesheet" href="/assets/style.css" />
|
5
|
-
<link rel="stylesheet" href="/assets/tab.css" /> -->
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
7
|
-
<%= javascript_include_tag 'application'%>
|
8
|
-
<%= javascript_include_tag 'employee'%>
|
9
|
-
<script type="text/javascript" src="/assets/effects.js"></script>
|
10
|
-
<script type="text/javascript" src="/assets/tabs_old.js"></script>
|
11
|
-
<title>Live the Value</title>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
|
15
|
-
<div class="one">
|
16
|
-
<!--<div class="black_lay">
|
17
|
-
<img src="images/giff.gif" class="giff_img"/>
|
18
|
-
</div>-->
|
19
|
-
<div class="left">
|
20
|
-
<div class="logo_menu_container">
|
21
|
-
<div class="logo"></div>
|
22
|
-
<div class="menu_container">
|
23
|
-
<div class="menu_div">
|
24
|
-
<a class="dashboard" href="#">Dashboard</a>
|
25
|
-
</div>
|
26
|
-
<div class="menu_div">
|
27
|
-
<a class="myprof" href="#">MY Profile</a>
|
28
|
-
</div>
|
29
|
-
<div class="menu_div">
|
30
|
-
<a class="restpswd" href="#">Reset Password</a>
|
31
|
-
</div>
|
32
|
-
<div class="menu_div">
|
33
|
-
<a class="preview" href="#">Preview Date</a>
|
34
|
-
</div>
|
35
|
-
<div class="menu_div">
|
36
|
-
<a class="final" href="#">Final Review</a>
|
37
|
-
</div>
|
38
|
-
<div class="menu_div">
|
39
|
-
<a class="self" href="#">Self Evaluate</a>
|
40
|
-
</div>
|
41
|
-
<div class="menu_div">
|
42
|
-
<a class="more" href="#">More Pages</a>
|
43
|
-
</div>
|
44
|
-
<div class="menu_div" style="border-bottom: #CCCCCC solid 1px;">
|
45
|
-
<a class="mng" href="#">Manager Point</a>
|
46
|
-
</div>
|
47
|
-
</div><!--End logo_container-->
|
48
|
-
</div> <!--End logo_menu_container--></div>
|
49
|
-
<div class="right">
|
50
|
-
<div class="top_bar">
|
51
|
-
<div class="value">
|
52
|
-
<input class="value_btn" type="button" value="Value"/>
|
53
|
-
</div>
|
54
|
-
<div class="user_details">
|
55
|
-
<label class="user_name">FazilAbdulkadher</label>
|
56
|
-
<div class="user_photo"></div>
|
57
|
-
<div class="expand_arrow" id="box1">
|
58
|
-
<input class="arw_butt" type="button" onclick="showFrontLayer();"/>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
</div><!--top_bar-->
|
62
|
-
<div id="baselayer">
|
63
|
-
<div id="bg_mask">
|
64
|
-
<div id="frontlayer">
|
65
|
-
<div class="photo_user"></div>
|
66
|
-
<div class="user_options">
|
67
|
-
<span class="user_option_list">Fazil Abdulakdher</span><br /><br />
|
68
|
-
<span class="user_option_list">Edit My Profile</span><br /><br /><br />
|
69
|
-
<span class="user_option_logout">Log out</span>
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
</div>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<p class="notice"><%= notice %></p>
|
76
|
-
<p class="alert"><%= alert %></p>
|
77
|
-
<%= yield %>
|
78
|
-
<% if user_signed_in?%>
|
79
|
-
<%=link_to "Logout",destroy_user_session_path%>
|
80
|
-
<%end%>
|
81
|
-
<div class="footer">
|
82
|
-
<div class="copy_right">www.ruby-softawre.com</div>
|
83
|
-
<div class="copy_right_ruby">© 2013 Ruby Software</div>
|
84
|
-
</div><!--End footer-->
|
85
|
-
</div></div>
|
86
|
-
</body>
|
87
|
-
</html>
|
data/config.ru
DELETED
data/config/application.rb
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
if defined?(Bundler)
|
6
|
-
# If you precompile assets before deploying to production, use this line
|
7
|
-
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
8
|
-
# If you want your assets lazily compiled in production, use this line
|
9
|
-
# Bundler.require(:default, :assets, Rails.env)
|
10
|
-
end
|
11
|
-
|
12
|
-
module EmployPerf
|
13
|
-
class Application < Rails::Application
|
14
|
-
# Settings in config/environments/* take precedence over those specified here.
|
15
|
-
# Application configuration should go into files in config/initializers
|
16
|
-
# -- all .rb files in that directory are automatically loaded.
|
17
|
-
|
18
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
-
|
21
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
-
|
25
|
-
# Activate observers that should always be running.
|
26
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
-
|
28
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
-
|
32
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
-
# config.i18n.default_locale = :de
|
35
|
-
|
36
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
-
config.encoding = "utf-8"
|
38
|
-
|
39
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
-
config.filter_parameters += [:password]
|
41
|
-
config.assets.initialize_on_precompile = false
|
42
|
-
|
43
|
-
# Enable escaping HTML in JSON.
|
44
|
-
config.active_support.escape_html_entities_in_json = true
|
45
|
-
|
46
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
47
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
48
|
-
# like if you have constraints or database-specific column types
|
49
|
-
# config.active_record.schema_format = :sql
|
50
|
-
|
51
|
-
# Enforce whitelist mode for mass assignment.
|
52
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
53
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
54
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
55
|
-
config.active_record.whitelist_attributes = true
|
56
|
-
|
57
|
-
# Enable the asset pipeline
|
58
|
-
config.assets.enabled = true
|
59
|
-
|
60
|
-
# Version of your assets, change this if you want to expire all your assets
|
61
|
-
config.assets.version = '1.0'
|
62
|
-
end
|
63
|
-
end
|