mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
commit
95b501e484
@ -391,7 +391,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
return $this->product_options_value;
|
return $this->product_options_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function status()
|
public function getStatus()
|
||||||
{
|
{
|
||||||
return $this->status;
|
return $this->status;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,5 +84,5 @@ interface AdvInterface extends EntryInterface
|
|||||||
|
|
||||||
public function getProductOptionsValues();
|
public function getProductOptionsValues();
|
||||||
|
|
||||||
public function status();
|
public function getStatus();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,19 +10,19 @@ class AdvTableButtons
|
|||||||
$builder->setButtons([
|
$builder->setButtons([
|
||||||
'status' => [
|
'status' => [
|
||||||
'text' => function (EntryInterface $entry) {
|
'text' => function (EntryInterface $entry) {
|
||||||
$text_type = ($entry->status() == 'approved') ? 'decline' : 'approve';
|
$text_type = ($entry->getStatus() == 'approved') ? 'decline' : 'approve';
|
||||||
return "<font class='hidden-xs-down'>" . trans('visiosoft.module.advs::button.' . $text_type) . "</font>";
|
return "<font class='hidden-xs-down'>" . trans('visiosoft.module.advs::button.' . $text_type) . "</font>";
|
||||||
|
|
||||||
},
|
},
|
||||||
'icon' => function (EntryInterface $entry) {
|
'icon' => function (EntryInterface $entry) {
|
||||||
return ($entry->status() == 'approved') ? "fa fa-eye-slash" : "fa fa-eye";
|
return ($entry->getStatus() == 'approved') ? "fa fa-eye-slash" : "fa fa-eye";
|
||||||
},
|
},
|
||||||
'href' => function (EntryInterface $entry) {
|
'href' => function (EntryInterface $entry) {
|
||||||
$action_type = ($entry->status() == 'approved') ? 'declined' : 'approved';
|
$action_type = ($entry->getStatus() == 'approved') ? 'declined' : 'approved';
|
||||||
return "/admin/class/actions/{entry.id}/" . $action_type;
|
return "/admin/class/actions/{entry.id}/" . $action_type;
|
||||||
},
|
},
|
||||||
'type' => function (EntryInterface $entry) {
|
'type' => function (EntryInterface $entry) {
|
||||||
return ($entry->status() == 'approved') ? "danger" : "success";
|
return ($entry->getStatus() == 'approved') ? "danger" : "success";
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user