Differential D15591 Diff 37583 src/applications/legalpad/controller/LegalpadDocumentSignController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/controller/LegalpadDocumentSignController.php
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | if (!$has_signed) { | ||||
$field_errors); | $field_errors); | ||||
switch ($document->getSignatureType()) { | switch ($document->getSignatureType()) { | ||||
default: | default: | ||||
break; | break; | ||||
case LegalpadDocument::SIGNATURE_TYPE_INDIVIDUAL: | case LegalpadDocument::SIGNATURE_TYPE_INDIVIDUAL: | ||||
case LegalpadDocument::SIGNATURE_TYPE_CORPORATION: | case LegalpadDocument::SIGNATURE_TYPE_CORPORATION: | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->addClass('document-sign-box') | |||||
->setHeaderText(pht('Agree and Sign Document')) | ->setHeaderText(pht('Agree and Sign Document')) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | |||||
->setForm($signature_form); | ->setForm($signature_form); | ||||
if ($error_view) { | if ($error_view) { | ||||
$box->setInfoView($error_view); | $box->setInfoView($error_view); | ||||
} | } | ||||
$signature_box = phutil_tag_div('phui-document-view-pro-box', $box); | $signature_box = phutil_tag_div( | ||||
'phui-document-view-pro-box plt', $box); | |||||
break; | break; | ||||
} | } | ||||
} | } | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
$crumbs->addTextCrumb($document->getMonogram()); | $crumbs->addTextCrumb($document->getMonogram()); | ||||
return $this->buildApplicationPage( | return $this->newPage() | ||||
array( | ->setTitle($title) | ||||
$crumbs, | ->setCrumbs($crumbs) | ||||
->setPageObjectPHIDs(array($document->getPHID())) | |||||
->appendChild(array( | |||||
$content, | $content, | ||||
$signature_box, | $signature_box, | ||||
), | |||||
array( | |||||
'title' => $title, | |||||
'pageObjects' => array($document->getPHID()), | |||||
)); | )); | ||||
} | } | ||||
private function readSignerInformation( | private function readSignerInformation( | ||||
LegalpadDocument $document, | LegalpadDocument $document, | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |