Changeset 115

User picture

Author: franiglesias

(2009/08/20 17:47) Over 2 years ago

Modyfing views and adding supoort for filters

Affected files

Updated app_controller.php Download diff

114115
28
28
29
class AppController extends Controller {
29
class AppController extends Controller {
30
	
30
	
31
	var $components = array('Auth', 'Session');
31
	var $components = array('Auth', 'Session', 'Filters.Filters');
32
32
	
33
	
33
	var $layout = 'default';
34
	var $layout = 'default';
34
	
35
	

Updated plugins/accounts/views/groups/admin_index.ctp Download diff

114115
21
		echo $table->render($groups, $options);
21
		echo $table->render($groups, $options);
22
		?>		  	 
22
		?>		  	 
23
	<?php endif; ?> 
23
	<?php endif; ?> 
24
</div>
25
<div id="view_extras">
26
	<?php echo $filter->draw(array('Group.name')); ?>
24
</div>
27
</div>

Updated plugins/accounts/views/users/admin_index.ctp Download diff

114115
2
	<h2><?php echo String::insert(__(':model Management', true), array('model' => $this->params['models'][0])); ?></h2>
2
	<h2><?php echo String::insert(__(':model Management', true), array('model' => $this->params['models'][0])); ?></h2>
3
	<div class="view_actions">
3
	<div class="view_actions">
4
		<ul class="horizontal">
4
		<ul class="horizontal">
5
			<?php foreach (array('all', 'active', 'pending') as $filter): ?>
5
			<?php foreach (array('all', 'active', 'pending') as $findFilter): ?>
6
				<li><?php echo $html->link(__($filter, true), array('action' => 'index', $filter)); ?></li>
6
				<li><?php echo $html->link(__($findFilter, true), array('action' => 'index', $findFilter)); ?></li>
7
			<?php endforeach ?>
7
			<?php endforeach ?>
8
		</ul>
8
		</ul>
9
	</div>
9
	</div>
...
...
32
		echo $table->render($users, $options);
32
		echo $table->render($users, $options);
33
		?>		  	 
33
		?>		  	 
34
	<?php endif; ?> 
34
	<?php endif; ?> 
35
</div>
36
<div id="view_extras">
37
	<?php echo $filter->draw(array('User.name', 'User.email')); ?>
35
</div>
38
</div>

Updated plugins/quotes/views/quotes/admin_index.ctp Download diff

114115
2
	<h1><?php __('Admin Quotes'); ?></h1>
2
	<h1><?php __('Admin Quotes'); ?></h1>
3
	<p><?php __('Manage Quotes records'); ?></p>
3
	<p><?php __('Manage Quotes records'); ?></p>
4
</div>
4
</div>
5
<div id="filters">
6
	 
7
</div>
8
<?php echo $this->element('paginator'); ?><div id="view_data">
5
<?php echo $this->element('paginator'); ?><div id="view_data">
9
	
6
	
10
	<?php if (!$quotes): ?>
7
	<?php if (!$quotes): ?>
...
...
31
	<p><?php echo $html->link(__('Add Quote', true), array('action' => 'add')); ?> </p>
28
	<p><?php echo $html->link(__('Add Quote', true), array('action' => 'add')); ?> </p>
32
</div>
29
</div>
33
<div id="view_extras">
30
<div id="view_extras">
34
	<?php echo $filter->draw(array('Quote.quote', 'Quote.author', 'Quote.approved')) ?>
31
	<?php echo $filter->draw(array('Quote.quote', 'Quote.author', 'Quote.used', 'Quote.approved')); ?>
35
</div>
32
</div>

Updated vendors/shells/templates/views/index.ctp Download diff

114115
34
	<p><?php echo "<?php echo \$html->link(__('Add $singularHumanName', true), array('action' => 'add')); ?> " ?></p>
34
	<p><?php echo "<?php echo \$html->link(__('Add $singularHumanName', true), array('action' => 'add')); ?> " ?></p>
35
</div>
35
</div>
36
<div id="view_extras">
36
<div id="view_extras">
37
	
37
	<?php echo "<?php echo \$filter->draw(array('".implode('\', \'', $fields)."')); ?>" ?> 
38
</div>
38
</div>

Updated webroot/css/milhojas.basic.css Download diff

114115
86
form.inline div {
86
form.inline div {
87
	display: inline;
87
	display: inline;
88
}
88
}
89
90
form.inline fieldset {
91
}