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 :  /home/dev/code/erp/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/dev/code/erp/templates/dashboard_chart_form.html
{% load i18n %} {% load static %}
<div class="oh-modal__dialog-header">
    <h2 class="oh-modal__dialog-title" id="createTitle">
        {% trans "Dashboard Chart Select" %}
    </h2>
    <button type="button" class="oh-modal__close" aria-label="Close">
        <ion-icon name="close-outline"></ion-icon>
    </button>
</div>

<!-- htmx form -->
<div class="oh-modal__dialog-body">
    <div class="oh-modal__dialog-body" style="padding: 0">
        <div class="oh-dropdown_btn-header">
            <button class="oh-btn oh-btn--success-outline" id="select_all">{% trans "Select All Rows" %}</button>
            <button class="oh-btn oh-btn--primary-outline" id="unselect_all">{% trans "Unselect All Rows" %}</button>
        </div>
        <form
            hx-post="{% url 'employee-chart-show' %}"
            hx-target="#objectDetailsModalTarget"
            id="dashboardChartForm"
        >
            <div class="oh-sticky-table">
                <div class="oh-sticky-table__table">
                    <div class="oh-sticky-table__thead">
                        <div class="oh-sticky-table__th">
                            {% trans "Charts" %}
                        </div>
                        <div class="oh-sticky-table__th" align="center">
                            {% trans "View" %}
                        </div>
                    </div>
                    <div class="oh-sticky-table__tbody">
                        {% for chart in dashboard_charts %}
                        <div class="oh-sticky-table__tr">
                            <div class="oh-sticky-table__td">
                                <div class="oh-profile oh-profile--md">
                                    <div class="oh-profile__avatar mr-1">
                                        <img
                                            src="https://ui-avatars.com/api/?name={{chart.1}}&background=random"
                                            class="oh-profile__image"
                                        />
                                    </div>
                                    <span class="oh-profile__name oh-text--dark"
                                        >{{chart.1}}</span
                                    >
                                </div>
                            </div>
                            <div class="oh-sticky-table__td">
                                <div class="d-flex justify-content-center">
                                    <div class="oh-switch">
                                        <input
                                            type="checkbox"
                                            name="{{chart.0}}"
                                            style="cursor: pointer"
                                            class="oh-switch__checkbox"
											{% if not chart.0 in employee_chart%}
											checked
											{% endif %}
                                        />
                                    </div>
                                </div>
                            </div>
                        </div>
                        {% endfor %}
                    </div>
                </div>
            </div>
            <div class="d-flex flex-row-reverse">
                <button
                    type="submit"
                    class="oh-btn oh-btn--secondary mt-2 mr-0 pl-4 pr-5 oh-btn--w-100-resp"
                >
                    {% trans "Save" %}
                </button>
            </div>
        </form>
    </div>
</div>

<script>
    $(document).ready(function() {
        $("#select_all").on("click", function(){
            $("#dashboardChartForm").find("[type=checkbox]").prop("checked",true).change();
        })
        $("#unselect_all").on("click", function(){
            $("#dashboardChartForm").find("[type=checkbox]").prop("checked",false).change();
        })
    })
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit