summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
Commit message (Collapse)AuthorAgeFilesLines
* Add example image creation WTForms validatorJose M. Guisado2021-02-161-1/+3
| | | | | | | | | | | Adds in a declarative way the validation of the image name form control when creating a partition image. This commit serves as an example of adding a predefined validator of the WTForms module. Custom validator may be added by creating a given function and appending it to the list of validators. See https://wtforms.readthedocs.io/en/2.3.x/validators/#custom-validators
* Add UNICAST-DIRECT method to image restoreJose M. Guisado2021-02-101-1/+2
| | | | | | | | | | | | Previously the only method (in the form select) was "UNICAST". This patch enables specifying a correct parameter for the underlying script to fetch the image to be restored. UNICAST-DIRECT makes the administrator transfer the image through the network. UNICAST-CACHE indicates the taget pc to search for the image in its cache partition. Also redirects to the /scopes when ogserver responds with 200 OK.
* Add software actionJose M. Guisado2020-10-291-0/+6
| | | | | | | | This action lists every piece of software installed in an OS from a client. This action can handle listing the software from the DB as well as updating that DB with the latest client information.
* Add image create actionRoberto Hueso Gómez2020-10-291-0/+7
| | | | | This action handles the creation of the image in the DB as well as the '.img' file.
* Add image restore actionRoberto Hueso Gómez2020-10-231-0/+8
| | | | | This action provides the image restoring functionality on a specific client.
* Add session actionRoberto Hueso Gómez2020-10-221-1/+6
| | | | | This action provides the functionality to run one of the installed OSs in a client.
* Add client hardware actionRoberto Hueso Gómez2020-10-211-0/+4
| | | | This action lists all the hardware items in a client.
* Add client details actionRoberto Hueso Gómez2020-09-281-1/+24
| | | | | This action is used to visualize the specific details of a client, such as its IP, Name, MAC, etc.
* Add partitions setup formsRoberto Hueso Gómez2020-09-141-1/+20
| | | | | This provides a menu to setup the internal partitions setup of each machine. Delete partitions is still just a placeholder.
* Add WoL actionRoberto Hueso Gómez2020-09-041-0/+10
This action can be applied on one or multiple scopes. This implementation use Flask-WTF as a way to build and valdiate forms. As a side effect, this adds CSRF protection to all forms.