Sindbad~EG File Manager
{% extends "users/layout.html" %} {% block title %}FP{% endblock %} {% set setting = AbstractModel().settings(abs_type,conf_id) %} {% block content %}
<div class="p-3 rounded" style="background-color: white;">
<div class="row">
<div class="col form-group">
<h2 class="h1_v1">View all {{ setting[0][0].title|lower }} associated with you</h2>
</div>
</div>
<div class="container">
<div class="col form-group" style="text-align: center;">
<a class="btn btn-primary" {% if setting[2][0].setting_value !="" %} href="{{ setting[2][0].setting_value }}" {% else %} hidden {% endif %} target="_blank">Click to view FP guidelines</a>
<a href="{{url_for('main.New',abs_type=abs_type,conf_id=conf_id,conf_key=conf_key)}}" {% if data2.status | int != 1 %} hidden {% endif %}class="btn btn-primary m-2">Click here to submit new {{setting[0][0].title|lower}}</a>
{% if data2.status == 0 %} {% endif %}
</div>
<div class="row">
<div class="col form-group">
<span class="h3 font-weight-bold">My {{setting[0][0].title|lower}}</span>
<!-- <span>(Max can submit : {{setting[0][0].setting_value}})</span> -->
</div>
</div>
{% for i in range(0,lent) %}
<div class="card p-3">
<div class="row">
{% if (data[i].abs_status_id != 0) %}
<div class="col form-group">
<div class="row">
<div class="col form-group">
<span class="h5 {% if abs_type_data and abs_type_data['show_result'] and int(abs_type_data['show_result']) == 1 and data[i].abs_status_id == 2 %} text-success {% else %}text-danger{% endif %}">{{data[i].abs_type}}{{data[i].abs_no}} - {{data[i].title}}</span>
</div>
<div class="col form-group">
<a href="{{url_for('main.View',abs_id=Cryptography.encrypt(data[i].abs_id),abs_type=abs_type,conf_id=conf_id,conf_key=conf_key)}}" class="btn btn-primary float-right">View</a>
</div>
</div>
<div class="row">
<div class="col form-group">
<strong>Presenting Author : </strong>{{ data[i].present_name or '' }}
</div>
</div>
<div class="row">
<div class="col form-group">
<strong>Co - Author : </strong>{{data[i].name or ''}}
</div>
</div>
{% if abs_type_data and abs_type_data["show_result"] and int(abs_type_data["show_result"]) == 1 %}
{% if data[i].abs_status_id == 2 %}
<div class="row">
<div class="col">
<h4><span class="font-weight-bold">Status</span> : <span class="badge badge-success">Selected</span></h4>
</div>
</div>
{% else %}
<div class="row">
<div class="col">
<h4><span class="font-weight-bold">Status</span> : <span class="badge badge-danger">Not Selected</span></h4>
</div>
</div>
{% endif %}{% endif %}
</div>
{% else %}
<div class="col form-group">
<div class="row">
<div class="col form-group">
<span class="h5">{{data[i].title or 'Incomplete'}}</span>
</div>
<div class="col form-group">
<input type="button" name="step1btn" id="step1btn" class="btn btn-sm btn-danger float-right" value="Incomplete,click to complete"
onclick="location.href='{{url_for('main.main_layout',abs_type=abs_type,abs_id=Cryptography.encrypt(data[i].abs_id),conf_id=conf_id,conf_key=conf_key)}}'" {% if data2.status == 2 %} disabled {% endif %}>
</div>
</div>
<div class="row">
<div class="col form-group">
<strong>Presenting Author : </strong>{{ data[i].present_name or '' }}
</div>
</div>
<div class="row">
<div class="col form-group">
<strong>Co - Author : </strong>{{data[i].name or ''}}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
<div class="card p-2 my-3 ">
<div class="row">
<div class="col form-group mt-4">
<span class="h3 font-weight-bold ">{{setting[0][0].title}} - participation as co-author in other {{setting[0][0].title|lower}}s</span>
</div>
</div>
{% if data1 != {} %}
{% for i in data1 %}
{% if i.abs_status_id > 0 %}
<div class="card p-4 my-3 ">
<div class="row">
<div class="col form-group">
<h5 class="{% if abs_type_data and abs_type_data['show_result'] and int(abs_type_data['show_result']) == 1 and i.abs_status_id == 2 %} text-success {% else %}text-danger{% endif %}">{{i.abs_type}}{{i.abs_no or ''}} - {{i.title}}</h5>
<div class="row">
<div class="col">
<label class="font-weight-bold">Chief Author : </label>{{i.full_name}}
</div>
</div>
<div class="row">
<div class="col"><label class="font-weight-bold">Role : </label>{{i.role or ''}}</div>
</div>
<div class="row">
<div class="col">
<h4>
{% if abs_type_data and abs_type_data["show_result"] and int(abs_type_data["show_result"]) == 1%}
<strong>Status : </strong>
{% if i.abs_status_id == 2 %}
<span class="badge badge-success">Selected</span>
{% else %}
<span class="badge badge-danger">Not Selected</span>
{% endif %}
{% endif %}
</h4>
</div>
</div>
</div>
<div class="col">
<a href="{{url_for('main.View',abs_id=Cryptography.encrypt(i.abs_id),abs_type=abs_type,conf_id=conf_id,conf_key=conf_key)}}" class="btn btn-primary float-right">View</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="row">
<a href="{{url_for('DB.Dashboard',conf_id=conf_id,conf_key=conf_key)}}" class="btn btn-primary">Go back to dashboard</a>
</div>
{% endif %}
</div>
</div>
{% endblock %}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists