***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Invenio Theme TUW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
Invenio Theme TUW
Merge requests
!130
Add template for user preferences about record curation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add template for user preferences about record curation
mm/curation-consent
into
master
Overview
0
Commits
2
Pipelines
0
Changes
3
Merged
Moser, Maximilian
requested to merge
mm/curation-consent
into
master
1 year ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
master
version 1
eb4c87b3
1 year ago
master (base)
and
latest version
latest version
83f1a2ae
2 commits,
1 year ago
version 1
eb4c87b3
1 commit,
1 year ago
3 files
+
53
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
invenio_theme_tuw/theme/templates/semantic-ui/invenio_theme_tuw/settings/curation.html
0 → 100644
+
50
−
0
Options
{#-
Copyright (C) 2023 TU Wien.
Invenio Theme TUW is free software; you can redistribute it and/or modify
it under the terms of the MIT License; see LICENSE file for more details.
#}
{%- extends config.USERPROFILES_SETTINGS_TEMPLATE %}
{%- from "invenio_userprofiles/settings/_macros.html" import render_field, form_errors %}
{%- block settings_content scoped %}
<section
aria-label=
"{{ _('Curation') }}"
class=
"ui segments"
>
<div
class=
"ui segment secondary"
>
<i
class=
"file icon"
aria-hidden=
"true"
></i>
<strong
class=
"header item"
>
{{ _("Curation") }}
</strong>
</div>
<div
class=
"ui segment"
>
<form
method=
"POST"
name=
"preferences_curation_form"
class=
"ui form"
>
{%- set form = preferences_curation_form %}
{%- for field in form %}
{%- if field.widget.input_type == 'hidden' %}
{{ field() }}
{%- endif %}
{%- endfor %}
{%- set consent_field = form.consent %}
{%- set consent_given = current_user.preferences.get("curation", {}).get("consent", False) %}
<div
class=
"field"
>
<label
for=
"{{ consent_field.id }}"
>
{{ consent_field.label }}
</label>
<p><small>
{{ consent_field.description }}
</small></p>
<div
class=
"ui toggle on-off checkbox"
>
<input
type=
"checkbox"
name=
"{{ consent_field.id }}"
id=
"{{ consent_field.id }}"
{{
"
checked
"
if
consent_given
else
""
}}
/>
<label
for=
"{{ consent_field.id }}"
>
Curate my records
</label>
</div>
</div>
<div
class=
"form-actions"
>
<a
href=
"."
class=
"ui labeled icon button mt-5"
>
<i
class=
"close icon"
aria-hidden=
"true"
></i>
{{ _('Cancel') }}
</a>
<button
type=
"submit"
name=
"submit"
value=
"{{ form._prefix }}"
class=
"ui primary labeled icon button mt-5"
>
<i
class=
"check icon"
aria-hidden=
"true"
></i>
{{ _('Update curation preferences') }}
</button>
</div>
</form>
</div>
</section>
{% endblock %}
Loading