diff options
author | Phil Davis <phil.davis@inf.org> | 2015-06-16 22:51:53 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-16 12:44:40 -0500 |
commit | bc8adf7e03fb40617d165c4b2313c61abfdc1a4b (patch) | |
tree | 0c363d19a6b309db8594ae2e6a8f844ca6a824f1 | |
parent | f128ee222472b05c9ba9f61abbf772518b926528 (diff) | |
download | pfsense-bc8adf7e03fb40617d165c4b2313c61abfdc1a4b.zip pfsense-bc8adf7e03fb40617d165c4b2313c61abfdc1a4b.tar.gz |
Say what is happening when reinstalling package GUI XML
At the confirmation dialog after pressing the "Reinstall XML" button, the text does not distinguish between having pressed "Reinstall the whole package" and "Reinstall the GUI/XML". It would be nice if the text of this confirmation allowed the user to be confident about which button they had just pushed, before confirming the action.
Note: This stuff has no gettext() wrappers - but that can be fixed later, not get mixed up in this.
-rw-r--r-- | usr/local/www/pkg_mgr_install.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 2d61051..68f78bd 100644 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -114,12 +114,14 @@ if ($_POST) { } else if ($_GET['mode'] == 'reinstallall') { $pkgmode = 'reinstallall'; } + $pkg_gui_xml_text = ""; switch ($pkgmode) { case 'reinstallall': $pkgname = 'All packages'; $pkgtxt = 'reinstalled'; break; case 'reinstallxml': + $pkg_gui_xml_text = " GUI XML components"; case 'reinstallpkg': $pkgtxt = 'reinstalled'; break; @@ -135,8 +137,8 @@ if ($_POST) { <td class="tabcont" align="center"> <table style="height:15;colspacing:0" width="420" border="0" cellpadding="0" cellspacing="0" summary="images"> <tr> - <td class="tabcont" align="center">Package: <b><?=$pkgname;?></b> will be <?=$pkgtxt;?>.<br/> - Please confirm the action.<br/> + <td class="tabcont" align="center">Package: <b><?=$pkgname;?></b><?=$pkg_gui_xml_text;?> will be <?=$pkgtxt;?>.<br/> + Please confirm the action.<br/> </td> <td class="tabcont" align="center"> <input type="hidden" name="id" value="<?=$pkgname;?>" /> |