summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
Commit message (Collapse)AuthorAgeFilesLines
* templates: add image name to title in image/configAlejandro Sirgo Rica2024-09-041-1/+1
| | | | Add image name to the title in the view image/config.
* ogcp: add server ip configurationAlejandro Sirgo Rica2024-09-031-0/+69
| | | | | | | | | | Enable server view in the main toolbar. Hide Add server and Delete server buttons. Add Update server button. Add server/update view to edit the server addresses.
* templates: fix ip card list spacingAlejandro Sirgo Rica2024-09-034-21/+13
| | | | | Remove unwanted witespace caused by tabs and spaces. Add margin to the ip card style to define an explicit spacing.
* ogcp: add support for multi-disk partition and formatAlejandro Sirgo Rica2024-09-023-250/+47
| | | | | | | | | | | | | | | | | | Add support for selecting different disks in the disk inspector. Add disk_inspector.html as a template to show the disk contents of a client. The view can define the variable readonly_disk_inspector to make the view non editable. Use disk_inspector.html in the following views: - client details - partition and format Update code to obtain the partitions of a client to better fit the requirements of disk_inspector.html Remove code to setup the SetupForm as the contents of the disks are now dynamically loaded through javascript.
* templates: use Fetch image as text for the Cache image buttonAlejandro Sirgo Rica2024-09-021-1/+1
| | | | | Use "Fetch image" as text for the button to access the view where the user selects images to add to cache.
* ogcp: add support for multi-ip repositoriesAlejandro Sirgo Rica2024-08-304-16/+47
| | | | | | | | | | | | Add support for the new API REST for repository management where the address is a list of ips instead of a single string. Add dynamic address creation in /action/repo/update and /action/repo/add forms through delete and add buttons in the form. Update /image/restore and /cache/fetch to use repository_id. Add additional repository form validations.
* ogcp: add disk restrictions in partition and formatAlejandro Sirgo Rica2024-08-221-1/+158
| | | | | | | | | | | | Use common disk space across all the selected clients. Show dynamic disk partition graph in the partition view. Limit partition sizes dynamically in the form. Move js code to handle the addition and removal of partitions into the html file to debloat ogcp.js and keep the functions local to the only file they manipulate.
* ogcp: Add /action/cache/fetch endpointAlejandro Sirgo Rica2024-08-091-0/+27
| | | | Add view to request the download of images into the client's cache.
* views: enable multi-image deletionAlejandro Sirgo Rica2024-08-061-1/+2
| | | | Allow the deletion of multiple images in image/delete.
* templates: make client details template more compactAlejandro Sirgo Rica2024-07-251-56/+11
| | | | | Make the form template update automatically after form definition modifications. Use a loop to render the for fields.
* ogcp: add image restrict functionalityAlejandro Sirgo Rica2024-07-252-4/+42
| | | | | | | | | | | Add center scope restriction using /image/restrict. Add view in Images to update scope permissions. Disable images in Commands for image update and restore if the client belongs to a disabled center. Consolidate template code to render scope selection checkboxes.
* ogcp: show oglive client groups by ipAlejandro Sirgo Rica2024-07-171-2/+2
| | | | | Use the same visualization as the other parts of the web in the table that groups clients by ogLive.
* ogcp: show cache contents in client detailsAlejandro Sirgo Rica2024-07-162-145/+6
| | | | | | Show cache contents in client details for a more complete view of the client's state. Move the cache inspector code to its own template for reusability.
* templates: hide part table in client details with no partitionsAlejandro Sirgo Rica2024-07-151-0/+2
| | | | | Remove <table> with partition information in client details form when the selected client has no partition configuration.
* templates: make ClientDetailsForm render more compactAlejandro Sirgo Rica2024-07-151-4/+68
| | | | | | | | Make the client form more compact so the user does not require to scroll to view all the information. Place each label and field in the same row of the form layout. Disable the Maintenance and Remote fields as they have not actual functionality.
* ogcp: add checksum to images in Manage cacheAlejandro Sirgo Rica2024-07-121-0/+1
| | | | | Ease detection of potential problems with images in cache. Show checksum under each image in the form.
* templates: force OS selection in Boot OS form1.1.3-24Alejandro Sirgo Rica2024-07-091-1/+1
| | | | | | Prevent backtrace when not OS is selected before the form submit. Add 'required' attribute to the <input> elements of each OS option in the Boot OS form.
* ogcp: select images of selected partition in image/updateAlejandro Sirgo Rica2024-07-091-5/+38
| | | | | | | | | | | Select the image field value containing the restored image of the partition selected by the user. Create a dictionary where the key is the value= of the partition field and the value is the id of the image restored in the partition. Add each dictionary entry only only if the corresponding image exists in the repository. Pass the dictionary to the HTML template and convert it to JS.
* templates: preserve formatting in script outputAlejandro Sirgo Rica2024-07-011-1/+1
| | | | | Use <pre> instead of <samp> to display command output, as <pre> preserves the new lines and the format of its inner text.
* templates: improve client list in cache and boot os viewsAlejandro Sirgo Rica2024-06-282-2/+10
| | | | Show client IPs inside div components with a custom "card" styling.
* templates: replace start session with boot OSAlejandro Sirgo Rica2024-06-281-1/+1
| | | | | Update the header in the BootOS view to better fit the purpose of the operation.
* templates: add vertical padding to the no cache messageAlejandro Sirgo Rica2024-06-281-1/+1
| | | | | Add vertical padding to the div holding the report of no selected client with cached images.
* templates: hide detailed cache view with zero imagesAlejandro Sirgo Rica2024-06-281-5/+6
| | | | | | Hide the cache inspector when no cache elements are found in neither of the selected clients. Fix js exception caused by an array access in an empty image list.
* templates: fix no image message in manage cache viewAlejandro Sirgo Rica2024-06-281-1/+1
| | | | | The template conditional must show the table when form.images has more than zero elements.
* ogcp: improve page heading styleAlejandro Sirgo Rica2024-06-2743-58/+58
| | | | Make headings take less space and have a dashed line under them.
* ogcp: add support to view script outputAlejandro Sirgo Rica2024-06-251-0/+74
| | | | | | | | | | Add view at /action/script/output to visualize the result of /shell/run for multiple clients. Use shell/output to request the execution data of the selected clients. Each client element has execution timestamip (UTC), client ip, cmd, return code and stdout of the executed command.
* ogcp: add support to run scripts in clientsAlejandro Sirgo Rica2024-06-251-0/+25
| | | | | | | | Add view at /action/script/run to visualize the available scripts and run a single script file in the selected clients. Use shell/list to request the script list and shell/run API call to request the execution.
* ogcp: add room details view to scopes managementAlejandro Sirgo Rica2024-06-171-0/+18
| | | | | | Add a readonly view for the room data. Mark all the form fields as readonly and set the hidden attribute to the submit field.
* ogcp: add center details view to scopes managementAlejandro Sirgo Rica2024-06-171-0/+18
| | | | | | Add a readonly view for the center data. Mark all the form fields as readonly and set the hidden attribute to the submit field.
* ogcp: add move client to scopes managementAlejandro Sirgo Rica2024-06-171-0/+25
| | | | | | | | | | Add front end for the client/move REST API. Enable the move of multiple clients selected from the sidebar of Scopes Management. Show the target of the move operation as a list of paths in a dropdown widget in the form. Each path will be structured as: Server/Center/Room The path will also contain folders if they are present.
* templates: remove console.log statement in mode.htmlAlejandro Sirgo Rica2024-06-171-1/+0
| | | | Remove print statement generating noise in the browser logs
* templates: show oglive in client pillsAlejandro Sirgo Rica2024-06-171-0/+19
| | | | | | Add oglive to each client pill in action/oglive using js. This makes easier to have a global perspective of the client's configuration.
* templates: add missing center_update.htmlAlejandro Sirgo Rica2024-06-131-0/+18
| | | | | Add html template for the route /action/center/update. Finish the work started in commit 6ec26d16.
* templates: show boot mode in client pillsAlejandro Sirgo Rica2024-06-071-0/+18
| | | | | | Add boot mode to each client pill in action/mode using js. This makes easier to have a global perspective of the client's configuration.
* templates: show image file table only if clients have a cacheAlejandro Sirgo Rica2024-06-071-0/+6
| | | | | Hide form table when the client's cache is empty and inform the user about the selected clients not having images in cache.
* templates: use the correct storage units1.1.3-20Alejandro Sirgo Rica2024-05-302-3/+3
| | | | | | | Use base 2 storage units in html templates as that's the correct representation for the values shown in the web. Remove units such as "Gbytes" and "MB" for their binary byte unit counterparts.
* ogcp: add cache management pageAlejandro Sirgo Rica2024-05-301-0/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement cache management through cache/list and cache/delete API REST methods. The view corresponds to the URL action/cache and contains three main parts: - Free cache available in the client's bubbles. - Image selection form to request the deletion and view the client with that image in cache. - Cache details per client to see total, used and available cache. The main usecase for the view is the removal of cache to make room for new images in clients with slow connections. Checking clients where available cache space is not enough to hold the new image and then requesting removal of specific images. The html template receives the following structures from the view: storage_data[ip] = {'used': 223452345, 'total': 2345234523452} client_images[ip] = [f'{image_name}.{image_checksum}', ...] image_data[f'{image_name}.{image_checksum}'] = { clients: ['192.168.0.1', ...], size: 34534530850, name: image_name, }
* make the boot OS form work over multiple clientsAlejandro Sirgo Rica2024-05-161-5/+32
| | | | | | | | | Enable working over multiple clients even if their OS configuration is different to greatly improve the user's workflow. Group clients with the same configuration under the same checkbox in the form. Report clients excluded from the boot instruction due to not matching OS configuration.
* remove Format field from partition setup formAlejandro Sirgo Rica2024-05-131-2/+0
| | | | | | | Remove the 'Format' field from the Partition and Format form as the default value will always be to format the partitions. This will lead to less portantial codepaths to maintain and support and less manual clicks in the web form.
* Make partition id non editable in partition formAlejandro Sirgo Rica2024-05-121-1/+1
| | | | | | | Show the partition id as a non editable label in each partition of the Partition and Format form. Assign sequential partition id from top to down and recalculate every partition id when a partition is removed.
* views: Add update roomJavier Hernandez2024-02-091-0/+19
| | | | Add view to modify room information such as name, gateway and netmask
* views: Add edit-folder1.1.3-15Javier Hernandez2024-02-051-0/+19
| | | | Add view to modify folder information such as name
* templates: remove Server: and Repo: in list imagesOpenGnSys Support Team2024-02-051-2/+1
| | | | | | | Although ogcp support for multiple server, the plan is to only support for one server in this version. Remove Server: context information and Repo: in list images
* views: preselect pxe boot mode in add clientJavier Hernandez2024-02-051-0/+19
| | | | | | | | preselect 'pxe' (if available) at adding a new client. use a dedicated template for adding a client and remove irrelevant partition table; client has yet to set its partition, so everytime, the table would load empty.
* improve delete confirmationJavier Hernandez2024-02-053-35/+43
| | | | | | | | Make delete confirmations show information in a manner that is easier to read. This includes delete confirmations for centers, room and folder. Messages are now more clear. Also, content table shows the type of the items (folder, room, etc.)
* Make list_images show only selected imagesJavier Hernandez2024-02-021-12/+7
| | | | | | | | | | | Make list images command show only information of the images the user has selected in the sidebar. Improve readability of the information. Show size and data size attributes rounded Warn the user if no images have been selected in sidebar
* improve delete confirmation pageJavier Hernandez2024-02-013-7/+85
| | | | | | | | | | In delete-center, delete-room and delete-folder confirmation pages, show the ancestors of the items about to delete. Likewise, show the items it contains. For example, if user is about to delete a room, confirmation page will display in which center it is contained and the clients and folder it has inside
* Add list images actionJavier Hernandez2024-01-301-0/+41
| | | | | Add list images action that shows a list of all the images in each server and their properties
* views: Preselect most used ogliveJavier Hernandez2024-01-291-0/+25
| | | | | | | | When setting up oglive, preselect oglive that is most used by selected clients. If only one client is selected, preselect that of the client. In the unusual scenario where a client is set with an oglive that is not in the ogserver's list of available oglives, preselect default.
* templates: stilistic change in mode templateJavier Hernandez2024-01-191-4/+4
| | | | Remove warning header and show selected clients above boot-mode tables