Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!88
Přdáno filtrování orgů podle rolí
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Přdáno filtrování orgů podle rolí
jk/issue-183
into
devel
Overview
34
Commits
6
Changes
4
Merged
Jiří Kalvoda
requested to merge
jk/issue-183
into
devel
4 years ago
Overview
21
Commits
6
Changes
4
0
0
Merge request reports
Compare
devel
version 9
15d4acd8
4 years ago
version 8
ef68cbf6
4 years ago
version 7
e59ad2c3
4 years ago
version 6
b002f8d6
4 years ago
version 5
6c0fe184
4 years ago
version 4
703e2f31
4 years ago
version 3
1f6369c7
4 years ago
version 2
c84ea734
4 years ago
version 1
ce634fe4
4 years ago
devel (base)
and
version 2
latest version
4aa88fa4
6 commits,
4 years ago
version 9
15d4acd8
5 commits,
4 years ago
version 8
ef68cbf6
5 commits,
4 years ago
version 7
e59ad2c3
5 commits,
4 years ago
version 6
b002f8d6
5 commits,
4 years ago
version 5
6c0fe184
5 commits,
4 years ago
version 4
703e2f31
5 commits,
4 years ago
version 3
1f6369c7
5 commits,
4 years ago
version 2
c84ea734
5 commits,
4 years ago
version 1
ce634fe4
4 commits,
4 years ago
4 files
+
169
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
mo/web/templates/org_orgs.html
+
34
−
3
View file @ c84ea734
Edit in single-file editor
Open in Web IDE
Show full file
@@ -7,7 +7,9 @@
{% endif %}
<div
class=
"form-frame"
>
<form
action=
""
method=
"GET"
role=
"form"
>
<form
action=
""
method=
"POST"
role=
"form"
>
{{ filter.csrf_token }}
{{ filter.is_role_filter }}
<div
class=
"row"
>
<div
class=
'col-sm-2'
><strong>
Filtr organizátorů
</strong></div>
<div
class=
"col-sm-3"
>
@@ -17,8 +19,32 @@
{{ wtf.form_field(filter.search_email, placeholder='Libovolná část e-mailu') }}
</div>
</div>
{% if filter.is_role_filter.data %}
<div
class=
"row"
>
<div
class=
'col-sm-2'
><strong>
Filtr podle rolí
</strong><p>
Pro zobrazení uživatelů bez žádné role vypněte filtrování dle rolí.
</p></div>
<div
class=
"col-sm-2"
>
{{ wtf.form_field(filter.search_role, size=filter.search_role.choices|length, class="form-control no-scroll") }}
</div>
<div
class=
"col-sm-2"
>
{{ wtf.form_field(filter.search_year, placeholder='65-67,70') }}
{{ wtf.form_field(filter.search_place_code, placeholder='BK') }}
</div>
<div
class=
"col-sm-2"
>
{{ wtf.form_field(filter.search_place_level, size=filter.search_place_level.choices|length, class="form-control no-scroll" ) }}
</div>
<div
class=
"col-sm-2"
>
{{ wtf.form_field(filter.search_category, placeholder='A,P,Z9') }}
{{ wtf.form_field(filter.search_seq, placeholder='1,3-4') }}
</div>
</div>
{% endif %}
<div
class=
"btn-group"
>
{{ wtf.form_field(filter.submit, class='btn btn-primary') }}
{% if filter.is_role_filter.data %}
{{ wtf.form_field(filter.hide_role_filter) }}
{% else %}
{{ wtf.form_field(filter.show_role_filter) }}
{% endif %}
{% if filter.offset.data > 0 %}
{{ wtf.form_field(filter.previous) }}
{% else %}
@@ -52,10 +78,15 @@
<tr>
<td>
{{ user.first_name }}
</td><td>
{{ user.last_name }}
</td>
<td>
{{ user.email|mailto }}{{ user|user_flags }}
</td>
<td>
{% if user.is_admin %}správce{% elif user.roles|count == 0 %}
<i>
žádná role
</i>
{% else %}
<td>
{% if user.is_admin %}správce{% elif user.roles|count == 0 %}
<i>
žádná role
</i>
{% endif %}
{% if user.roles|count > 0 %}
<ul>
{% for role in user.roles %}
<li>
{{ role }}
</li>
{% if role.user_role_id in marked_roles_id %}
<li><b>
{{ role }}
</b></li>
{% else %}
<li>
{{ role }}
</li>
{% endif %}
{%- endfor %}
</ul>
{% endif %}
</td>
Loading