403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/employee/templates/tabs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/employee/templates/tabs/group_permissions.html
{% load i18n %}
{% if perms.auth.view_permission or perms.auth.view_group %}
<div class="oh-tabs__contents">
    <div class="oh-tabs__content oh-tabs__content--active" id="tab_1_permission">
        {% if employee %}
        {% include "base/auth/permission_accordion.html" %}
        {% else %}
        {% include "base/auth/permission_table.html" %}
        {% endif %}
    </div>
    {% if employee.employee_user_id.groups.all.first %}
    <div class="oh-tabs__content oh-tabs__content--active" style="display: none" id="tab_2_permission">
        <div class="oh-inner-sidebar-content__header d-flex justify-content-between align-items-center">
            <h2 class="oh-inner-sidebar-content__title">
                {% trans "Groups" %}
            </h2>
        </div>
        {% for gp in employee.employee_user_id.groups.all %}
        <div class="oh-user_permission-list_item exclude-accordion-style" onclick="event.stopPropagation()">
            <div class="oh-user_permission-list_profile">
                <div class="oh-navbar__user-photo oh-user_permission--profile">
                    <img src="https://ui-avatars.com/api/?name={{gp}}&amp;background=random"
                        class="oh-navbar__user-image" loading="lazy" />
                </div>
                <div class="oh-feedback-card__name-container ms-1">
                    <span class="oh-card__title oh-card__title--sm fw-bold me-1">{{gp}}</span>
                    <span class="oh-user_permission_list-text oh-text--light">{% trans "Total" %}
                        {{gp.user_set.all|length}}
                        {% trans "users in this group" %}</span>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
    {% endif %}
</div>
<script>
    var showSearch = true
    $(document).ready(function () {
        setTimeout(() => {
            $("#tab_2_permission").show();
        }, 150);
    });
    function selectAllPermissions(elem) {
        $(elem).closest('.oh-sticky-table__thead').siblings('.oh-sticky-table__tbody').find('.row-permission').prop('checked', $(elem).is(':checked')).change()
    }
</script>
{% endif %}

Youez - 2016 - github.com/yon3zu
LinuXploit