Skip to content

Commit 62e062d

Browse files
committed
Expand patient and activity pages to full width
Switches patient show and log pages to use full-width layout to better accommodate the eligible programmes table component. The eligible programmes component (added in 95a175e) displays a 3-column table that requires more horizontal space to prevent text wrapping. Design team confirmed full-width layout is appropriate for these patient-focused pages.
1 parent 83b4f2e commit 62e062d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/controllers/patients_controller.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ class PatientsController < ApplicationController
77
before_action :set_patient, except: :index
88
before_action :record_access_log_entry, only: %i[show log]
99

10+
layout "full"
11+
1012
def index
1113
patients = @form.apply(policy_scope(Patient).includes(:school))
1214

1315
@pagy, @patients = pagy(patients)
14-
15-
render layout: "full"
1616
end
1717

1818
def show
@@ -27,7 +27,6 @@ def log
2727
end
2828

2929
def edit
30-
render layout: "full"
3130
end
3231

3332
def invite_to_clinic

0 commit comments

Comments
 (0)