Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/PhortuneCartViewController.php
| Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | private function buildActionListView( | ||||
| } else { | } else { | ||||
| $prefix = ''; | $prefix = ''; | ||||
| } | } | ||||
| $cancel_uri = $this->getApplicationURI("{$prefix}cart/{$id}/cancel/"); | $cancel_uri = $this->getApplicationURI("{$prefix}cart/{$id}/cancel/"); | ||||
| $refund_uri = $this->getApplicationURI("{$prefix}cart/{$id}/refund/"); | $refund_uri = $this->getApplicationURI("{$prefix}cart/{$id}/refund/"); | ||||
| $update_uri = $this->getApplicationURI("{$prefix}cart/{$id}/update/"); | $update_uri = $this->getApplicationURI("{$prefix}cart/{$id}/update/"); | ||||
| $accept_uri = $this->getApplicationURI("{$prefix}cart/{$id}/accept/"); | $accept_uri = $this->getApplicationURI("{$prefix}cart/{$id}/accept/"); | ||||
| $print_uri = $this->getApplicationURI("{$prefix}cart/{$id}/?__print__=1"); | |||||
| $view->addAction( | $view->addAction( | ||||
| id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
| ->setName(pht('Cancel Order')) | ->setName(pht('Cancel Order')) | ||||
| ->setIcon('fa-times') | ->setIcon('fa-times') | ||||
| ->setDisabled(!$can_cancel) | ->setDisabled(!$can_cancel) | ||||
| ->setWorkflow(true) | ->setWorkflow(true) | ||||
| ->setHref($cancel_uri)); | ->setHref($cancel_uri)); | ||||
| Show All 25 Lines | private function buildActionListView( | ||||
| if ($can_edit && $resume_uri) { | if ($can_edit && $resume_uri) { | ||||
| $view->addAction( | $view->addAction( | ||||
| id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
| ->setName(pht('Continue Checkout')) | ->setName(pht('Continue Checkout')) | ||||
| ->setIcon('fa-shopping-cart') | ->setIcon('fa-shopping-cart') | ||||
| ->setHref($resume_uri)); | ->setHref($resume_uri)); | ||||
| } | } | ||||
| $view->addAction( | |||||
| id(new PhabricatorActionView()) | |||||
| ->setName(pht('Printable Version')) | |||||
| ->setHref($print_uri) | |||||
| ->setOpenInNewWindow(true) | |||||
| ->setIcon('fa-print')); | |||||
| return $view; | return $view; | ||||
| } | } | ||||
| } | } | ||||