Sindbad~EG File Manager

Current Path : /home/numerotech/admin.numerotech.com/admin_app_v1/core/templates/admin_templates/
Upload File :
Current File : //home/numerotech/admin.numerotech.com/admin_app_v1/core/templates/admin_templates/view_admin.html

{% extends "layout.html" %}
{% block title %}Admin Access{% endblock %}
{% block header %}Admin Access Index{% endblock %}
{% block content %}

<a class="add float-right btn btn-primary form-group" href="{{url_for('admin_access.EditAdmin',admin_email=None,society_id=society_id,society_key=society_key)}}"  id="add" name="add"><i class="fa fa-plus" title="Add" ></i>Add</a>

<div class="row">
    <div class="col text-center">
        {% for mesg in get_flashed_messages(category_filter=["successMsg"]) %}

        <div class="alert alert-success text-center alert-dismissible" id="successMessage" >
            <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
            <h4><img src="/static/images/right.png" alt="right" height="21" width="21">{{ mesg|safe }}</h4>
        </div>
        {% endfor %}
        {% for mesg in get_flashed_messages(category_filter=["errorMsg"]) %}
        
        <div class="alert alert-danger text-center alert-dismissible" id="successMessage" >
            <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
            <h4><img src="/static/images/wrong_img.png" alt="wrong"height="21" width="21">{{ mesg }}</h4>
        </div>
        
        {% endfor %}
    </div>
</div>

<div class="mobile-responsive mt-4">
    <table class="table table-bordered bg-white">
      <thead class="thead-dark text-white font-weight-bold text-center">
          <tr>
              <th scope="col">Sno</th>
              <!-- <th scope="col">Admin Access id</th> -->
              <!-- <th scope="col">User id</th> -->
              <th scope="col">Name (Email)</th>
              <th scope="col">Role</th>
              <!-- <th scope="col">Admin Role Id</th> -->
              <!-- <th scope="col">App Type Id</th> -->
              <th scope="col">Access App</th>
              <th scope="col">Action</th>
              
          </tr>
      </thead>
      <tbody id="mail_data" class="text-center">
        {% if get_data : %}
  
        {% for i in get_data %}
 
        <tr>
   
            <td data-label="Sno">{{loop.index }}</td>
            <!-- <td data-label="Admin Access Id">{{ i.admin_access_id or ''}}</td> -->
            <!-- <td data-label="User Id">{{ i.user_id or ''}}</td> -->
            <td data-label="Name">{% if i.full_name and i.admin_email: %}
                                     {{ i.full_name or ''}} ({{ i.admin_email or ''}})
                                  {% elif i.admin_email: %}
                                       ({{i.admin_email}}) 
                                  {% elif i.full_name: %}
                                      {{i.full_name}}/<span class="text-danger font-weight-bold">Not Registered</span>
                                  {% else: %}
                                      <span class="text-danger font-weight-bold">Not Registered</span>
                                  {% endif %}</td>
            <td data-label="Admin Role">{{ i.role or ''}}</td>
            <!-- <td data-label="Admin Role Id">{{ i.admin_role_id or ''}}</td> -->
            <!-- <td data-label="App Type Id">{{ i.app_type_id or ''}}</td> -->
            <td data-label="Access App">{% if i.admin_role_id==2: %}
                                        <a href="#" class="text-success font-weight-bold super_admin" id="super_admin" data-toggle="tooltip" data-placement="bottom" title="You have access for all the application">Full Accessed?</a>
                                        {% else %}
                                        {{ i.app_name or ''}}
                                    {% endif %}</td>
            
            <td data-label="Action">
                {% if i.admin_email:%}
                    <a class="edit_btn" href="{{url_for('admin_access.EditAdmin',society_id=society_id,society_key=society_key)}}?admin_email={{i.admin_email}}"  id="edit" name="edit" title="Edit"><i class="fa fa-edit" title="Edit" ></i> </a>
                    <a class="btn text-danger" href="{{url_for('admin_access.DeleteAdmin',society_id=society_id,society_key=society_key,admin_email=i.admin_email)}}" onclick="return confirm('Are you sure you want to delete this access?');" id="delete" name="delete" title="Delete"><i class="fa-regular fa-trash-can"></i> </a>
                {% endif %}
            </td>
      
        
        </tr>
        {% endfor %}
        {% else : %} 
        <tr>
            <td colspan="9"> <span style="color: red;" >Records does not exist.</span></td>
        </tr>

        {% endif %} 
 
        
       </tbody>
    </table>
</div>

{% endblock %}
{% block script %}
<script>
    $(".super_admin").tooltip();
</script>
{% endblock%}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists