1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-25 14:08:19 +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:
epriestley 2013-02-02 06:04:54 -08:00
parent 6e95901161
commit 41e0f97c19
5 changed files with 26 additions and 20 deletions

View file

@ -247,20 +247,19 @@ final class AphrontFormDateControl extends AphrontFormControl {
Javelin::initBehavior('fancy-datepicker', array()); Javelin::initBehavior('fancy-datepicker', array());
return javelin_render_tag( return javelin_tag(
'div', 'div',
array( array(
'class' => 'aphront-form-date-container', 'class' => 'aphront-form-date-container',
'sigil' => 'phabricator-date-control', 'sigil' => 'phabricator-date-control',
), ),
self::renderSingleView(
array( array(
$days_sel, $days_sel,
$months_sel, $months_sel,
$years_sel, $years_sel,
$cal_icon, $cal_icon,
$time_sel, $time_sel,
))); ));
} }
} }

View file

@ -35,10 +35,10 @@ final class AphrontFormSelectControl extends AphrontFormControl {
$option_tags = self::renderOptions($selected, $options); $option_tags = self::renderOptions($selected, $options);
return javelin_render_tag( return javelin_tag(
'select', 'select',
$attrs, $attrs,
implode("\n", $option_tags)); $option_tags);
} }
private static function renderOptions($selected, array $options) { private static function renderOptions($selected, array $options) {

View file

@ -142,13 +142,16 @@ final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
$this->setCustomClass( $this->setCustomClass(
'remarkup-assist-textarea '.$monospaced_textareas_class); 'remarkup-assist-textarea '.$monospaced_textareas_class);
return javelin_render_tag( return javelin_tag(
'div', 'div',
array( array(
'sigil' => 'remarkup-assist-control', 'sigil' => 'remarkup-assist-control',
), ),
$buttons. $this->renderHTMLView(
parent::renderInput()); array(
$buttons,
parent::renderInput(),
)));
} }
} }

View file

@ -73,12 +73,12 @@ final class PhabricatorPropertyListView extends AphrontView {
} }
} }
return phutil_render_tag( return phutil_tag(
'div', 'div',
array( array(
'class' => 'phabricator-property-list-view', 'class' => 'phabricator-property-list-view',
), ),
$this->renderSingleView($items)); $this->renderHTMLView($items));
} }
private function renderPropertyPart(array $part) { private function renderPropertyPart(array $part) {

View file

@ -3,10 +3,14 @@
final class AphrontKeyboardShortcutsAvailableView extends AphrontView { final class AphrontKeyboardShortcutsAvailableView extends AphrontView {
public function render() { public function render() {
return return phutil_tag(
'<div class="keyboard-shortcuts-available">'. 'div',
'Press <strong>?</strong> to show keyboard shortcuts.'. array(
'</div>'; 'class' => 'keyboard-shortcuts-available',
),
pht(
'Press %s to show keyboard shortcuts.',
phutil_tag('strong', array(), '?')));
} }
} }