Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/view/PassphraseCredentialControl.php
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | $options = AphrontFormSelectControl::renderSelectTag( | ||||
'sigil' => 'passphrase-credential-select', | 'sigil' => 'passphrase-credential-select', | ||||
)); | )); | ||||
if ($this->credentialType) { | if ($this->credentialType) { | ||||
$button = javelin_tag( | $button = javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => '#', | 'href' => '#', | ||||
'class' => 'button button-grey', | 'class' => 'button button-grey mll', | ||||
'sigil' => 'passphrase-credential-add', | 'sigil' => 'passphrase-credential-add', | ||||
'mustcapture' => true, | 'mustcapture' => true, | ||||
'style' => 'height: 20px;', // move aphront-form to tables | |||||
), | ), | ||||
pht('Add Credential')); | pht('Add New Credential')); | ||||
} else { | } else { | ||||
$button = null; | $button = null; | ||||
} | } | ||||
return javelin_tag( | return javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'sigil' => 'passphrase-credential-control', | 'sigil' => 'passphrase-credential-control', | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |