SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
a9d5ae74
Commit
a9d5ae74
authored
3 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Add quick admin links in vet_registration_requests
parent
a9666233
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scipost_django/scipost/templates/scipost/vet_registration_requests.html
+15
-3
15 additions, 3 deletions
.../scipost/templates/scipost/vet_registration_requests.html
with
15 additions
and
3 deletions
scipost_django/scipost/templates/scipost/vet_registration_requests.html
+
15
−
3
View file @
a9d5ae74
{% extends 'scipost/_personal_page_base.html' %}
{% extends 'scipost/_personal_page_base.html' %}
{% load scipost_extras %}
{% block pagetitle %}: registrations to vet{% endblock pagetitle %}
{% block pagetitle %}: registrations to vet{% endblock pagetitle %}
{% load bootstrap %}
{% load bootstrap %}
...
@@ -7,7 +9,7 @@
...
@@ -7,7 +9,7 @@
{% block breadcrumb_items %}
{% block breadcrumb_items %}
{{block.super}}
{{
block.super
}}
<span
class=
"breadcrumb-item"
>
Registration requests to vet
</span>
<span
class=
"breadcrumb-item"
>
Registration requests to vet
</span>
{% endblock %}
{% endblock %}
...
@@ -30,10 +32,20 @@
...
@@ -30,10 +32,20 @@
{% for contributor_to_vet in contributors_to_vet %}
{% for contributor_to_vet in contributors_to_vet %}
{% if not forloop.first %}
<hr
class=
"small"
>
{% endif %}
{% if not forloop.first %}
<hr
class=
"small"
>
{% endif %}
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-
4
"
>
<div
class=
"col-md-
6
"
>
{% include "scipost/_private_info_as_table.html" with contributor=contributor_to_vet %}
{% include "scipost/_private_info_as_table.html" with contributor=contributor_to_vet %}
</div>
</div>
<div
class=
"col-md-8"
>
<div
class=
"col-md-6"
>
{% if user.is_superuser %}
<a
href=
"{{ contributor_to_vet|get_admin_url }}"
target=
"_blank"
class=
"btn btn-sm btn-danger mb-2"
>
Edit User object in admin (su only)
</a>
<a
href=
"{{ contributor_to_vet.profile|get_admin_url }}"
target=
"_blank"
class=
"btn btn-sm btn-danger mb-2"
>
Edit Profile object in admin (su only)
</a>
{% endif %}
<form
action=
"{% url 'scipost:vet_registration_request_ack' contributor_id=contributor_to_vet.id %}"
method=
"post"
>
<form
action=
"{% url 'scipost:vet_registration_request_ack' contributor_id=contributor_to_vet.id %}"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{form|bootstrap}}
{{form|bootstrap}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment