Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bootstrap-sass to version 3.3.1.0 #286

Merged
merged 1 commit into from
Dec 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'pg'
gem 'sass-rails', '~> 4.0.3'
gem 'coffee-rails', '~> 4.1.0'
gem 'uglifier', '>= 1.3.0'
gem 'bootstrap-sass', '~> 3.2.0'
gem 'bootstrap-sass', '~> 3.3.0'

# Rails 4
gem 'protected_attributes'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ GEM
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.2.0.2)
bootstrap-sass (3.3.1.0)
sass (~> 3.2)
builder (3.2.2)
bullet (4.14.0)
Expand Down Expand Up @@ -283,7 +283,7 @@ DEPENDENCIES
auto_strip_attributes (~> 2.0)
better_errors (>= 0.7.2)
binding_of_caller (>= 0.7.1)
bootstrap-sass (~> 3.2.0)
bootstrap-sass (~> 3.3.0)
bullet
capybara
coffee-rails (~> 4.1.0)
Expand Down
10 changes: 0 additions & 10 deletions app/controllers/admin/locations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ def destroy
end
end

def confirm_delete_location
@loc_name = params[:loc_name]
@org_name = params[:org_name]
@location_id = params[:location_id]
respond_to do |format|
format.html
format.js
end
end

private

def assign_location_to_org(admin_orgs)
Expand Down
9 changes: 0 additions & 9 deletions app/controllers/admin/organizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,5 @@ def destroy
format.html { redirect_to admin_organizations_path }
end
end

def confirm_delete_organization
@org_name = params[:org_name]
@org_id = params[:org_id]
respond_to do |format|
format.html
format.js
end
end
end
end
9 changes: 0 additions & 9 deletions app/controllers/admin/programs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ def destroy
end
end

def confirm_delete_program
@program_name = params[:program_name]
@program_id = params[:program_id]
respond_to do |format|
format.html
format.js
end
end

private

def add_org_to_program_if_authorized
Expand Down
9 changes: 0 additions & 9 deletions app/controllers/admin/services_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ def destroy
redirect_to admin_locations_path
end

def confirm_delete_service
@service_name = params[:service_name]
@service_id = params[:service_id]
respond_to do |format|
format.html
format.js
end
end

private

def preprocess_service
Expand Down
6 changes: 3 additions & 3 deletions app/views/admin/locations/_confirm_delete_location.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
%p
This action CANNOT be undone. This will delete
%strong
= @loc_name
= loc_name
and all of its associated services from
%strong
= @org_name
= org_name
permanently.
.modal-footer
%button.btn.btn-default{'data-dismiss' => 'modal'} Close
= link_to 'I understand the consequences, delete this location', { action: :destroy, id: @location_id }, method: :delete, class: 'btn btn-danger'
= link_to 'I understand the consequences, delete this location', { action: :destroy, id: location_id }, method: :delete, class: 'btn btn-danger'
3 changes: 2 additions & 1 deletion app/views/admin/locations/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
%p
Once you delete a location, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this location', { action: :confirm_delete_location, location_id: @location.id, org_name: @org.name, loc_name: @location.name }, remote: true, data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to 'Permanently delete this location', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/locations/confirm_delete_location', location_id: @location.id, loc_name: @location.name, org_name: @org.name

.save-box.navbar-default
%p
Expand Down
1 change: 0 additions & 1 deletion app/views/admin/locations/confirm_delete_location.js.erb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
%p
This action CANNOT be undone. This will delete
%strong
= @org_name
= org_name
and all of its associated locations permanently.
.modal-footer
%button.btn.btn-default{'data-dismiss' => 'modal'} Close
= link_to 'I understand the consequences, delete this organization', { action: :destroy, id: @org_id }, method: :delete, class: 'btn btn-danger'
= link_to 'I understand the consequences, delete this organization', { action: :destroy, id: org_id }, method: :delete, class: 'btn btn-danger'
3 changes: 2 additions & 1 deletion app/views/admin/organizations/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
%p
Once you delete an organization, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this organization', { action: :confirm_delete_organization, org_id: @organization.id, org_name: @organization.name }, remote: true, data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to 'Permanently delete this organization', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/organizations/confirm_delete_organization', org_id: @organization.id, org_name: @organization.name

.save-box.navbar-default
%p
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions app/views/admin/programs/_confirm_delete_program.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
%p
This action CANNOT be undone. This will delete
%strong
= @program_name
= program_name
and all of its associated services permanently.
.modal-footer
%button.btn.btn-default{'data-dismiss' => 'modal'} Close
= link_to 'I understand the consequences, delete this program', { action: :destroy, id: @program_id }, method: :delete, class: 'btn btn-danger'
= link_to 'I understand the consequences, delete this program', { action: :destroy, id: program_id }, method: :delete, class: 'btn btn-danger'
1 change: 0 additions & 1 deletion app/views/admin/programs/confirm_delete_program.js.erb

This file was deleted.

3 changes: 2 additions & 1 deletion app/views/admin/programs/forms/_danger.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
%p
Once you delete a program, there is no going back. All of the program's services will be deleted as well. Please be certain.
%p
= link_to 'Permanently delete this program', { action: :confirm_delete_program, program_id: @program.id, program_name: @program.name }, remote: true, data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to 'Permanently delete this program', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/programs/confirm_delete_program', program_id: @program.id, program_name: @program.name
4 changes: 2 additions & 2 deletions app/views/admin/services/_confirm_delete_service.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%p
This action CANNOT be undone. This will delete
%strong
#{@service_name || @service_id}.
#{service_name || service_id}.
.modal-footer
%button.btn.btn-default{'data-dismiss' => 'modal'} Close
= link_to 'I understand the consequences, delete this service', { action: :destroy, id: @service_id, name: @service_name }, method: :delete, class: 'btn btn-danger'
= link_to 'I understand the consequences, delete this service', { action: :destroy, id: service_id, name: service_name }, method: :delete, class: 'btn btn-danger'
3 changes: 2 additions & 1 deletion app/views/admin/services/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
%p
Once you delete a service, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this service', { action: :confirm_delete_service, service_id: @service.id, service_name: @service.name }, remote: true, data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to 'Permanently delete this service', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/services/confirm_delete_service', service_id: @service.id, service_name: @service.name

.save-box.navbar-default
%p
Expand Down
1 change: 0 additions & 1 deletion app/views/admin/services/confirm_delete_service.js.erb

This file was deleted.

5 changes: 0 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
resources :programs, except: :show
resources :services, only: :index

get 'locations/:location_id/services/confirm_delete_service', to: 'services#confirm_delete_service', as: :confirm_delete_service
get 'organizations/confirm_delete_organization', to: 'organizations#confirm_delete_organization', as: :confirm_delete_organization
get 'locations/confirm_delete_location', to: 'locations#confirm_delete_location', as: :confirm_delete_location
get 'programs/confirm_delete_program', to: 'programs#confirm_delete_program', as: :confirm_delete_program

get 'locations/:location_id/services/:id', to: 'services#edit'
get 'locations/:location_id/services/:service_id/contacts/:id', to: 'service_contacts#edit'
get 'locations/:location_id/contacts/:id', to: 'contacts#edit'
Expand Down