Skip to content

Commit

Permalink
view blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
kbl committed Jan 13, 2012
1 parent 90e46bf commit 8788434
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/controllers/admin/patient_assignments_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Admin
class PatientAssignmentsController < ApplicationController

before_filter :admin_required

def show
end

end
end
1 change: 1 addition & 0 deletions app/views/admin/patient_assignments/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
1 change: 1 addition & 0 deletions app/views/patients/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
%th{:scope => "row"}= link_to "Assign", edit_assignment_desk_path(patient)

- if current_user.user_type == UserType::ADMIN
%td= link_to 'History', patient_history_path(patient_id: patient.id)
%td= link_to 'Edit', edit_patient_path(patient)
%td= link_to 'Print', {:controller => 'patients', :action => 'print', :id => patient.id}, :popup => true
%td= link_to 'Destroy', patient, :confirm => 'Are you sure?', :method => :delete
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
resources :assignment_desk
match '/patients/:id/print' => 'patients#print', :as => :print_chart
match '/patients/:patient_id/export' => 'patients#export_to_dexis_file', :as => :export_to_dexis_file
match '/patients/:patient_id/history' => 'admin/patient_assignments#show', :as => :patient_history
match '/status' => 'status#index', :as => :status

namespace :admin do
Expand Down

0 comments on commit 8788434

Please sign in to comment.