summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
Commit message (Collapse)AuthorAgeFilesLines
* Add a client to a room using the scopes treeJavier Sánchez Parra2022-08-311-1/+7
| | | | | With this commit users can select a room from the scopes tree, and then add a client to that room.
* Add "Delete Repository"Javier Sánchez Parra2022-07-042-0/+25
| | | | | In "Repositories" view, users select a repository from the list on the left and press "Delete repository".
* Create "Add Repository" form and viewJavier Sánchez Parra2022-07-042-0/+19
| | | | Creates "Add repository" form with the required inputs: name and IP.
* Add Repositories sectionJavier Sánchez Parra2022-07-042-0/+36
| | | | | In Repositories section/view, users can manage task related to repositories. For example: list, add, delete and edit them.
* Move password hashing to the backendJavier Sánchez Parra2022-06-302-20/+2
| | | | | | | | | | | This patch moves login password hashing from the frontend/javascript to the backend/flask. This patch moves password hashing of login and user management forms. Related commits: * c7b0024 ("Add password hashing") * 661254b ("Add 'Add user' to Users section")
* Add color legend of the client statesJavier Sánchez Parra2022-05-171-0/+11
| | | | | Add an explanatory list of the colors used to represent the different client states.
* Add 'Delete user' to Users sectionv0.9.2Javier Sánchez Parra2022-04-272-0/+19
| | | | | Creates "Delete user" form. The user to be deleted is selected from the sidebar in Users section.
* Add 'Edit user' to Users sectionJavier Sánchez Parra2022-04-272-0/+28
| | | | | | Creates "Edit user" form with the following inputs: password, password confirmation, role (administrator or regular), allowed scopes. It does no allow to change/edit the username.
* Add 'Add user' to Users sectionJavier Sánchez Parra2022-04-272-0/+28
| | | | | Creates "Add user" form with the following inputs: username, password, password confirmation, role (administrator or regular), allowed scopes.
* Add Users sectionJavier Sánchez Parra2022-04-272-0/+38
| | | | | In Users section/view, administrator accounts can manage all task related to users. For example: add, delete and edit users.
* Add password hashingJavier Sánchez Parra2022-04-221-1/+9
| | | | | | | | | | | The front-end now hashes passwords before sending them to the back-end. It uses SHA-512. This commit adds a hidden input which sends the password hash to not interfere with browsers' save password functionality. Also change passwords of the template configuration file for their hashed/digested versions.
* Rename "submit" to "submit_btn"Javier Sánchez Parra2022-04-221-1/+1
| | | | | Otherwise, wtforms use "submit" as id of the <input> tag, shadowing javascript function ".submit()".
* Add import clients actionJavier Sánchez Parra2022-04-192-0/+21
| | | | | | | | | | | Add import clients form with required inputs: room and dhcpd.conf. This permits users to rapidly add large amounts of clients to a room using dhcpd.conf's syntax. Users can copy full dhcpd.conf files to the text area and the parser only matches lines with the following format as clients: host dummy {hardware ethernet 12:34:56:78:90:ab; fixed-address 192.168.1.55; }
* Increase toast auto hide delay to 30 secondsJavier Sánchez Parra2022-04-121-1/+1
|
* Rearrange image dropdownJavier Sánchez Parra2022-04-081-4/+4
|
* Add Update image to commandsJavier Sánchez Parra2022-04-082-0/+24
| | | | | | | | Allows updating the image file for an existing image. This action is related to /image/create in ogServer API. If ogServer receives an POST /image/create without the parameter "description", it does not create a new image and only updates.
* Add indeterminate checkboxes to scopes treeJavier Sánchez Parra2022-04-081-0/+1
| | | | | | | Each checkbox may have child checkboxes. If all those children are checked, it be checked. If none are checked, it is unchecked. If some of them are checked, then it’s in an indeterminate state (in this case symbolically meaning “partially” checked).
* Simplify scope identifiersJavier Sánchez Parra2022-04-081-5/+5
| | | | | | | | | | | Old id format example: id_1-1_2-4_3-2 New id format example: scope-1-4-2 It represents the node and its ancestors' position with respect to theirs siblings. The rightmost value is the current node position. Commit f70d90ba32a6 introduces the old format.
* Move toasts messages to the bottom rightJavier Sánchez Parra2022-04-081-2/+2
| | | | Also, increase its duration from 5 to 10 seconds.
* Submit disk form on change of dropdown listJavier Sánchez Parra2022-04-041-5/+1
| | | | Also remove send button as it not necessary anymore.
* Add form for disk selectionJavier Sánchez Parra2022-04-041-2/+7
| | | | | | | | | | Disk selection uses "scopesForm" to submit the change, but setup/show view receives new parameters not provided by this form. Commit 17757baa4727 adds those parameters. This commit gives disk selection its own form with all the required parameters.
* Move setup's disk selectorJavier Sánchez Parra2022-04-041-11/+13
| | | | | Move disk selector from the bottom of the page to the first table, nearby "Partition Table Type" and "Total Disk Size".
* Submit IPs when scopes tree is read onlyJavier Sánchez Parra2022-04-011-1/+2
| | | | | | | | | | Otherwise, users can not switch between actions without going back to the parent view. This makes "scopesForm" work again in all views and not only in scopes.html and commands.html. Commit feed135554543 introduces this regression.
* Fix typo in scopes templateJavier Sánchez Parra2022-04-011-1/+1
| | | | | | Otherwise, scopes' actions do not set the scopes tree read only. Commit feed135554543 introduces this typo.
* Ask for reference when partitioning several clientsJavier Sánchez Parra2022-04-012-1/+27
| | | | | Allow the user to choose a computer as reference to display the partition scheme form.
* Add ogServer uptime to the dashboardJavier Sánchez Parra2022-03-281-0/+8
| | | | | | | ogServer GET /stats returns ogServer uptime in seconds. Transform seconds to days, hours and minutes and print them in the dashboard.
* Check swap size is not zeroJavier Sánchez Parra2022-03-251-0/+6
| | | | If the server do not have swap, show a warning.
* Replace " " with "_" in HTML scopes IDsJavier Sánchez Parra2022-03-251-2/+2
| | | | | | | | | | | | | | | | | | | Otherwise, scopes with whitespaces in their names breaks the javascript code. From https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id: --- Note: Technically, in HTML5, the value for an id attribute may contain any character, except whitespace characters. However, to avoid inadvertent errors, only ASCII letters, digits, '_', and '-' should be used and the value for an id attribute should start with a letter. For example, . has a special meaning in CSS (it acts as a class selector). Unless you are careful to escape it in the CSS, it won't be recognized as part of the value of an id attribute. It is easy to forget to do this, resulting in bugs in your code that could be hard to detect. ---
* Add missing gettext functionsJavier Sánchez Parra2022-03-227-17/+27
| | | | Otherwise, this strings are not translatable.
* Summarize dashboard informationJavier Sánchez Parra2022-03-171-52/+50
| | | | | | | | | | * Rename "ogLives" to "ogLive images". * Move "Number of images" table to take less space. * Show storage data as "Storage size | Used (%) | Available (%)". * Move "Latest images" an "ogLive images" to the bottom.
* Add /stats data to the dashboardJavier Sánchez Parra2022-03-161-7/+164
| | | | Add certain statistics on memory and swap usage, as well as the uptime.
* Add back button to all actionsJavier Sánchez Parra2022-03-1423-0/+37
| | | | Add a back button to facilitate users to return to the previous page.
* Disable scopes tree's checkboxes in action viewsJavier Sánchez Parra2022-03-1022-7/+45
| | | | | Now users can select clients only in scopes and command views, in any other view we set the scopes tree read only.
* Set pills widthJavier Sánchez Parra2022-03-091-1/+1
| | | | Set the same width to all pills.
* Remove "form" from scopes views' headingsJavier Sánchez Parra2022-03-094-4/+4
|
* Set scopes nav buttons as activeJavier Sánchez Parra2022-03-077-9/+20
| | | | When loading any scopes view, its nav button becomes active.
* Group scopes buttons into dropdownsJavier Sánchez Parra2022-03-071-12/+33
| | | | | | Group related actions in the "scopes" section inside a dropdown button. Declutters the panel in which the buttons are displayed.
* Add separator and heading to selected clientsJavier Sánchez Parra2022-03-071-0/+1
|
* Set commands nav buttons as activeJavier Sánchez Parra2022-03-0410-0/+20
| | | | When loading any command view, its nav button becomes active.
* Extend images html in "image details" templateJavier Sánchez Parra2022-03-031-1/+1
| | | | Otherwise, "image details" page lose the images tree and buttons.
* Extend scopes htmlJavier Sánchez Parra2022-03-034-4/+4
| | | | | Otherwise, this actions pages lose the scopes tree and the scopes buttons.
* Extend scopes or commands in client detailsJavier Sánchez Parra2022-03-031-1/+1
| | | | | | Both "Add client" and "Client details" views use client_details.html template. With this commit, "Add client" extends scopes.html and "Client details" extend commands.hmlt.
* Use pill style in confirmation pagesJavier Sánchez Parra2022-03-039-16/+18
| | | | | Draw selected clients from confirmation pages like selected clients from scopes and commands pages.
* Add clients info to session's confirmation pageJavier Sánchez Parra2022-03-031-1/+7
| | | | Show the number of clients and their IPs.
* Extend commands htmlJavier Sánchez Parra2022-03-026-6/+6
| | | | | Otherwise, this actions pages lose the scopes tree and the commands buttons.
* Replace "." with "_" in HTML scopes IDsJavier Sánchez Parra2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | Otherwise, scopes with dots in their names breaks the javascript code. From https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id: --- Note: Technically, in HTML5, the value for an id attribute may contain any character, except whitespace characters. However, to avoid inadvertent errors, only ASCII letters, digits, '_', and '-' should be used and the value for an id attribute should start with a letter. For example, . has a special meaning in CSS (it acts as a class selector). Unless you are careful to escape it in the CSS, it won't be recognized as part of the value of an id attribute. It is easy to forget to do this, resulting in bugs in your code that could be hard to detect. ---
* Limit max number of clients drawn in commandsJavier Sánchez Parra2022-02-241-1/+5
| | | | | Print large number of clients (hundreds) does not make sense, it is unreadable.
* Wrap selected clients listJavier Sánchez Parra2022-02-241-1/+1
| | | | Otherwise, the list overflows the screen when users select many clients.
* Refactor selected clients drawing in commandsJavier Sánchez Parra2022-02-248-35/+22
| | | | Refactor duplicated code as a jinja macro.
* Remove unused code in image creation templateJavier Sánchez Parra2022-02-241-6/+0
| | | | | Remove code to draw selected clients. Image creation template do not use it because only operates one client.