Commit 18a0690b authored by Albert Hornos Vidal's avatar Albert Hornos Vidal
Browse files

feat: add 'Registro estatal' filter in research projects section

parent 06afe318
This diff is collapsed.
......@@ -215,6 +215,12 @@ other = "Multicentric"
[clinical_trial]
other = "Clinical Trial"
[project_funder]
other="Project funder"
[registro_covid]
other="Registro estatal de COVID19"
[yes]
other = "Yes"
......
......@@ -27,6 +27,13 @@
</div>
<div class="row">
<section class="col-md-2">
<h5>{{ i18n "project_funder" }}</h5>
<div class="form-check mb-2 ml-3">
<div class="row">
<input type="checkbox" class="form-check-input" name="project_funder" value="Registro">
<span>{{ i18n "registro_covid" }}</span>
</div>
</div>
<h5>{{ i18n "organisation" }}</h5>
<div class="form-check mb-2 ml-3">
<div class="row">
......@@ -74,6 +81,7 @@
<th scope="col">{{ i18n "trial" }}</th>
<th scope="col">{{ i18n "organisation" }}</th>
<th scope="col">{{ i18n "topic_call" }}</th>
<th scope="col">{{ i18n "specific_project_funder" }}</th>
</tr>
</thead>
<tbody>
......@@ -102,6 +110,7 @@
<td>{{ .clinical_trial }}</td>
<td>{{ .uni_multi_centric }}</td>
<td>{{ delimit .topic_call ", " }}</td>
<td>{{ .specific_project_funder }}</td>
</tr>
{{ end }}
</tbody>
......@@ -134,16 +143,17 @@
titleAttr: 'Download table in comma-separated-values format',
className: 'btn btn-primary',
exportOptions: {
columns: [ 1, 2, 3, 4, 5, 6 ],
columns: [ 1, 2, 3, 4, 5, 6, 7 ],
},
},
],
processing: true,
order: [[ 1, "desc" ]],
autoWidth: false,
columnDefs: [
// Hide columns that are present for filtering and for downloading the table as usable CSV.
{ visible: false, targets: [2, 3, 4, 5] },
{ visible: false, targets: [2, 3, 4, 5, 6] },
// Remove ordering for first mega-column (sorting alphabetically by title makes no sense).
{ orderable: false, targets: 0 },
......@@ -162,6 +172,7 @@
clinical_trial: 3,
uni_or_multi: 4,
topic_call: 5,
project_funder: 6
};
applyFilters(table, columnIndices);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment