File "phpcgusers.html"
Full Path: /home/humancap/cl.humancap.com.my/admin/templates/phpcgusers.html
File size: 12.43 KB
MIME-type: text/html
Charset: utf-8
<div class="px-4">
{# Partial block debug - rendered alone on the research results #}
{% block object_debug %}
<div id="debug-content">{{ object.debug_content|raw }}</div>
{% endblock object_debug %}
{# END Partial block - rendered alone on the research results #}
<div id="toolbar" class="d-lg-flex flex-wrap justify-content-between">
{% if object.records_count > 0 %}
<div class="d-flex ms-auto order-lg-2">
{{ object.select_number_per_page|raw }}
</div>
<hr class="w-100 d-lg-none">
{% endif %}
<div class="d-flex order-lg-0 mb-3">
{% if object.can_create == true %}
<a href="{{ constant('ADMIN_URL') }}{{ object.item }}/create" class="btn btn-sm me-1 btn-primary d-flex align-items-center"><i class="{{ constant('ICON_PLUS') }} prepend"></i>{{ constant('ADD_NEW') }}</a>
{% endif %}
{% if object.records_count > 0 %}
{{ object.export_data_button|raw }}
{% endif %}
</div>
<div class="order-lg-1 mx-lg-auto">
<form name="rp-search-form" id="rp-search-form" class="form-inline justify-content-center">
<div class="input-group input-group-sm">
<button class="input-group-text btn {{ constant('DEFAULT_BUTTONS_CLASS') }} dropdown-toggle ps-4 pe-3" type="button" data-bs-toggle="dropdown" aria-expanded="false"></button>
<ul id="rp-search-field" class="dropdown-menu">
{% for field_name, field_display_name in object.fields %}
{% set active = '' %}
{% if field_name == attribute(session.rp_search_field, object.table) %}
{% set active = ' active' %}
{% elseif field_name == '' %}
{% set active = ' active' %}
{% endif %}
<li><a class="dropdown-item{{ active }}" href="#" rel="noindex" data-value="{{ field_name }}">{{ field_display_name }}</a></li>
{% endfor %}
</ul>
{% set search_value = '' %}
{% if attribute(session.rp_search_string, object.table) is defined %}
{% set search_value = attribute(session.rp_search_string, object.table) %}
{% endif %}
<input id="rp-search" name="rp-search" type="text" value="{{ search_value }}" placeholder="{{ constant('SEARCH') }}" class="form-control form-control-sm flex-grow-1">
<button id="rp-search-submit" class="input-group-text btn {{ constant('DEFAULT_BUTTONS_CLASS') }}" data-ladda-button="true" data-style="zoom-in" type="submit"><span class="ladda-label"><i class="{{ constant('ICON_SEARCH') }}"></i></span></button>
</div>
</form>
</div>
</div>
{# Partial block list - rendered alone on the research results #}
{% block object_list %}
{%
set filtered_class = {
id: 'id' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
profiles_id: 'profiles_id' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
name: 'name' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
firstname: 'firstname' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
address: 'address' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
city: 'city' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
zip_code: 'zip_code' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
email: 'email' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
phone: 'phone' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
mobile_phone: 'mobile_phone' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
password: 'password' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':'',
active: 'active' in object.active_filtered_fields?' class="' ~ constant('ADMIN_FILTERED_COLUMNS_CLASS') ~ '"':''
}
%}
<div id="{{ object.item }}-list">
{% if object.records_count > 0 %}
<div class="table-data-wrapper">
<table class="table table-data table-togglable" data-toggle-column="first" data-toggle-selector=".footable-toggle">
<thead>
<tr class="{{ constant('DEFAULT_TABLE_HEADING_CLASS') }}">
<th> </th>
{% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'left' %}
<th>{{ constant('ACTION_CONST') }}</th>
{% endif %}
<th>{{ object.fields.id }}</th>
<th class="sorting">{{ object.fields.profiles_id }}<a href="#" class="sorting-up py-1 d-flex align-items-start" rel="noindex" data-field="phpcg_users_profiles.profile_name" data-direction="ASC"><i class="{{ constant('ICON_ARROW_UP') }}"></i></a><a href="#" class="sorting-down py-1 d-flex align-items-end" rel="noindex" data-field="phpcg_users_profiles.profile_name" data-direction="DESC"><i class="{{ constant('ICON_ARROW_DOWN') }}"></i></a></th>
<th class="sorting">{{ object.fields.name }}<a href="#" class="sorting-up py-1 d-flex align-items-start" rel="noindex" data-field="name" data-direction="ASC"><i class="{{ constant('ICON_ARROW_UP') }}"></i></a><a href="#" class="sorting-down py-1 d-flex align-items-end" rel="noindex" data-field="name" data-direction="DESC"><i class="{{ constant('ICON_ARROW_DOWN') }}"></i></a></th>
<th class="sorting">{{ object.fields.firstname }}<a href="#" class="sorting-up py-1 d-flex align-items-start" rel="noindex" data-field="firstname" data-direction="ASC"><i class="{{ constant('ICON_ARROW_UP') }}"></i></a><a href="#" class="sorting-down py-1 d-flex align-items-end" rel="noindex" data-field="firstname" data-direction="DESC"><i class="{{ constant('ICON_ARROW_DOWN') }}"></i></a></th>
<th data-breakpoints="all">{{ object.fields.address }}</th>
<th data-breakpoints="all">{{ object.fields.city }}</th>
<th data-breakpoints="all">{{ object.fields.zip_code }}</th>
<th class="sorting">{{ object.fields.email }}<a href="#" class="sorting-up py-1 d-flex align-items-start" rel="noindex" data-field="email" data-direction="ASC"><i class="{{ constant('ICON_ARROW_UP') }}"></i></a><a href="#" class="sorting-down py-1 d-flex align-items-end" rel="noindex" data-field="email" data-direction="DESC"><i class="{{ constant('ICON_ARROW_DOWN') }}"></i></a></th>
<th data-breakpoints="all">{{ object.fields.phone }}</th>
<th data-breakpoints="all">{{ object.fields.mobile_phone }}</th>
<th>{{ object.fields.password }}</th>
<th class="sorting">{{ object.fields.active }}<a href="#" class="sorting-up py-1 d-flex align-items-start" rel="noindex" data-field="active" data-direction="ASC"><i class="{{ constant('ICON_ARROW_UP') }}"></i></a><a href="#" class="sorting-down py-1 d-flex align-items-end" rel="noindex" data-field="active" data-direction="DESC"><i class="{{ constant('ICON_ARROW_DOWN') }}"></i></a></th>
{% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'right' %}
<th>{{ constant('ACTION_CONST') }}</th>
{% endif %}
</tr>
</thead>
<tbody>
{% for i in range(0, object.records_count - 1) %}
<tr>
<td></td>
{% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'left' %}
<td class="has-btn-group no-ellipsis">
<div class="btn-group">
{% if object.update_record_authorized[object.pk_concat_values[loop.index0]] == true %}
<a href="{{ constant('ADMIN_URL') }}{{ object.item }}/edit/{{ object.pk_url_params[loop.index0] }}" class="btn btn-sm btn-warning" data-bs-toggle="tooltip" data-bs-title="{{ constant('EDIT') }}"><span class="{{ constant('ICON_EDIT') }} icon-md"></span></a>
{% endif %}
{% if object.can_create == true %}
<a href="{{ constant('ADMIN_URL') }}{{ object.item }}/delete/{{ object.pk_url_params[loop.index0] }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-title="{{ constant('DELETE_CONST') }}"><span class="{{ constant('ICON_DELETE') }} icon-md"></span></a>
{% endif %}
</div>
</td>
{% endif %}
<td{{ filtered_class.id|raw }}>{{ object.id[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.profiles_id|raw }}>{{ object.profiles_id[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.name|raw }}>{{ object.name[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.firstname|raw }}>{{ object.firstname[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.address|raw }}>{{ object.address[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.city|raw }}>{{ object.city[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.zip_code|raw }}>{{ object.zip_code[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.email|raw }}>{{ object.email[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.phone|raw }}>{{ object.phone[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.mobile_phone|raw }}>{{ object.mobile_phone[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.password|raw }}>{{ object.password[ loop.index0 ]|replace({'[|]': ' '}) }}</td>
<td{{ filtered_class.active|raw }}>{{ toBoolean(object.active[ loop.index0 ])|raw }}</td>
{% if constant('ADMIN_ACTION_BUTTONS_POSITION') == 'right' %}
<td class="has-btn-group no-ellipsis">
<div class="btn-group">
{% if object.update_record_authorized[object.pk_concat_values[loop.index0]] == true %}
<a href="{{ constant('ADMIN_URL') }}{{ object.item }}/edit/{{ object.pk_url_params[loop.index0] }}" class="btn btn-sm btn-warning" data-bs-toggle="tooltip" data-bs-title="{{ constant('EDIT') }}" data-delay="500"><span class="{{ constant('ICON_EDIT') }} icon-md"></span></a>
{% endif %}
{% if object.can_create == true %}
<a href="{{ constant('ADMIN_URL') }}{{ object.item }}/delete/{{ object.pk_url_params[loop.index0] }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" data-bs-title="{{ constant('DELETE_CONST') }}" data-delay="500"><span class="{{ constant('ICON_DELETE') }} icon-md"></span></a>
{% endif %}
</div>
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div> <!-- END table-responsive -->
{% else %}
<p class="text-semibold">
{{ alert(constant('NO_RECORD_FOUND'), 'alert-info has-icon')|raw }}
</p>
{% endif %}
<div id="pagination-wrapper" class="d-flex justify-content-between p-4">
{{ object.pagination_html|raw }}
</div>
</div> <!-- END {{ object.item }}-list -->
{% endblock object_list %}
{# END Partial block - rendered alone on the research results #}
</div> <!-- END card -->