Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102250695
AphrontFormTextWithSubmitControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 18, 18:26
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 20, 18:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24283913
Attached To
rPH Phabricator
AphrontFormTextWithSubmitControl.php
View Options
<?php
final
class
AphrontFormTextWithSubmitControl
extends
AphrontFormControl
{
private
$submitLabel
;
public
function
setSubmitLabel
(
$submit_label
)
{
$this
->
submitLabel
=
$submit_label
;
return
$this
;
}
public
function
getSubmitLabel
()
{
return
$this
->
submitLabel
;
}
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-text-with-submit'
;
}
protected
function
renderInput
()
{
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-outer-bounds'
,
),
array
(
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-text-bounds'
,
),
javelin_tag
(
'input'
,
array
(
'type'
=>
'text'
,
'class'
=>
'text-with-submit-control-text'
,
'name'
=>
$this
->
getName
(),
'value'
=>
$this
->
getValue
(),
'disabled'
=>
$this
->
getDisabled
()
?
'disabled'
:
null
,
'id'
=>
$this
->
getID
(),
))),
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-submit-bounds'
,
),
javelin_tag
(
'input'
,
array
(
'type'
=>
'submit'
,
'class'
=>
'text-with-submit-control-submit grey'
,
'value'
=>
coalesce
(
$this
->
getSubmitLabel
(),
pht
(
'Submit'
)),
))),
));
}
}
Event Timeline
Log In to Comment