yasserrmd commited on
Commit
7a0da87
·
verified ·
1 Parent(s): 585b158

Update app/templates/reports_list.html

Browse files
Files changed (1) hide show
  1. app/templates/reports_list.html +7 -7
app/templates/reports_list.html CHANGED
@@ -6,7 +6,7 @@
6
  <div class="heading-container">
7
  <h1 class="h3">All Generated Reports</h1>
8
  {# Optional: Add a button to quickly navigate to case creation or other relevant actions #}
9
- <a href="{{ url_for(\'manage_cases\', action=\'new\') }}" class="btn btn-primary"><i class="bi bi-plus-circle-fill me-1"></i>Create New Case</a>
10
  </div>
11
 
12
  <div class="card">
@@ -28,15 +28,15 @@
28
  </tr>
29
  </thead>
30
  <tbody>
31
- {% for report in reports | sort(attribute=\'generated_at\', reverse=True) %}
32
  <tr>
33
  <td>{{ report.id }}</td>
34
- <td><a href="{{ url_for(\'view_case\', case_id=report.case.id) }}">{{ report.case.case_id_display }}</a></td>
35
  <td>{{ report.case.suspect_name }}</td>
36
- <td>{{ report.report_country_context.name if report.report_country_context else \'N/A\' }}</td>
37
- <td>{{ report.generated_at.strftime(\'%Y-%m-%d %H:%M\') }}</td>
38
  <td>
39
- <a href="{{ url_for(\'view_report\', report_id=report.id) }}" class="btn btn-sm btn-outline-primary">View Report</a>
40
  </td>
41
  </tr>
42
  {% endfor %}
@@ -48,7 +48,7 @@
48
  <i class="bi bi-journal-x fs-1 text-muted"></i>
49
  <p class="mt-3 text-muted">No reports found in the system.</p>
50
  <p>Reports are generated from individual case detail pages after interrogation questions have been processed.</p>
51
- <a href="{{ url_for(\'manage_cases\') }}" class="btn btn-primary">Go to Cases</a>
52
  </div>
53
  {% endif %}
54
  </div>
 
6
  <div class="heading-container">
7
  <h1 class="h3">All Generated Reports</h1>
8
  {# Optional: Add a button to quickly navigate to case creation or other relevant actions #}
9
+ <a href="{{ url_for('manage_cases', action='new') }}" class="btn btn-primary"><i class="bi bi-plus-circle-fill me-1"></i>Create New Case</a>
10
  </div>
11
 
12
  <div class="card">
 
28
  </tr>
29
  </thead>
30
  <tbody>
31
+ {% for report in reports | sort(attribute='generated_at', reverse=True) %}
32
  <tr>
33
  <td>{{ report.id }}</td>
34
+ <td><a href="{{ url_for('view_case', case_id=report.case.id) }}">{{ report.case.case_id_display }}</a></td>
35
  <td>{{ report.case.suspect_name }}</td>
36
+ <td>{{ report.report_country_context.name if report.report_country_context else 'N/A' }}</td>
37
+ <td>{{ report.generated_at.strftime('%Y-%m-%d %H:%M') }}</td>
38
  <td>
39
+ <a href="{{ url_for('view_report', report_id=report.id) }}" class="btn btn-sm btn-outline-primary">View Report</a>
40
  </td>
41
  </tr>
42
  {% endfor %}
 
48
  <i class="bi bi-journal-x fs-1 text-muted"></i>
49
  <p class="mt-3 text-muted">No reports found in the system.</p>
50
  <p>Reports are generated from individual case detail pages after interrogation questions have been processed.</p>
51
+ <a href="{{ url_for('manage_cases') }}" class="btn btn-primary">Go to Cases</a>
52
  </div>
53
  {% endif %}
54
  </div>