-
Notifications
You must be signed in to change notification settings - Fork 4
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 #25 from jasonyates/calendar
Adding maintenance calendar
- Loading branch information
Showing
7 changed files
with
192 additions
and
14 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
36 changes: 36 additions & 0 deletions
36
netbox_circuitmaintenance/templates/netbox_circuitmaintenance/calendar.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,36 @@ | ||
{% extends 'generic/_base.html' %} | ||
{% load buttons %} | ||
{% load render_table from django_tables2 %} | ||
{% load static %} | ||
{% load perms %} | ||
{% load helpers %} | ||
|
||
{% block title %}Circuit Maintenance Schedule{% endblock %} | ||
|
||
{% block controls %} | ||
<div class="controls"> | ||
<div class="control-group"> | ||
<a id="btnPrevMonth" class="btn btn-info" href="{{basepath}}?month={{prev_month}}&year={{prev_year}}"> | ||
<i class="mdi mdi-arrow-left"></i> | ||
Previous Month | ||
</a> | ||
{% if month != this_month or year != this_year%} | ||
<a id="btnPrevMonth" class="btn btn-info" href="{{basepath}}?month={{this_month}}&year={{this_year}}"> | ||
Today | ||
</a> | ||
{% endif %} | ||
<a id="btnNextMonth" class="btn btn-info" href="{{basepath}}?month={{next_month}}&year={{next_year}}"> | ||
<i class="mdi mdi-arrow-right"></i> | ||
Next Month | ||
</a> | ||
</div> | ||
</div> | ||
{% endblock controls %} | ||
|
||
{% block content %} | ||
{{ calendar }} | ||
{% endblock content %} | ||
|
||
{% block javascript %} | ||
|
||
{% endblock javascript %} |
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