mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
render_tag -> tag: forms / remarkup
Summary: See inlines. Test Plan: See inlines. Reviewers: vrana Reviewed By: vrana CC: aran Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4767
This commit is contained in:
parent
6e95901161
commit
41e0f97c19
5 changed files with 26 additions and 20 deletions
|
@ -247,20 +247,19 @@ final class AphrontFormDateControl extends AphrontFormControl {
|
|||
|
||||
Javelin::initBehavior('fancy-datepicker', array());
|
||||
|
||||
return javelin_render_tag(
|
||||
return javelin_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'aphront-form-date-container',
|
||||
'sigil' => 'phabricator-date-control',
|
||||
),
|
||||
self::renderSingleView(
|
||||
array(
|
||||
$days_sel,
|
||||
$months_sel,
|
||||
$years_sel,
|
||||
$cal_icon,
|
||||
$time_sel,
|
||||
)));
|
||||
array(
|
||||
$days_sel,
|
||||
$months_sel,
|
||||
$years_sel,
|
||||
$cal_icon,
|
||||
$time_sel,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,10 +35,10 @@ final class AphrontFormSelectControl extends AphrontFormControl {
|
|||
|
||||
$option_tags = self::renderOptions($selected, $options);
|
||||
|
||||
return javelin_render_tag(
|
||||
return javelin_tag(
|
||||
'select',
|
||||
$attrs,
|
||||
implode("\n", $option_tags));
|
||||
$option_tags);
|
||||
}
|
||||
|
||||
private static function renderOptions($selected, array $options) {
|
||||
|
|
|
@ -142,13 +142,16 @@ final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
|
|||
$this->setCustomClass(
|
||||
'remarkup-assist-textarea '.$monospaced_textareas_class);
|
||||
|
||||
return javelin_render_tag(
|
||||
return javelin_tag(
|
||||
'div',
|
||||
array(
|
||||
'sigil' => 'remarkup-assist-control',
|
||||
),
|
||||
$buttons.
|
||||
parent::renderInput());
|
||||
$this->renderHTMLView(
|
||||
array(
|
||||
$buttons,
|
||||
parent::renderInput(),
|
||||
)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -73,12 +73,12 @@ final class PhabricatorPropertyListView extends AphrontView {
|
|||
}
|
||||
}
|
||||
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-property-list-view',
|
||||
),
|
||||
$this->renderSingleView($items));
|
||||
$this->renderHTMLView($items));
|
||||
}
|
||||
|
||||
private function renderPropertyPart(array $part) {
|
||||
|
|
|
@ -3,10 +3,14 @@
|
|||
final class AphrontKeyboardShortcutsAvailableView extends AphrontView {
|
||||
|
||||
public function render() {
|
||||
return
|
||||
'<div class="keyboard-shortcuts-available">'.
|
||||
'Press <strong>?</strong> to show keyboard shortcuts.'.
|
||||
'</div>';
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'keyboard-shortcuts-available',
|
||||
),
|
||||
pht(
|
||||
'Press %s to show keyboard shortcuts.',
|
||||
phutil_tag('strong', array(), '?')));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue