Revision 2e7fa7ca
Added by Jim Pingle over 9 years ago
src/usr/local/www/interfaces.php | ||
---|---|---|
1817 | 1817 |
|
1818 | 1818 |
$group->add(new Form_Button( |
1819 | 1819 |
'addgw', |
1820 |
'Add a new gateway' |
|
1821 |
))->removeClass('btn-primary')->setAttribute('data-target', '#newgateway')->setAttribute('data-toggle', 'modal'); |
|
1820 |
'Add a new gateway', |
|
1821 |
null, |
|
1822 |
'fa-plus' |
|
1823 |
))->addClass('btn-success')->setAttribute('data-target', '#newgateway')->setAttribute('data-toggle', 'modal'); |
|
1822 | 1824 |
|
1823 | 1825 |
$group->setHelp('If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the "Add" button.' . '<br />' . |
1824 | 1826 |
'On local LANs the upstream gateway should be "none".' . |
... | ... | |
1848 | 1850 |
|
1849 | 1851 |
$group->add(new Form_Button( |
1850 | 1852 |
'addgw6', |
1851 |
'Add a new gateway' |
|
1852 |
))->removeClass('btn-primary')->setAttribute('data-target', '#newgateway6')->setAttribute('data-toggle', 'modal'); |
|
1853 |
'Add a new gateway', |
|
1854 |
null, |
|
1855 |
'fa-plus' |
|
1856 |
))->addClass('btn-success')->setAttribute('data-target', '#newgateway6')->setAttribute('data-toggle', 'modal'); |
|
1853 | 1857 |
|
1854 | 1858 |
$group->setHelp('If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the "Add" button.' . '<br />' . |
1855 | 1859 |
'On local LANs the upstream gateway should be "none". '); |
... | ... | |
1888 | 1892 |
|
1889 | 1893 |
$btnaddgw6 = new Form_Button( |
1890 | 1894 |
'add6', |
1891 |
'Add' |
|
1895 |
'Add', |
|
1896 |
null, |
|
1897 |
'fa-plus' |
|
1892 | 1898 |
); |
1893 | 1899 |
|
1894 |
$btnaddgw6->removeClass('btn-primary')->addClass('btn-success');
|
|
1900 |
$btnaddgw6->addClass('btn-success'); |
|
1895 | 1901 |
|
1896 | 1902 |
$btncnxgw6 = new Form_Button( |
1897 | 1903 |
'cnx6', |
1898 |
'Cancel' |
|
1904 |
'Cancel', |
|
1905 |
null, |
|
1906 |
'fa-undo' |
|
1899 | 1907 |
); |
1900 | 1908 |
|
1901 |
$btncnxgw6->removeClass('btn-primary')->addClass('btn-default');
|
|
1909 |
$btncnxgw6->addClass('btn-warning');
|
|
1902 | 1910 |
|
1903 | 1911 |
$modal->addInput(new Form_StaticText( |
1904 | 1912 |
null, |
... | ... | |
3200 | 3208 |
|
3201 | 3209 |
$btnaddgw = new Form_Button( |
3202 | 3210 |
'add', |
3203 |
'Add' |
|
3211 |
'Add', |
|
3212 |
null, |
|
3213 |
'fa-plus' |
|
3204 | 3214 |
); |
3205 | 3215 |
|
3206 |
$btnaddgw->removeClass('btn-primary')->addClass('btn-success');
|
|
3216 |
$btnaddgw->addClass('btn-success'); |
|
3207 | 3217 |
|
3208 | 3218 |
$btncnxgw = new Form_Button( |
3209 | 3219 |
'cnx', |
3210 |
'Cancel' |
|
3220 |
'Cancel', |
|
3221 |
null, |
|
3222 |
'fa-undo' |
|
3211 | 3223 |
); |
3212 | 3224 |
|
3213 |
$btncnxgw->removeClass('btn-primary')->addClass('btn-default');
|
|
3225 |
$btncnxgw->addClass('btn-warning');
|
|
3214 | 3226 |
|
3215 | 3227 |
$modal->addInput(new Form_StaticText( |
3216 | 3228 |
null, |
Also available in: Unified diff
Fix some more stragglers for icon/button consistency. Ticket #5965