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
Merge requests
!231
Add view for assigning child groups to groups
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add view for assigning child groups to groups
feature/assign-child-groups-to-groups
into
master
Overview
0
Commits
1
Pipelines
1
Changes
8
Merged
Jonathan Weth
requested to merge
feature/assign-child-groups-to-groups
into
master
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
8
Expand
Related to
AlekSIS-App-Untis!15 (merged)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d0a62cbc
1 commit,
5 years ago
8 files
+
235
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/templates/core/groups_child_groups.html
0 → 100644
+
154
−
0
Options
{# -*- engine:django -*- #}
{% extends "core/base.html" %}
{% load i18n material_form %}
{% block browser_title %}{% blocktrans %}Assign child groups to groups{% endblocktrans %}{% endblock %}
{% block page_title %}
{% blocktrans %}Assign child groups to groups{% endblocktrans %}
{% endblock %}
{% block content %}
{% if not page %}
<div
class=
"alert info"
>
<p>
<i
class=
"material-icons left"
>
info
</i>
{% blocktrans %}
You can use this to assign child groups to groups. Please use the filters below to select groups you want to
change and click at "Next".
{% endblocktrans %}
</p>
</div>
<form
method=
"get"
>
{% csrf_token %}
{% form form=filter.form %}{% endform %}
<button
type=
"submit"
class=
"btn green waves-effect waves-light"
>
<i
class=
"material-icons left"
>
refresh
</i>
{% trans "Update selection" %}
</button>
<a
href=
"{% url "
groups_child_groups
"
%}"
class=
"btn red waves-effect waves-light"
>
<i
class=
"material-icons left"
>
clear
</i>
{% trans "Clear all filters" %}
</a>
</form>
<h5>
{% trans "Currently selected groups" %}
</h5>
{% for group in filter.qs %}
<div
class=
"chip"
>
{{ group }}
</div>
{% endfor %}
{% if filter.qs %}
<p>
<form
method=
"post"
>
{% csrf_token %}
<button
class=
"btn btn-primary waves-effect waves-light"
type=
"submit"
name=
"page"
value=
"1"
>
{% trans "Start assigning child groups for this groups" %}
<i
class=
"material-icons right"
>
arrow_forward
</i>
</button>
</form>
</p>
{% else %}
<div
class=
"alert warning"
>
<p>
<i
class=
"material-icons left"
>
warning
</i>
{% blocktrans %}
Please select some groups in order to go on with assigning.
{% endblocktrans %}
</p>
</div>
{% endif %}
{% else %}
<form
method=
"post"
>
<input
type=
"hidden"
name=
"old_page"
value=
"{{ page.number }}"
>
<p
class=
"flow-text"
>
{% trans "Current group:" %} {{ group }}
</p>
<div
class=
"alert warning"
>
<p>
<i
class=
"material-icons left"
>
warning
</i>
{% blocktrans %}
<strong>
Please be careful!
</strong><br/>
If you click on "Back" or "Next" the current group assignments are not saved.
If you click on save, you will overwrite all existing child group relations for this group with what you
selected on this page.
{% endblocktrans %}
</p>
</div>
<div
class=
"row"
>
<p
class=
"left"
>
{% if page.has_previous %}
<button
class=
"btn grey waves-effect waves-light"
name=
"page"
value=
"{{ page.previous_page_number }}"
>
<i
class=
"material-icons left"
>
arrow_back
</i>
{% trans "Back" %}
</button>
{% endif %}
{% if page.has_next %}
<button
class=
"btn grey waves-effect waves-light"
type=
"submit"
name=
"page"
value=
"{{ page.next_page_number }}"
>
{% trans "Next" %}
<i
class=
"material-icons right"
>
arrow_forward
</i>
</button>
{% endif %}
</p>
<p
class=
"right"
>
<button
class=
"btn green waves-effect waves-light"
type=
"submit"
name=
"save"
>
{% trans "Save" %}
<i
class=
"material-icons left"
>
save
</i>
</button>
{% if page.has_next %}
<button
class=
"btn green waves-effect waves-light"
type=
"submit"
name=
"save"
value=
"{{ page.next_page_number }}"
>
{% trans "Save and next" %}
<i
class=
"material-icons left"
>
save
</i>
</button>
{% endif %}
</p>
</div>
{% csrf_token %}
{% include "components/chips.html" with form_field=form.child_groups %}
<p
class=
"left"
>
{% if page.has_previous %}
<button
class=
"btn grey waves-effect waves-light"
name=
"page"
value=
"{{ page.previous_page_number }}"
>
<i
class=
"material-icons left"
>
arrow_back
</i>
{% trans "Back" %}
</button>
{% endif %}
{% if page.has_next %}
<button
class=
"btn grey waves-effect waves-light"
type=
"submit"
name=
"page"
value=
"{{ page.next_page_number }}"
>
{% trans "Next" %}
<i
class=
"material-icons right"
>
arrow_forward
</i>
</button>
{% endif %}
</p>
<p
class=
"right"
>
<button
class=
"btn green waves-effect waves-light"
type=
"submit"
name=
"save"
>
{% trans "Save" %}
<i
class=
"material-icons left"
>
save
</i>
</button>
{% if page.has_next %}
<button
class=
"btn green waves-effect waves-light"
type=
"submit"
name=
"save"
value=
"{{ page.next_page_number }}"
>
{% trans "Save and next" %}
<i
class=
"material-icons left"
>
save
</i>
</button>
{% endif %}
</p>
</form>
{% endif %}
{% endblock %}
Loading