mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #4906 - Added option for custom list button.
This commit is contained in:
@@ -7741,11 +7741,15 @@ class e_admin_form_ui extends e_form
|
|||||||
<i class='fa fa-spin fa-spinner fa-fw'></i>
|
<i class='fa fa-spin fa-spinner fa-fw'></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div id='admin-ui-list-db-language' class='span4 col-md-4 text-right' >";
|
<div class='span4 col-md-4 text-right' >";
|
||||||
|
|
||||||
|
|
||||||
// Let Admin know which language table is being saved to. (avoid default table overwrites)
|
// Let Admin know which language table is being saved to. (avoid default table overwrites)
|
||||||
$text .= $this->renderLanguageTableInfo();
|
if($languageInfo = $this->renderLanguageTableInfo())
|
||||||
|
{
|
||||||
|
$text .= "<div id='admin-ui-list-db-language' >".$languageInfo.'</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= $this->renderCustomListButton(); // Optional
|
||||||
|
|
||||||
$text .= '
|
$text .= '
|
||||||
</div>
|
</div>
|
||||||
@@ -7877,6 +7881,15 @@ class e_admin_form_ui extends e_form
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optional
|
||||||
|
* @return null|string
|
||||||
|
*/
|
||||||
|
public function renderCustomListButton()
|
||||||
|
{
|
||||||
|
return null; // "<a class='btn btn-primary' href=''>Add New</a>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string|null
|
* @return string|null
|
||||||
|
Reference in New Issue
Block a user