Enhancement #1704
Base: avoid modification of netmask in LocalNetwork module
| Status: | CLOSED | Start date: | 03/01/2013 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 03/04/2013 | |
| Assignee: | - | % Done: | 100% | |
| Category: | nethserver-base | |||
| Target version: | v6.4-alpha2 | |||
| Resolution: | NEEDINFO: |
Description
Make netmask field read-only when updating an existing network in LocalNetwork module.
This avoid to re-expand all important templates (eg. httpd configuration) when a network is modified.
Patch for UI: /usr/share/nethesis/NethServer/Template/LocalNetwork/CreateUpdate.php
--- CreateUpdate.php.ori 2013-03-01 17:30:35.298658411 +0100
+++ CreateUpdate.php 2013-03-01 17:30:44.640408230 +0100
@@ -9,7 +9,7 @@
echo $view->panel()
->insert($view->header('network')->setAttribute('template', $headerText))
->insert($view->textInput('network', ($view->getModule()->getIdentifier() == 'update' ? $view::STATE_READONLY : 0)))
- ->insert($view->textInput('Mask'))
+ ->insert($view->textInput('Mask', ($view->getModule()->getIdentifier() == 'update' ? $view::STATE_READONLY : 0)))
->insert($view->textInput('Router'))
->insert($view->textInput('Description'));
Associated revisions
createlinks: remove actions from network-modify event. Refs #1704
History
#1
Updated by Giacomo Sanchietti over 8 years ago
- % Done changed from 0 to 30
#2
Updated by Giacomo Sanchietti over 8 years ago
- Status changed from NEW to MODIFIED
- Assignee set to Giacomo Sanchietti
- % Done changed from 30 to 100
Done.
#3
Updated by Davide Principi over 8 years ago
- Status changed from MODIFIED to CLOSED
#4
Updated by Davide Principi over 8 years ago
State set to closed on NethServer 6.4 alpha2 release