Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | $content = phabricator_form( | ||||
'method' => 'POST', | 'method' => 'POST', | ||||
'sigil' => 'inline-edit-form', | 'sigil' => 'inline-edit-form', | ||||
), | ), | ||||
array( | array( | ||||
$this->renderInputs(), | $this->renderInputs(), | ||||
$this->renderBody(), | $this->renderBody(), | ||||
)); | )); | ||||
if ($this->renderer == '1up') { | return $content; | ||||
$cells = array( | |||||
phutil_tag('th', array()), | |||||
phutil_tag('th', array()), | |||||
phutil_tag( | |||||
'td', | |||||
array('colspan' => 3, 'class' => 'right3'), | |||||
$content), | |||||
); | |||||
} else { | |||||
$cells = array( | |||||
phutil_tag('th', array()), | |||||
phutil_tag( | |||||
'td', | |||||
array('class' => 'left'), | |||||
$this->onRight ? null : $content), | |||||
phutil_tag('th', array()), | |||||
phutil_tag( | |||||
'td', | |||||
array('colspan' => 3, 'class' => 'right3'), | |||||
$this->onRight ? $content : null), | |||||
); | |||||
} | |||||
$row = phutil_tag('tr', array('class' => 'inline-comment-splint'), $cells); | |||||
return phutil_tag('table', array(), $row); | |||||
} | } | ||||
private function renderInputs() { | private function renderInputs() { | ||||
$inputs = $this->inputs; | $inputs = $this->inputs; | ||||
$out = array(); | $out = array(); | ||||
$inputs[] = array('on_right', (bool)$this->getIsOnRight()); | $inputs[] = array('on_right', (bool)$this->getIsOnRight()); | ||||
$inputs[] = array('replyToCommentPHID', $this->getReplyToCommentPHID()); | $inputs[] = array('replyToCommentPHID', $this->getReplyToCommentPHID()); | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |