Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
covid-portal
covid-portal-es
Commits
18a0690b
Commit
18a0690b
authored
Oct 15, 2021
by
Albert Hornos Vidal
Browse files
feat: add 'Registro estatal' filter in research projects section
parent
06afe318
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
data/c19dpes_research_projects.json
View file @
18a0690b
This diff is collapsed.
Click to expand it.
i18n/en.toml
View file @
18a0690b
...
...
@@ -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"
...
...
layouts/research-projects/single.html
View file @
18a0690b
...
...
@@ -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
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment