Skip to content

Commit

Permalink
Issue #4906 - Added option for custom list button.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Nov 7, 2022
1 parent 2f4fdf9 commit ca32c2f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions e107_handlers/admin_ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -7741,12 +7741,16 @@ public function renderFilter($current_query = array(), $location = '', $input_op
<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>
Expand Down Expand Up @@ -7877,6 +7881,15 @@ public function renderFilter($current_query = array(), $location = '', $input_op
return $text;
}

/**
* Optional
* @return null|string
*/
public function renderCustomListButton()
{
return null; // "<a class='btn btn-primary' href=''>Add New</a>";
}


/**
* @return string|null
Expand Down

0 comments on commit ca32c2f

Please sign in to comment.