File tree Expand file tree Collapse file tree 2 files changed +22
-19
lines changed
app/view_objects/teacher_interface
spec/system/teacher_interface Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -88,23 +88,26 @@ def items_by_assessment_section
88
88
end
89
89
90
90
def task_list_items ( items )
91
- items . map do |item |
92
- {
93
- title : item_name ( item ) ,
94
- description : item_description ( item ) ,
95
- value_title : item_value_title ( item ) ,
96
- value : item_value ( item ) ,
97
- assessor_note : item . failure_reason_assessor_feedback ,
98
- href : [
99
- :edit ,
100
- :teacher_interface ,
101
- :application_form ,
102
- further_information_request ,
103
- item ,
104
- ] ,
105
- status : item . status ,
106
- }
107
- end
91
+ list_items =
92
+ items . map do |item |
93
+ {
94
+ title : item_name ( item ) ,
95
+ description : item_description ( item ) ,
96
+ value_title : item_value_title ( item ) ,
97
+ value : item_value ( item ) ,
98
+ assessor_note : item . failure_reason_assessor_feedback ,
99
+ href : [
100
+ :edit ,
101
+ :teacher_interface ,
102
+ :application_form ,
103
+ further_information_request ,
104
+ item ,
105
+ ] ,
106
+ status : item . status ,
107
+ }
108
+ end
109
+
110
+ list_items . sort_by { |item | item [ :title ] }
108
111
end
109
112
110
113
def item_value_title ( item )
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ def text_task_list_item
298
298
def text_check_answers_item
299
299
teacher_check_further_information_request_answers_page
300
300
. summary_lists
301
- . second
301
+ . first
302
302
. rows
303
303
. first
304
304
end
@@ -318,7 +318,7 @@ def document_task_list_item
318
318
def document_check_answers_item
319
319
teacher_check_further_information_request_answers_page
320
320
. summary_lists
321
- . first
321
+ . third
322
322
. rows
323
323
. first
324
324
end
You can’t perform that action at this time.
0 commit comments