<?php echo _open('div.dm_page_manager.ui-tabs.ui-widget.ui-widget-content.ui-corner-all.mt10'); include_partial('dmPage/tabs'); echo once_per_session(_tag('p.help_box', _tag('span.s16.s16_help.block', __('Drag pages around to move and sort them.')))); echo _tag('div#dm_full_page_tree.clearfix.dm', array('json' => array('move_url' => _link('dmPage/move')->getHref())), $tree->render()); echo _close('div');
<?php echo _open('div.dm_page_manager.ui-tabs.ui-widget.ui-widget-content.ui-corner-all.mt10'); include_partial('dmPage/tabs'); echo once_per_session(_tag('p.help_box', _tag('span.s16.s16_help.block', __('Choose columns to display in the table.')))); echo $form->open('.dm_meta_fields.ui-corner-all') . $form['fields']->field() . $form->submit(__('Select columns')) . $form->renderHiddenFields() . $form->close(); echo once_per_session(_tag('p.help_box', _tag('span.s16.s16_help.block', __('Click any value in the table to modify it.')))); echo _open('table#dm_page_meta_table', array('json' => array('translation_url' => _link('dmPage/tableTranslation')->getHref(), 'edition_url' => _link('dmPage/editField')->getHref(), 'toggle_url' => _link('dmPage/toggleBoolean')->getHref()))); echo _open('thead') . _open('tr'); foreach ($fields as $field) { echo _tag('th', $pageMetaView->renderField($field)); } echo _close('thead') . _close('tr'); echo _open('tbody'); foreach ($pages as $page) { $pageMetaView->setPage($page); echo _open('tr#' . $page['id']); foreach ($fields as $field) { echo $pageMetaView->renderMeta($field); } echo '</tr>'; } echo _close('tbody'); echo _close('table'); echo _close('div');