1414 {% trans %}statistics.parts{% endtrans %}
1515 </a >
1616 </li >
17+ <li class =" nav-item" >
18+ <a class =" nav-link" id =" assemblies-tab" data-bs-toggle =" tab" href =" #assemblies" role =" tab" aria-controls =" assemblies" aria-selected =" false" >
19+ {% trans %}statistics.assemblies{% endtrans %}
20+ </a >
21+ </li >
22+ <li class =" nav-item" >
23+ <a class =" nav-link" id =" projects-tab" data-bs-toggle =" tab" href =" #projects" role =" tab" aria-controls =" projects" aria-selected =" false" >
24+ {% trans %}statistics.projects{% endtrans %}
25+ </a >
26+ </li >
1727 <li class =" nav-item" >
1828 <a class =" nav-link" id =" data_structures-tab" data-bs-toggle =" tab" href =" #data_structures" role =" tab" aria-controls =" profile" aria-selected =" false" >
1929 {% trans %}statistics.data_structures{% endtrans %}
5262 </table >
5363 </div >
5464
65+ <div class =" tab-pane fade" id =" assemblies" role =" tabpanel" aria-labelledby =" assemblies-tab"
66+ {{ stimulus_controller(' pages/statistics_assembly' , {
67+ url : path(' statistics_cleanup_assembly_bom_entries' ),
68+ confirmMsg : ' statistics.cleanup_assembly_bom_entries.confirm' |trans,
69+ successMsg : ' statistics.cleanup_assembly_bom_entries.success' |trans,
70+ errorMsg : ' statistics.cleanup_assembly_bom_entries.error' |trans
71+ }) }}
72+ >
73+ <table class =" table table-striped table-hover" >
74+ <thead >
75+ <tr >
76+ <th >{% trans %}statistics.property{% endtrans %}</th >
77+ <th >{% trans %}statistics.value{% endtrans %}</th >
78+ </tr >
79+ </thead >
80+ <tbody >
81+ <tr >
82+ <td >{% trans %}statistics.distinct_assemblies_count{% endtrans %}</td >
83+ <td >{{ helper.dataStructuresCount (" assembly" ) }}</td >
84+ </tr >
85+ <tr >
86+ <td >{% trans %}statistics.invalid_part_bom_entries_count{% endtrans %}</td >
87+ <td >
88+ <span {{ stimulus_target(' pages/statistics_assembly' , ' count' ) }}>{{ helper .invalidPartBOMEntriesCount }}</span >
89+ {% if helper .invalidPartBOMEntriesCount > 0 %}
90+ <button class =" btn btn-sm btn-outline-danger ms-2" {{ stimulus_action(' pages/statistics_assembly' , ' cleanup' ) }}>
91+ <i class =" fas fa-magic" ></i > {% trans %}statistics.cleanup_assembly_bom_entries.button{% endtrans %}
92+ </button >
93+ {% endif %}
94+ </td >
95+ </tr >
96+ </tbody >
97+ </table >
98+ </div >
99+
100+ <div class =" tab-pane fade" id =" projects" role =" tabpanel" aria-labelledby =" projects-tab" >
101+ <table class =" table table-striped table-hover" >
102+ <thead >
103+ <tr >
104+ <th >{% trans %}statistics.property{% endtrans %}</th >
105+ <th >{% trans %}statistics.value{% endtrans %}</th >
106+ </tr >
107+ </thead >
108+ <tbody >
109+ <tr >
110+ <td >{% trans %}statistics.distinct_projects_count{% endtrans %}</td >
111+ <td >{{ helper .distinctProjectsCount }}</td >
112+ </tr >
113+ </tbody >
114+ </table >
115+ </div >
116+
55117 <div class =" tab-pane fade" id =" data_structures" role =" tabpanel" aria-labelledby =" data_structures-tab" >
56118 <table class =" table table-striped table-hover" >
57119 <thead >
131193 </table >
132194 </div >
133195 </div >
134- {% endblock %}
196+ {% endblock %}
0 commit comments