forked from pclubuiet/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
from .models import * | ||
|
||
admin.site.register(Resource) | ||
admin.site.register(Events) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{% extends 'base.html' %} | ||
{% block styles %} | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter|Josefin+Slab"> | ||
{%endblock%} | ||
{% block content %} | ||
<div class="container-fluid"> | ||
|
||
</div> | ||
<ul id = "myTab" class = "nav nav-tabs"> | ||
<li class = "active"> | ||
<a href = "#upcoming-events" data-toggle = "tab"> | ||
Upcoming Events | ||
</a> | ||
</li> | ||
|
||
<li><a href = "#past-events" data-toggle = "tab">Past Events</a></li> | ||
|
||
|
||
</li> | ||
|
||
</ul> | ||
|
||
<div id = "myTabContent" class = "tab-content"> | ||
|
||
<div class = "tab-pane fade in active" id = "upcoming-events"> | ||
<br> | ||
<div class="card-columns" style="color: black;"> | ||
{%if events %} | ||
{% for event in events %} | ||
<div class="card" style="width: 90%; height: 50rem; color: black;"> | ||
<img class="card-img-top" height="242" src="{{event.image.url}}" alt="Card image cap"> | ||
<div class="card-body"> | ||
<br> | ||
<h4 class="card-title" style="font-family: Bitter;">{{event.title}}</h4> | ||
<p class="card-text" style="font-family: Josefin Slab; font-size: 20px;">{{event.brief}}</p> | ||
<a href="{{event.url}}" class="btn btn-primary">Know More</a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
<h1>No events Yet </h1> | ||
{%endif%} | ||
|
||
|
||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class = "tab-pane fade" id = "past-events"> | ||
|
||
|
||
<div class="card-columns" style="color: black;"> | ||
<h1>No events yet</h1> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |