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/super_admin.html

{% extends "layout.html" %}
{% block title %}Admin Access{% endblock %}
{% block header %}Admin Access Index{% endblock %}
{% block content %}
<div class="container">
    <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="row">
        <div class="col-md-8">
            
        </div>
        
        <div class="col-md-4">
            <!-- <button class="btn btn-success" id="super_admin" >Super Admin</button> -->
        </div>
        
    </div><br>
    <div class="row">
        <div class="col-md-8">
            <label class="font-weight-bold h3">Super Admin</label>
        </div>
        <div class="col-md-4">
            <a class="add float-right btn btn-primary form-group" href="{{url_for('admin_access.EditSuperAdmin')}}"  id="add" name="add"><i class="fa fa-plus" title="Add Super Admin" ></i>Add Super Admin</a>
        </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">Name (Email)</th>
                  <th scope="col">Role</th>
                  <th scope="col">Access App</th>
                  <th scope="col">Society</th>
                  <th scope="col">Action</th>
              </tr>
          </thead>
          <tbody id="mail_data" class="text-center">
            {% if get_super_admin : %}
            {% for i in get_super_admin %}
            <tr>
       
                <td data-label="Sno">{{loop.index }}</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="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 Access</a>
                                            {% else %}
                                            {{ i.app_name or ''}}
                                        {% endif %}</td>
                <td data-label="Society">{{i.society_name}}</td>
                <td data-label="Action">
                    {% if i.admin_email:%}
                        <a class="edit_btn" href="{{url_for('admin_access.EditSuperAdmin')}}?admin_access_id={{i.admin_access_id}}"  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.DeleteSuperAdmin',admin_access_id=i.admin_access_id)}}" 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>
    
    <div class="row">
        <input type="hidden" name="html_data" id="html_data" value="{{html_data or ''}}">
        <div class="col-md-12 form-group" id="user_access_content">
            
        </div>
    </div>
</div><br>

{% endblock %}
{% block script %}
<script> 
</script>
{% endblock %}

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