3 final class AphrontFormTextWithSubmitControl
extends AphrontFormControl
{
7 public function setSubmitLabel($submit_label) {
8 $this->submitLabel
= $submit_label;
12 public function getSubmitLabel() {
13 return $this->submitLabel
;
16 protected function getCustomControlClass() {
17 return 'aphront-form-control-text-with-submit';
20 protected function renderInput() {
24 'class' => 'text-with-submit-control-outer-bounds',
30 'class' => 'text-with-submit-control-text-bounds',
36 'class' => 'text-with-submit-control-text',
37 'name' => $this->getName(),
38 'value' => $this->getValue(),
39 'disabled' => $this->getDisabled() ?
'disabled' : null,
40 'id' => $this->getID(),
45 'class' => 'text-with-submit-control-submit-bounds',
51 'class' => 'text-with-submit-control-submit grey',
52 'value' => coalesce($this->getSubmitLabel(), pht('Submit')),