mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Issue #4906 - Added option for custom list button.
This commit is contained in:
@@ -7741,12 +7741,16 @@ class e_admin_form_ui extends e_form
|
||||
<i class='fa fa-spin fa-spinner fa-fw'></i>
|
||||
</span>
|
||||
</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)
|
||||
$text .= $this->renderLanguageTableInfo();
|
||||
|
||||
if($languageInfo = $this->renderLanguageTableInfo())
|
||||
{
|
||||
$text .= "<div id='admin-ui-list-db-language' >".$languageInfo.'</div>';
|
||||
}
|
||||
|
||||
$text .= $this->renderCustomListButton(); // Optional
|
||||
|
||||
$text .= '
|
||||
</div>
|
||||
</div>
|
||||
@@ -7877,6 +7881,15 @@ class e_admin_form_ui extends e_form
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional
|
||||
* @return null|string
|
||||
*/
|
||||
public function renderCustomListButton()
|
||||
{
|
||||
return null; // "<a class='btn btn-primary' href=''>Add New</a>";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
|
Reference in New Issue
Block a user