aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
AgeCommit message (Collapse)AuthorFilesLines
2018-11-26Fixed Misc BugsParker Berberian4-5/+9
Some corner cases that cause issues recently came to our attention. Fixes issues in the booking workflow and the Notification system. Change-Id: Ie16118ba1bdbeff86bb41a16dc783337b921d527 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-11-07Merge "Rewrite Notification subsystem"Trevor Bramwell5-1/+109
2018-11-07Rewrite Notification subsystemParker Berberian5-1/+109
In this commit: - delete a lot of really bad and / or unused code - redesign a much simpler Notification model - create and send notifications to the user's inbox on booking start & end - migrations - emails user when booking is ready and when it ends Not in this commit: - Creating notifications from lab messages - warning messages when a booking is about to end - creating "summary" notifications when e.g. a booking has been fulfilled by a lab Change-Id: I69b4dc36c3f2bce76d810106baadeef5a562cc7d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-31Merge "Improved Collaborators UX"Trevor Bramwell1-1/+2
2018-10-31Merge "Fixed Indentation"Trevor Bramwell1-239/+231
2018-10-31Merge "Fix Booking List"Trevor Bramwell1-2/+2
2018-10-29Fixed IndentationParker Berberian1-239/+231
This is a pretty complex html file that we will have to modify soon, so I made sure that every tag is opened and closed at the correct height. The correct height for a tag is 4 spaces more indented than its parent Change-Id: Ie356b61746477f65304f38c019f471e5cae1aa94 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-26Improved Collaborators UXParker Berberian1-1/+2
Some small improvements based on feedback from Trevor. - Changed lable from "users" to "collaborators" to try and be more clear - Do not show your own name in the dropdown by default - You cannot select yourself as a collaborator Change-Id: Ie2e9070232765ed9eabe6657924ed8addaa0165a Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-26Forces hostnames to not be emptyParker Berberian1-0/+1
Previously, when a host was 'added' but not given a hostname, it was excluded from the list of hosts sent to the backend for processing. By explicitly adding each host to the result, we avoid this and force the checking of an empty hostname (which will correctly fail). Change-Id: Ia533bc23baf558a5e297dab629dbf47fb4704d7f Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-24Fix Booking ListParker Berberian1-2/+2
The table that lists all active bookings at /booking/list/ was using booking.user. This doesn't exist anymore, changed to booking.owner Change-Id: I76c8d498f4dbe64d88c4c6f7b5e380559b125e44 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-17Added templateParker Berberian1-0/+18
This template should not have been removed. Change-Id: Ic794ee40f45bd44af6fa976983b1c93660c8bb1c Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-10-15Lab as a Service 2.0Parker Berberian50-330/+6089
See changes here: https://wiki.opnfv.org/display/INF/Pharos+Laas Change-Id: I59ada5f98e70a28d7f8c14eab3239597e236ca26 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2018-03-26Limit User Booking Length and ExtensionsSawyer Bergeron2-2/+19
Jira: PHAROS-363 Bookings can now only be 3 weeks upon creation with a maximum of 2 1 week extensions. Change-Id: I677770de3f62f188d23e60be6d71b42b25bf007e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-02-22Link AUP from dashboardSawyer Bergeron1-1/+5
Jira: PHAROS-361 Link and associated text below booking confirmation button now direct users to Wiki#AUP and inform them that they agree to those policies by continuing. Change-Id: I18953cc71691a03290cbce979fbf500081ca3c10 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-02-19Merge "Provide Interface for Booking Deletion"Parker Berberian3-2/+46
2018-02-19Provide Interface for Booking DeletionSawyer Bergeron3-2/+46
Jira: PHAROS-355 User can now delete their own booking by going to the detail view of their booking and clicking 'delete' Change-Id: I279da364c2a5dfd03b877d1236c610d0fef563bc Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-02-09Use userprofile.email_addr in User ListSawyer Bergeron1-1/+1
Jira: None User List view in dashboard now uses the generally populated userprofile.email_addr field instead of user.email Change-Id: I1585ddf3cde293d33351a2ea036aa0a343fdd8b1 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-01-09Implement Booking Modification InterfaceSawyer Bergeron2-0/+31
Jira: PHAROS-330 Users can change start date if it has not already occurred, and can change end date, purpose, and both installer and scenario. Standard checks apply similar to when initially creating a booking. Change-Id: Ibae7fe91a58bd6e0741db065265c05c3823bdc27 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2018-01-08Merge "Add Dashboard OS Selection Menu on Booking"Jack Morgan3-3/+11
2017-12-13Add Dashboard OS Selection Menu on BookingSawyer Bergeron3-3/+11
JIRA: PHAROS-326 Implement dropdown menu on pod booking page for user to select base OS, as well as associated support in API and pod status/booking status views This patch includes the migration file mentioned by Parker Berbarian Change-Id: I46a7b0e5e7020a89bc8fa0fe53c10bbda14a2e2d Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2017-10-09Add 'staticfiles' Template Tag to Base TemplateTrevor Bramwell1-0/+1
Without this tag the dashboard HTML will fail to render because it doesn't have a reference to the 'static' template tag. Change-Id: Id56d3b460dc848508c8ae549e7781ea876bdc52b Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-10-03Serve the OPNFV Logo LocallyTrevor Bramwell1-1/+1
Because the logo is currently being pulled from an external HTTP site, the site is being listed as insecure. Adding the OPNFV logo to static content should fix the warning and keep the previous error of the logo being moved from happening. Change-Id: I13cf83aa612f5589e304699f808ff7b105611fc4 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-09-22Rename pharos-dashboard and pharos-validatorTrevor Bramwell17-0/+1086
As subdirectories of the pharos-tools repo, there is little need to keep the pharos prefix. Change-Id: Ica3d79411f409df638647300036c0664183c2725 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>