mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Refactor Api transport to use Guzzle (and new variables syntax) (#10070)
* Allow new {{ $xxxx }} syntax * Properly handle urlencode on variable values without braking the URL, and uses Blades * Doc Doc typo * use Guzzle for HTTP requests * Add Basic auth support * Doc update * clean * Revert Blades, but keep the {{ $xxxx }} syntax * Revert Blades, but keep the {{ $xxxx }} syntax * Init Vars and comments * Notifications * api-options are not required * Update notifications.rss
This commit is contained in:
committed by
Neil Lathwood
parent
fce185b55c
commit
55f67f42fe
@@ -85,7 +85,7 @@ foreach ($transports_list as $transport) {
|
||||
if ($item['type'] !== 'hidden') {
|
||||
echo '<div class="form-group" title="' . $item['descr'] . '">';
|
||||
echo '<label for="' . $item['name'] . '" class="col-sm-3 col-md-2 control-label">' . $item['title'] . ': </label>';
|
||||
if ($item['type'] == 'text') {
|
||||
if ($item['type'] == 'text' || $item['type'] == 'password') {
|
||||
echo '<div class="col-sm-9 col-md-10">';
|
||||
echo '<input type="' . $item['type'] . '" id="' . $item['name'] . '" name="' . $item['name'] . '" class="form-control" ';
|
||||
if ($item['required']) {
|
||||
|
Reference in New Issue
Block a user