-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #498 from SaptakS/gsoc2016
Session display added
- Loading branch information
Showing
5 changed files
with
87 additions
and
5 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
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
69 changes: 69 additions & 0 deletions
69
open_event/templates/gentelella/admin/session/display.html
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,69 @@ | ||
{% extends 'gentelella/admin/base.html' %} | ||
{% block body %} | ||
<div class="page-title"> | ||
<div class="title_left"> | ||
<h3>Sessions</h3> | ||
</div> | ||
</div> | ||
|
||
<div class="clearfix"></div> | ||
<div class="row"> | ||
<div class="col-md-12 col-sm-12 col-xs-12"> | ||
<div class="x_panel"> | ||
<button class="btn btn-default" onclick="show_all();">All</button> | ||
<button class="btn btn-default" onclick="show_pending();">Pending</button> | ||
<button class="btn btn-default" onclick="show_accepted();">Accepted</button> | ||
<button class="btn btn-default" onclick="show_rejected();">Rejected</button> | ||
|
||
<div class="x_content"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Title</th> | ||
<th>Description</th> | ||
<th>Abstract</th> | ||
<th>Start Date</th> | ||
<th>End Date</th> | ||
<th>State</th> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for session in sessions %} | ||
<tr class="session {{session.state}}"> | ||
<td>{{session.title}}</td> | ||
<td>{{session.description}}</td> | ||
<td>{{session.abstract}}</td> | ||
<td>{{session.start_time}}</td> | ||
<td>{{session.end_time}}</td> | ||
<td>{{session.state}}</td> | ||
</tr> | ||
{%endfor%} | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
function show_all() { | ||
$('.session').show(); | ||
} | ||
|
||
function show_pending() { | ||
$('.session').hide(); | ||
$('.session.pending').show(); | ||
} | ||
|
||
function show_accepted() { | ||
$('.session').hide(); | ||
$('.session.accepted').show(); | ||
} | ||
|
||
function show_rejected() { | ||
$('.session').hide(); | ||
$('.session.rejected').show(); | ||
} | ||
</script> | ||
{% endblock %} |
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