Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "dashboard affected by AC-7 corrected"" #1519

Merged
merged 1 commit into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
234 changes: 127 additions & 107 deletions FusionIIIT/templates/dashboard/modules.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{% load static %}

{% block modules %}
{% comment %}The Modules start here!{% endcomment %}
<div class="stackable doubling ui internally celled grid">
<div class="column">
<div class="ui fluid card" style="padding-top: 12px; padding-bottom: 24px; max-width: 18vw;">
<a class="ui top attached black label">
<span class="ui inverted header">Modules</span>
<i class="setting icon right floated"></i>
<i class="chevron up icon right floated" id="toggleIcon" onclick="toggleContent()"></i>
</a>
{% load static %}

{% block modules %}
{% comment %}The Modules start here!{% endcomment %}
<div class="stackable doubling ui internally celled grid">
<div class="column">
<div class="ui fluid card" style="padding-top: 12px; padding-bottom: 24px; max-width: 18vw;">
<a class="ui top attached black label">
<span class="ui inverted header">Modules</span>
<i class="setting icon right floated"></i>
<i class="chevron up icon right floated" id="toggleIcon" onclick="toggleContent()"></i>
</a>

<div class="content modulesContent">
<div style="display: flex; flex-wrap: wrap;">
{% comment %}A single modules row starts here!{% endcomment %}
<div class="content modulesContent">
<div style="display: flex; flex-wrap: wrap;">
{% comment %}A single modules row starts here!{% endcomment %}

{% comment %}A single modules row ends here!{% endcomment %}
{% comment %}A single modules row ends here!{% endcomment %}

{% comment %}A single modules row starts here!{% endcomment %}

Expand Down Expand Up @@ -46,16 +46,16 @@
<i class="ui book icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Programme And Curriculum </span>
</div>
<div class="row">
<span class="ui sub header centered">Programme And Curriculum </span>
</div>
</a>
</div>
{% endif %}

</div>
</a>
</div>
{% endif %}


{% comment %}A single modules row ends here!{% endcomment %}
{% comment %}A single modules row ends here!{% endcomment %}

{% comment %}A single modules row starts here!{% endcomment %}

Expand All @@ -69,30 +69,30 @@
<i class="ui food icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Central Mess</span>
</div>
<div class="row">
<span class="ui sub header centered">Central Mess</span>
</div>
</div>
</a>
</div>
{% endif %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/visitorhostel">
<div class="ui centered grid">
<div class="row">
<i class="ui hotel icon big"></i>
</div>
</a>
</div>
{% endif %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/visitorhostel">
<div class="ui centered grid">
<div class="row">
<i class="ui hotel icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Visitor's Hostel</span>
</div>
<div class="row">
<span class="ui sub header centered">Visitor's Hostel</span>
</div>
</a>
</div>

{% comment %}A single modules row ends here!{% endcomment %}
</div>
</a>
</div>

{% comment %}A single modules row ends here!{% endcomment %}

{% comment %}A single modules row starts here!{% endcomment %}
{% if request.user.extrainfo.user_type == "student" or request.user.extrainfo.user_type == "faculty" or request.user.extrainfo.user_type == "staff" or "Compounder" %}
Expand Down Expand Up @@ -122,15 +122,15 @@
<i class="ui wpforms icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">File Tracking</span>
</div>
<div class="row">
<span class="ui sub header centered">File Tracking</span>
</div>
</a>
</div>
{% endif %}

{% comment %}A single modules row ends here!{% endcomment %}
</div>
</a>
</div>
{% endif %}

{% comment %}A single modules row ends here!{% endcomment %}

{% comment %}A single modules row starts here!{% endcomment %}

Expand Down Expand Up @@ -180,41 +180,41 @@
<i class="ui bitcoin icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Placement Cell</span>
</div>
<div class="row">
<span class="ui sub header centered">Placement Cell</span>
</div>
</div>
</a>
</div>
{% endif %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label disabled " style="height: 120px; width:100%" href="{% url 'estate_module_home' %}">
<div class="ui centered grid">
<div class="row">
<i class="ui line industry icon big"></i>
</div>
</a>
</div>
{% endif %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label disabled " style="height: 120px; width:100%" href="{% url 'estate_module_home' %}">
<div class="ui centered grid">
<div class="row">
<i class="ui line industry icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Estate Management</span>
</div>
<div class="row">
<span class="ui sub header centered">Estate Management</span>
</div>
</a>
</div>

{% comment %}A single modules row ends here!{% endcomment %}
</div>
</a>
</div>

{% comment %}A single modules row ends here!{% endcomment %}

{% if request.user.extrainfo.user_type != "staff" %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/dep">
<div class="ui centered grid">
<div class="row">
<i class="ui student icon big"></i>
</div>

{% if request.user.extrainfo.user_type != "staff" %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/dep">
<div class="ui centered grid">
<div class="row">
<i class="ui student icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Department Portal</span>
Expand Down Expand Up @@ -242,31 +242,31 @@
{% endif %}
{% comment %}A single modules row ends here!{% endcomment %}

<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label disabled" style="height: 120px; width:100%" href="/counselling">
<div class="ui centered grid">
<div class="row">
<i class="ui edit outline icon big"></i>
</div>

<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label disabled" style="height: 120px; width:100%" href="/counselling">
<div class="ui centered grid">
<div class="row">
<i class="ui edit outline icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Counselling Cell</span>
</div>
<div class="row">
<span class="ui sub header centered">Counselling Cell</span>
</div>
</div>
</a>
</div>
{% if request.user.extrainfo.user_type != "student" %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/leave">
<div class="ui centered grid">
<div class="row">
<i class="ui file icon big"></i>
</div>
</a>
</div>
{% if request.user.extrainfo.user_type != "student" %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/leave">
<div class="ui centered grid">
<div class="row">
<i class="ui file icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Leave Module</span>
Expand Down Expand Up @@ -312,6 +312,26 @@
</div>
</a>
</div>
{% endif %}

{% comment %}A single modules row ends here!{% endcomment %}


{% if request.user.extrainfo.user_type == "faculty" or "acadadmin" == global_var %}
<div style="width: calc(50% - 10px);
margin: 5px;
box-sizing: border-box;">
<a class="ui large label" style="height: 120px; width:100%" href="/dashboard">
<div class="ui centered grid">
<div class="row">
<i class="ui edit outline icon big"></i>
</div>

<div class="row">
<span class="ui sub header centered">Examination </span>
</div>
</div>
</a>
</div>
{% endif %}
{% if request.user.extrainfo.user_type != "staff" or "administrator" == global_var %}
Expand Down
3 changes: 0 additions & 3 deletions FusionIIIT/templates/dashboard/sidenavbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ <h4>Hostel Module</h4>
<a class="item" href="{% url 'filetracking:filetracking' %}">
<h4> File Tracking </h4>
</a>
<a class="item" href="{% url 'hostelmanagement:hostel_view' %}">
<h4>Examination</h4>
</a>
</div>
</div>
</div>
Expand Down
Loading