Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
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
AlekSIS®
Official
AlekSIS-Core
Commits
ad44b24c
Verified
Commit
ad44b24c
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Add buttons for changing preferences to group and person templates
parent
18a0043a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!217
Migrate from constance to dynamic-preferences
Pipeline
#1825
passed with warnings
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/templates/core/group_full.html
+21
-6
21 additions, 6 deletions
aleksis/core/templates/core/group_full.html
aleksis/core/templates/core/person_full.html
+16
-5
16 additions, 5 deletions
aleksis/core/templates/core/person_full.html
with
37 additions
and
11 deletions
aleksis/core/templates/core/group_full.html
+
21
−
6
View file @
ad44b24c
{# -*- engine:django -*- #}
{% extends "core/base.html" %}
{% load rules %}
{% load i18n static %}
{% load render_table from django_tables2 %}
...
...
@@ -9,12 +10,26 @@
{% block content %}
<h4>
{{ group.name }}
<small
class=
"grey-text"
>
{{ group.short_name }}
</small></h4>
<p>
<a
href=
"{% url 'edit_group_by_id' group.id %}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit" %}
</a>
</p>
{% has_perm 'core.edit_group' user group as can_change_group %}
{% has_perm 'core.change_group_preferences' user group as can_change_group_preferences %}
{% if can_change_group or can_change_group_preferences %}
<p>
{% if can_change_group %}
<a
href=
"{% url 'edit_group_by_id' group.id %}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit" %}
</a>
{% endif %}
{% if can_change_group_preferences %}
<a
href=
"{% url "
preferences_group
"
group.id
%}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
settings
</i>
{% trans "Change preferences" %}
</a>
{% endif %}
</p>
{% endif %}
<h5>
{% blocktrans %}Owners{% endblocktrans %}
</h5>
{% render_table owners_table %}
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/core/person_full.html
+
16
−
5
View file @
ad44b24c
...
...
@@ -11,12 +11,23 @@
<h4>
{{ person.first_name }} {{ person.last_name }}
</h4>
{% has_perm 'core.edit_person' user person as can_change_person %}
{% if can_change_person %}
{% has_perm 'core.change_person_preferences' user person as can_change_person_preferences %}
{% if can_change_person or can_change_person_preferences %}
<p>
<a
href=
"{% url 'edit_person_by_id' person.id %}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit" %}
</a>
{% if can_change_person %}
<a
href=
"{% url 'edit_person_by_id' person.id %}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
edit
</i>
{% trans "Edit" %}
</a>
{% endif %}
{% if can_change_person_preferences %}
<a
href=
"{% url "
preferences_person
"
person.id
%}"
class=
"btn waves-effect waves-light"
>
<i
class=
"material-icons left"
>
settings
</i>
{% trans "Change preferences" %}
</a>
{% endif %}
</p>
{% endif %}
...
...
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