33{% block title %}Dashboard - Cleo{% endblock %}
44{% block content %}
55
6- < header class ="page-header page-header-compact page-header-light border-bottom bg-white mb-4 ">
7- < div class ="container-xl px-4 ">
8- < div class ="page-header-content ">
9- < div class ="row align-items-center justify-content-between pt-3 ">
10- < div class ="col-auto mb-3 mt-3 ">
11- < h1 class ="page-header-title ">
12- < div class ="page-header-icon "> < i class ="fa-regular fa-file-pdf "> </ i > </ div >
13- Dina Testrapporter
14- </ h1 >
15- </ div >
16- < div class ="col-12 col-xl-auto mb-3 gap-5 ">
17- < a class ="btn btn-sm btn-light text-primary " href ="{% url 'upload_testreport' %} ">
18- < i class ="fa-regular fa-file-pdf "> </ i >
19- Ladda upp testrapport
20- </ a >
21- </ div >
6+ < header class ="page-header page-header-compact page-header-light border-bottom bg-white mb-4 ">
7+ < div class ="container-xl px-4 ">
8+ < div class ="page-header-content ">
9+ < div class ="row align-items-center justify-content-between pt-3 ">
10+ < div class ="col-auto mb-3 mt-3 ">
11+ < h1 class ="page-header-title ">
12+ < div class ="page-header-icon "> < i class ="fa-regular fa-file-pdf "> </ i > </ div >
13+ Dina Testrapporter
14+ </ h1 >
15+ </ div >
16+ < div class ="col-12 col-xl-auto mb-3 gap-5 ">
17+ < a class ="btn btn-sm btn-light text-primary " href ="{% url 'upload_testreport' %} ">
18+ < i class ="fa-regular fa-file-pdf "> </ i >
19+ Ladda upp testrapport
20+ </ a >
2221 </ div >
2322 </ div >
2423 </ div >
25- </ header >
26- <!-- Main page content-->
27- < div class ="container-xl px-4 mt-4 ">
28- < div class ="row ">
29- < div class ="container-fluid px-4 ">
30- < div >
31- < div class ="card-body ">
32- < table id ="datatablesSimple ">
33- < thead >
34- < tr >
35- < th > Namn</ th >
36- < th > Titel</ th >
37- < th > E-post</ th >
38- < th > Telefon</ th >
39- < th > Top Skills</ th >
40- < th > Tillagd</ th >
41- < th > </ th >
42- </ tr >
43- </ thead >
44- < tfoot >
45- < tr >
46- < th > Name</ th >
47- < th > Title</ th >
48- < th > Email</ th >
49- < th > Phone</ th >
50- < th > Top Skills</ th >
51- < th > Added date</ th >
52- < th > Actions</ th >
53- </ tr >
54- </ tfoot >
55- < tbody >
56- {% for candidate in candidates %}
57- < tr >
58- < td >
59- < div class ="d-flex align-items-center ">
60- {% if candidate.slug %}
61- < a href ="{% url 'candidate_detail' candidate.slug %} " class ="text-dark fw-bold text-decoration-none ">
62- {{ candidate.first_name }} {{ candidate.last_name }}
63- </ a >
64- {% else %}
65- < span class ="text-muted "> {{ candidate.first_name }} {{ candidate.last_name }} (No slug)</ span >
66- {% endif %}
67- </ div >
68- </ td >
69- < td >
70- {% if candidate.title %}
71- {{ candidate.title }}
72- {% else %}
73- < span class ="text-muted fst-italic "> Ingen titel</ span >
74- {% endif %}
75- </ td >
76- < td > {{ candidate.email }}</ td >
77- < td > {{ candidate.phone_number }}</ td > <!-- Eller visa nåt från modellen om du har det -->
78- < td >
79- {% for skill in candidate.top_skills %}
80- < span class ="badge bg-secondary text-white "> {{ skill }}</ span >
81- {% empty %}
82- < span class ="text-muted "> No skills</ span >
83- {% endfor %}
84- </ td >
85- < td > {{ candidate.created_on|date:"d M Y" }}</ td >
86- < td >
87- {% if candidate.slug %}
88- < a class ="btn btn-datatable btn-icon btn-transparent-dark me-2 " href ="{% url 'edit_candidate' candidate.slug %} ">
89- < i data-feather ="edit "> </ i >
90- </ a >
91- {% endif %}
92- {% if candidate.slug %}
93- < a
94- class ="btn btn-datatable btn-icon btn-transparent-dark open-delete-modal "
95- href ="# "
96- data-bs-toggle ="modal "
97- data-bs-target ="#deleteModal "
98- data-name ="{{ candidate.first_name }} {{ candidate.last_name }} "
99- data-url ="{% url 'delete_candidate' candidate.slug %} ">
100- < i data-feather ="trash-2 "> </ i >
101- </ a >
102- {% endif %}
103- </ td >
104- </ tr >
105- {% empty %}
106- < tr >
107- < td colspan ="6 "> You have no candidates yet.</ td >
108- </ tr >
109- {% endfor %}
110- </ tbody >
111- </ table >
112- </ div >
113- </ div >
24+ </ div >
25+ </ header >
26+
27+ <!-- Main page content-->
28+ < div class ="container-xl px-4 mt-4 ">
29+ < div class ="row ">
30+ < div class ="container-fluid px-4 ">
31+ < div class ="card-body ">
32+ < table id ="datatablesSimple ">
33+ < thead >
34+ < tr >
35+ < th > Filnamn</ th >
36+ < th > Datum</ th >
37+ < th > AI-sammanfattning</ th >
38+ < th > Visa</ th >
39+ </ tr >
40+ </ thead >
41+ < tfoot >
42+ < tr >
43+ < th > File name</ th >
44+ < th > Date</ th >
45+ < th > Summary</ th >
46+ < th > Actions</ th >
47+ </ tr >
48+ </ tfoot >
49+ < tbody >
50+ {% for report in reports %}
51+ < tr >
52+ < td > {{ report.uploaded_file.name|truncatechars:40 }}</ td >
53+ < td > {{ report.created_on|date:"Y-m-d H:i" }}</ td >
54+ < td >
55+ {% if report.summary %}
56+ ✅
57+ {% else %}
58+ < span class ="text-muted "> Ej genererad</ span >
59+ {% endif %}
60+ </ td >
61+ < td >
62+ < a class ="btn btn-sm btn-outline-secondary "
63+ href ="{% url 'testreport_detail' report.id %} ">
64+ Öppna
65+ </ a >
66+ </ td >
67+ </ tr >
68+ {% empty %}
69+ < tr >
70+ < td colspan ="4 "> Inga testrapporter har laddats upp ännu.</ td >
71+ </ tr >
72+ {% endfor %}
73+ </ tbody >
74+ </ table >
11475 </ div >
11576 </ div >
11677 </ div >
78+ </ div >
79+
11780{% endblock %}
0 commit comments