summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-21 19:07:31 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-21 19:07:31 -0500
commit96b2571494b690b269afb5ad41919425644cebc7 (patch)
tree9538ea7e82f432c9d7d19eb0e8e0094be9fafdab /usr/local
parent09348d5f6a39272b41b0013e0231406af5112a78 (diff)
downloadpfsense-96b2571494b690b269afb5ad41919425644cebc7.zip
pfsense-96b2571494b690b269afb5ad41919425644cebc7.tar.gz
Add delete button. Move the add button to the right of total allocated.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/installer/installer.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/usr/local/www/installer/installer.php b/usr/local/www/installer/installer.php
index faa52f9..153d7bc 100644
--- a/usr/local/www/installer/installer.php
+++ b/usr/local/www/installer/installer.php
@@ -934,8 +934,17 @@ EOF;
// tfoot and tbody are used by rowhelper
$custom_txt .= "</tr>";
$custom_txt .= "<tfoot></tfoot></tbody>";
- $custom_txt .= "<tr><td></td><td></td><td align='right'>Total allocated:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='totalsize' name='totalsize'></td></tr>";
- $custom_txt .= "<tr><td></td><td></td><td align='right'>Disk capacity total:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='disktotals' name='disktotals'></td></tr>";
+ $custom_txt .= "<tr><td></td><td></td><td align='right'>Total allocated:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='totalsize' name='totalsize'></td>";
+ // Add row button
+ $custom_txt .= "</td><td>&nbsp;</td><td>";
+ $custom_txt .= "<div id=\"addrowbutton\">";
+ $custom_txt .= "<a onclick=\"javascript:addRowTo('maintable', 'formfldalias'); return false;\" href=\"#\">";
+ $custom_txt .= "<img border=\"0\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" alt=\"\" title=\"add another entry\" /></a>";
+ $custom_txt .= "</div>";
+ $custom_txt .= "</td></tr>";
+
+
+ $custom_txt .= "<tr><td></td><td></td><td align='right'>Disk(s) capacity total:</td><td><input style='border:0px; background-color: #FFFFFF;' size='8' id='disktotals' name='disktotals'></td></tr>";
$custom_txt .= "</table>";
$custom_txt .= "<script type=\"text/javascript\">row_helper_dynamic_custom();</script>";
}
@@ -1134,14 +1143,8 @@ function return_rowhelper_row($rownum, $mountpoint, $fstype, $disk, $size, $encp
$custom_txt .= "</td>";
// Add Rowhelper + button
- if($rownum == 1) {
- $custom_txt .= "<td>";
- $custom_txt .= "<div id=\"addrowbutton\">";
- $custom_txt .= "<a onclick=\"javascript:addRowTo('maintable', 'formfldalias'); return false;\" href=\"#\">";
- $custom_txt .= "<img border=\"0\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" alt=\"\" title=\"add another entry\" /></a>";
- $custom_txt .= "</div>";
- $custom_txt .= "</td>";
- }
+ if($rownum > 0)
+ $custom_txt .= "<td><a onclick=\"removeRow(this); return false;\" href=\"#\"><img border=\"0\" src=\"/themes/{$g['theme']}/images/icons/icon_x.gif\" alt=\"\" title=\"remove this entry\"/></a></td>";
$custom_txt .= "</tr>";
return $custom_txt;
OpenPOWER on IntegriCloud