Commit b7d23d7c authored by merlinofchaos's avatar merlinofchaos

Converted main UI to use templates

parent 1ed69a1e
......@@ -59,7 +59,10 @@
min-height: 302px;
_height: 300px; /* stupid IE hack */
}
.views-tabset .views-display-deleted {
div.views-display-deleted,
div.views-display-deleted div.top,
div.views-display-deleted div.tab-section {
background-color: #eee;
}
......
This diff is collapsed.
......@@ -493,7 +493,7 @@ class views_display_plugin extends views_object {
'#default_value' => $access['type'],
);
$form['access']['role'] = array(
'#prefix' => '<div class="views-left-30">',
'#prefix' => '<div class="views-left-25">',
'#suffix' => '</div>',
'#type' => 'checkboxes',
'#title' => t('If by role'),
......@@ -510,7 +510,7 @@ class views_display_plugin extends views_object {
}
}
$form['access']['perm'] = array(
'#prefix' => '<div class="views-left-40">',
'#prefix' => '<div class="views-left-30">',
'#suffix' => '</div>',
'#type' => 'select',
'#options' => $perms,
......
<?php
// $Id$
/**
* @file views-ui-edit-item.tpl.php
*
* This template handles the printing of fields/filters/sort criteria/arguments or relationships.
*/
?>
<?php print $rearrange; ?>
<?php print $add; ?>
<dt<?php if ($overridden) { print ' class="overridden"'; }?>>
<?php print $title; ?>
</dt>
<?php if (empty($fields)): ?>
<dd><?php print t('None defined'); ?></dd>
<?php else: ?>
<?php foreach ($fields as $field): ?>
<?php if (!empty($fields['links'])): ?>
<?php print $field['links']; ?>
<?php endif; ?>
<dd class="<?php print $field['class']; ?>">
<?php print $field['title']; ?>
<?php print $field['info']; ?>
</dd>
<?php endforeach; ?>
<?php endif; ?>
<?php
// $Id$
/**
* @file views-ui-edit-tab.tpl.php
* Template for the primary view editing window.
*/
?>
<div class="views-display views-display-<?php print $display->id; if (!empty($display->deleted)) { print ' views-display-deleted'; }; ?>">
<?php // top section ?>
<div class="top">
<div class="inside">
<?php print $remove ?>
<span class="display-title">
<?php print $title; ?>
</span>
<span class="display-description">
<?php print $description; ?>
</span>
</div>
</div>
<?php // left section ?>
<div class="left tab-section">
<div class="inside">
<dl>
<?php // If this is the default display, add some basic stuff here. ?>
<?php if ($default): ?>
<dt><?php print t('View settings'); ?></dt>
<dd class="<?php $details_class; ?>">
<?php print $details ?>
</dd>
<?php endif; ?>
<?php foreach ($categories as $category_id => $category): ?>
<dt class="views-category-' <?php print $category_id; ?>">
<?php print $category['title']; ?>
</dt>
<?php foreach ($category['data'] as $data): ?>
<dd class="<?php print $data['class']; if (!empty($data['overridden'])) { print ' overridden'; }?>">
<?php print $data['links'] . $data['content'] ?>
</dd>
<?php endforeach; ?>
<?php endforeach; ?>
</dl>
</div>
</div>
<?php // middle section ?>
<div class="middle tab-section">
<div class="inside">
<dl>
<?php print $relationships; ?>
<?php print $arguments; ?>
<?php print $fields; ?>
</dl>
</div>
</div>
<?php // right section ?>
<div class="right tab-section">
<div class="inside">
<dl>
<?php print $sorts; ?>
<?php print $filters; ?>
</dl>
</div>
</div>
</div>
\ No newline at end of file
......@@ -123,6 +123,16 @@ function views_ui_theme() {
'template' => 'views-ui-edit-view',
'path' => "$path/theme",
),
'views_ui_edit_tab' => array(
'arguments' => array('view' => NULL, 'display' => NULL),
'template' => 'views-ui-edit-tab',
'path' => "$path/theme",
),
'views_ui_edit_item' => array(
'arguments' => array('type' => NULL, 'view' => NULL, 'display' => NULL),
'template' => 'views-ui-edit-item',
'path' => "$path/theme",
),
'views_ui_rearrange_form' => array(
'arguments' => array('form' => NULL),
'file' => '/includes/admin.inc',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment