diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-09-22 11:48:38 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-09-22 11:48:38 -0700 |
commit | aeb2791f4d3a5e23090e56c330436205a61629d7 (patch) | |
tree | 7b4918aba2421f2dc8cdac72f134e74acec92bee /tools/pharos-dashboard/src/templates/booking | |
parent | 783a439ec2bd23ad969ffe7a3c6b7277f7a565c7 (diff) |
Remove 'tools' Directory
All tools (and history) have been moved to the pharos-tools repository:
https://git.opnfv.org/pharos-tools/
Change-Id: I84fa9b6ebd9b27f42d41f2722eb1221ec39a8c94
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'tools/pharos-dashboard/src/templates/booking')
4 files changed, 0 insertions, 214 deletions
diff --git a/tools/pharos-dashboard/src/templates/booking/booking_calendar.html b/tools/pharos-dashboard/src/templates/booking/booking_calendar.html deleted file mode 100644 index 4644e855..00000000 --- a/tools/pharos-dashboard/src/templates/booking/booking_calendar.html +++ /dev/null @@ -1,103 +0,0 @@ -{% extends "base.html" %} -{% load staticfiles %} - -{% load bootstrap3 %} - -{% block extrahead %} - <link href="{% static "bower_components/fullcalendar/dist/fullcalendar.css" %}" - rel='stylesheet'/> - <link href="{% static "bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" %}" - rel='stylesheet'/> -{% endblock extrahead %} - -{% block content %} - <div class="col-lg-8"> - <div class="container-fluid"> - <div class="panel panel-default"> - <div class="panel-heading"> - <i class="fa fa-calendar fa-fw"></i>Calendar - </div> - <div class="panel-body"> - <div id='calendar'> - </div> - </div> - <!-- /.panel-body --> - </div> - <!-- /.panel --> - </div> - </div> - - <div class="col-lg-4"> - <div class="panel panel-default"> - <div class="panel-heading"> - <i class="fa fa-edit fa-fw"></i>Booking - </div> - <div class="panel-body"> - {% if user.is_authenticated %} - <div id="booking_form_div"> - {% bootstrap_form_errors form type='non_fields' %} - <form method="post" action="" class="form" id="bookingform"> - {% csrf_token %} - - <div class='input-group' id='starttimepicker'> - {% bootstrap_field form.start addon_after='<span class="glyphicon glyphicon-calendar"></span>' %} - </div> - <div class='input-group' id='endtimepicker'> - {% bootstrap_field form.end addon_after='<span class="glyphicon glyphicon-calendar"></span>' %} - </div> - {% bootstrap_field form.purpose %} - {% bootstrap_field form.installer %} - {% bootstrap_field form.scenario %} - {% buttons %} - <button type="submit" class="btn btn btn-success"> - Book - </button> - {% endbuttons %} - </form> - </div> - {% else %} - <p>Please - <a href="{% url 'account:login' %}"> - login with Jira</a> - to book this Pod</p> - {% endif %} - </div> - </div> - </div> - - <div id="booking_detail_modal" class="modal fade" role="dialog"> - <div class="modal-dialog"> - - <!-- Modal content--> - <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal">×</button> - <h4 class="modal-title">Booking Detail</h4> - </div> - <div class="modal-body" id="booking_detail_content"> - </div> - <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal">Close - </button> - </div> - </div> - - </div> - </div> -{% endblock content %} - -{% block extrajs %} - <script type="text/javascript"> - var bookings_url = "{% url 'booking:bookings_json' resource_id=resource.id %}"; - var booking_detail_prefix = "{% url 'booking:detail_prefix' %}"; - var user_timezone = "{{ request.user.userprofile.timezone }}" - </script> - - <script src={% static "bower_components/moment/moment.js" %}></script> - <script src={% static "bower_components/fullcalendar/dist/fullcalendar.js" %}></script> - <script type="text/javascript" - src={% static "bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js" %}></script> - <script src={% static "js/fullcalendar-options.js" %}></script> - <script src={% static "js/datetimepicker-options.js" %}></script> - <script src={% static "js/booking-calendar.js" %}></script> -{% endblock extrajs %}
\ No newline at end of file diff --git a/tools/pharos-dashboard/src/templates/booking/booking_detail.html b/tools/pharos-dashboard/src/templates/booking/booking_detail.html deleted file mode 100644 index 4b016b29..00000000 --- a/tools/pharos-dashboard/src/templates/booking/booking_detail.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load jira_filters %} - -<p> - <b>Resource: </b> - <a href="{{ booking.resource.url }}"> - {{ booking.resource.name }} - </a> -</p> -<p> - <b>User: </b> {{ booking.user.username }} -</p> -<p> - <b>Start: </b> {{ booking.start }} -</p> -<p> - <b>End: </b> {{ booking.end }} -</p> -<p> - <b>Purpose: </b> {{ booking.purpose }} -</p> -<p> - <b>Installer: </b> {{ booking.installer }} -</p> -<p> - <b>Scenario: </b> {{ booking.scenario }} -</p>
\ No newline at end of file diff --git a/tools/pharos-dashboard/src/templates/booking/booking_list.html b/tools/pharos-dashboard/src/templates/booking/booking_list.html deleted file mode 100644 index ccdc46d7..00000000 --- a/tools/pharos-dashboard/src/templates/booking/booking_list.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "base.html" %} -{% load staticfiles %} - -{% block extrahead %} - <!-- DataTables CSS --> - <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}" - rel="stylesheet"> - - <!-- DataTables Responsive CSS --> - <link href="{% static "bower_components/datatables-responsive/css/dataTables.responsive.css" %}" - rel="stylesheet"> -{% endblock extrahead %} - -{% block content %} - <div class="row"> - <div class="panel-body"> - <div class="dataTables_wrapper"> - <table class="table table-striped table-bordered table-hover" id="table" - cellspacing="0" - width="100%"> - {% include "booking/booking_table.html" %} - </table> - </div> - <!-- /.table-responsive --> - <!-- /.panel-body --> - <!-- /.panel --> - </div> - <!-- /.col-lg-12 --> - </div> -{% endblock content %} - -{% block extrajs %} - <!-- DataTables JavaScript --> - <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}" - rel="stylesheet"> - - - <script src={% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}></script> - <script src={% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}></script> - - <script type="text/javascript"> - $(document).ready(function () { - $('#table').DataTable({ - scrollX: true, - }); - }); - </script> -{% endblock extrajs %} diff --git a/tools/pharos-dashboard/src/templates/booking/booking_table.html b/tools/pharos-dashboard/src/templates/booking/booking_table.html deleted file mode 100644 index 655b0131..00000000 --- a/tools/pharos-dashboard/src/templates/booking/booking_table.html +++ /dev/null @@ -1,37 +0,0 @@ -{% load jira_filters %} - - -<thead> -<tr> - <th>User</th> - <th>Purpose</th> - <th>Start</th> - <th>End</th> - <th>Installer</th> - <th>Scenario</th> -</tr> -</thead> -<tbody> -{% for booking in bookings %} - <tr> - <td> - {{ booking.user.username }} - </td> - <td> - {{ booking.purpose }} - </td> - <td> - {{ booking.start }} - </td> - <td> - {{ booking.end }} - </td> - <td> - {{ booking.installer }} - </td> - <td> - {{ booking.scenario }} - </td> - </tr> -{% endfor %} -</tbody>
\ No newline at end of file |