aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/dashboard
AgeCommit message (Collapse)AuthorFilesLines
2019-07-08Merge "Change dropdown and selection list"Parker Berberian1-1/+1
2019-07-08Redesign multiple select filter widgetBrandon Lo1-10/+17
Removed the right border on the lab selection box so that it looks better on mobile, replaced with a rounded border around the content. Also fixed the button click bug where it wouldn't filter the images list. It now properly processes the selected host and disables images accordingly. Change-Id: I1dca1962a81e379f6ae3f7c006d6033bdd9f6ad8 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-07-02Unify Form SubmissionParker Berberian1-1/+2
Creates a single way to do form submission with hooks to run callbacks. Change-Id: I470ab56219c28c35fe3236b30a0ac65e29236af6 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-07-02Change dropdown and selection listBrandon Lo1-1/+1
Fix selection list text from overflowing Add ellipses to overflowing text Make dropdown z-index 2 Increase size of dropdown Change delete button to simple X Add title on hover to result entries Change-Id: Ic274586e6bdf6e188efd147eb442660a99878e97 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-06-28Replace and change CSSBrandon Lo9-555/+221
Fix animation bugs Fix layout issues Replace custom CSS to bootstrap classes Remove unused files Change code to use es6 syntax Add dropdown styles Change-Id: Ie2ed31fa2e6763cf30d3b19e4bf9379019cbb0f5 Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-06-26Removed Double onclickParker Berberian1-2/+3
Giving the parent div and the button the same onclick meant the function was being executed twice. Change-Id: I51d071ba1cf88d3d45dbdbe9372759c790b087de Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-25Make filter field more aesthetically pleasingSawyer Bergeron1-1/+19
Change-Id: I41fbf0d7f6232d102861d9dcedd762e12e8fdd0a Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-06-25Refactor searchable widgetSawyer Bergeron1-315/+35
Change-Id: I0d342a3f31769fe71059d08653002454851b61cc Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-06-25Move JS to external fileParker Berberian1-263/+11
This is mostly a proof of concept to move all JS to external files to pave the way for future re-architecting Change-Id: I3b6f00bff7325b85a75d37f554892fa5283d9f4b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-21Merge "Redesigns Multiple Select Filter Widget"Parker Berberian1-207/+146
2019-06-21Add bootstrap 4 supportBrandon Lo7-133/+172
Remove bootstrap 3 module and css/js Recreated almost everything in bootstrap 4 Change workflow layout to support bootstrap 4 and flex Add rotating glyphs for dropdowns Change breadcrumbs to use pagination and its styling Change account dropdown to use full width buttons Add version sock to bootstrap4 Fix indenting in base.html Change comments in base.html Remove dead code in booking_list Revert changes in mulitple_select_filter_widget Remove dead code, whitespace in inbox Fix formatting, dead code in viewport-base Remove unused media tag Make only .rotate classes rotate on dropdown click Attach back and next to breadcrumbs Resize breadcrumbs to be same width Disable pointer cursor on breadcrumb hover Change account page to account dropdown on left Change-Id: I6c5423db6f0f6f7f0b12e55347eddcc42b56e52b Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
2019-06-21Redesigns Multiple Select Filter WidgetParker Berberian1-207/+146
Makes the filter widget work as it should so that it can be integrated with the rest of the Django form handling nicely. Also fixes a lot of ugly code tangential to the widget. Change-Id: Ib92db8e584f3d2162c6c43a18b75a57273bb18f5 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-06-18Fix cross platform issues with SSMFSawyer Bergeron1-9/+21
Change-Id: Iecaabd1175ffd35daa938561e374244139f38117 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-17Fix chrome grid-flex nesting issueSawyer Bergeron2-13/+6
Change-Id: I92a38c6f5fbf23c7f32c233c47b5c1230a1933d7 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-14fix PHAROS-436 (overlapping metadata)Sawyer Bergeron1-2/+6
Change-Id: I47ee5d32472779a44a53fa3e2c04ef4411c59581 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-14Refactor usages of search fieldSawyer Bergeron2-47/+100
Change-Id: I5af3d8d5db204fc9eb95a1ee4967cce0caf9b75c Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-10Fix searchable select field scalingSawyer Bergeron1-33/+92
Change-Id: Id6fb052b2158ee0db30fd11b520194d3825b677f Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-07Fix multiple select regression from 67915Sawyer Bergeron1-1/+1
Change-Id: Iff9574f6a7a95d52785026194779ad4fbd71e003 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-06-05Merge "Cleans up some HTML"Parker Berberian1-28/+24
2019-05-31Refactor selector step logicSawyer Bergeron2-41/+100
Change-Id: I61e361e63da7453b2eee0e0c162a6f4e48460128 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-05-23Cleans up some HTMLParker Berberian1-28/+24
Makes things nicer as we build out Selenium tests. Change-Id: I0658bdd01889ea8acb5c66d890baa8c5907430cd Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-05-22Reduce shadow severitySawyer Bergeron1-9/+5
Shadows were somewhat overdone in some areas of the ui, they are now less so Change-Id: Ida04a5580be8493f37ade2554983149d05d91bcc Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-04-17Fixes the idf and pdf templates so that we can deploy opnfvParker Berberian1-16/+10
Change-Id: I0091629f8f0af423210b2e81210d65239e9662b4 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-04-01Removed bad line in Lab detail pageParker Berberian1-1/+0
profile.labs templates to "account.Lab.None" which is ugly and makes no sense. Change-Id: I835718e72dad57cecf2c83229922046df9f1a312 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-28Add host detail viewSawyer Bergeron1-0/+2
Change-Id: Ie385fe3f2fbe3b178f00928914d47a34b181d05e Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-03-20Merge "Make host entries prettier on Define Hardware step"Parker Berberian1-5/+47
2019-03-20Make host entries prettier on Define Hardware stepSawyer Bergeron1-5/+47
Change-Id: I492ffd5a3cfcb19902a91f587c8acfdb1827be4d Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
2019-03-20Merge "Cleanup Quick Booking Page"Parker Berberian1-2/+6
2019-03-20Cleanup Quick Booking PageParker Berberian1-2/+6
Removed "filter_field" label and moved opnfv options into thier own box Change-Id: I7d2ee1f39a94de0a6638c96a3469f6f4c27e2196 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-20Merge "Update Lab List View"Parker Berberian1-82/+21
2019-03-18Update Lab List ViewParker Berberian1-82/+21
Makes the list of labs detail cards, similar to how we list a user's bookings Change-Id: I4c1594d990bc460b423d38b3ada62f9a12e22614 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-18Remove Unneeded fieldParker Berberian1-1/+0
Removed field that referenced other labs because it is always None Change-Id: I6bfce388844a8c5a7d60d227f51f10e628fc626d Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-03-01Enhance PDF/IDF SupportParker Berberian2-89/+138
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-18Make landing page less sparseSawyer Bergeron1-15/+56
Change-Id: If661574fd0c62e208651507ccff844cf6f14e914 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-18Merge "Add Quick-Booking Workflow"Parker Berberian3-40/+41
2019-01-18Add Quick-Booking WorkflowSawyer Bergeron3-40/+41
Users can now quickly provision a single-host pod without having to configure unecessary networking. This is intended to be analogous to the workflow used during LaaS 1.0, and to speed up the process of creating a booking for users who do not need more than a single host (for virtual deployments) Change-Id: Ia19cea9a42bbb1df57aad05af8f8ea821395664d Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-18Merge "Fix Multiple Select Filter Widget"Parker Berberian1-0/+1
2019-01-16Fix Multiple Select Filter WidgetParker Berberian1-0/+1
Fixed a bug in the widget that allowed multiple objects to be selected when only one was allowed. Change-Id: I623a041fa82a2f7ee178df782d21d100617eac3b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-04Landing page now links to LaaS 2.0 wiki entrySawyer Bergeron1-2/+2
Change-Id: I01dd7f671a21c9b9f06dede341d6ddf410f0e776 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-04Fix landing page directions for not-logged-in usersSawyer Bergeron1-3/+7
Users will see a more informative landing page that directs them to log in if they have not yet done so, rather than displaying actions they can not yet take and having a required login get triggered later Change-Id: I9812367930665614933551f780f4c6726ff3049c Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-03Merge "Changed Button style class to btn-primary"Parker Berberian2-9/+7
2019-01-03Changed Button style class to btn-primaryParker Berberian2-9/+7
btn-primary has a handful of advantages over btn-default, including consistency across browsers and correctly styling non-button html tags p.s. vim is best Change-Id: I6e55a75a9fd48d64496fd83f43a7856af0c04cc0 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
2019-01-03Alert users that ssh key is requiredSawyer Bergeron1-0/+5
Any users that have not uploaded an ssh key will see a message on the landing page that they need to upload one. Message is not seen by people who have already uploaded a key Change-Id: I01667e161521d801090173d47815abbeff094907 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2019-01-03Implement Segmented WorkflowsSawyer Bergeron1-0/+6
A major source of bugs has been how we've approached inlining workflows. We no longer inline them as of this commit, and instead use a stack structure. This commits the result of workflows to the database before other workflows try to read them, so we don't have to maintain a code path for when something is or isn't committed to db. This patchset allows for workflows to pass limited information to preset selections Change-Id: I3d040c7f3024c7420017ae4ec66a23219303dcb6 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
2018-11-28Removed Vanilla Form SubmissionParker Berberian1-6/+0
On google chrome, using vanilla html forms, eg: document.getElementById("Form_id").submit(); does not properly set the CSRF header from the cookies. This results in 403 unauthorized errors in chrome when doing certain things. This is possibly an issue to do with how chrome handles iframes differently from firefox. To fix, we replaced basic forms with serialized XMLHttpRequests, which are more common in this codebase anyway. Change-Id: I93e92cd326c8bba47408b66a95d9d5d806c154f6 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-15Lab as a Service 2.0Parker Berberian16-235/+1329
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>
2017-09-22Rename pharos-dashboard and pharos-validatorTrevor Bramwell8-0/+586
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>