~critecia/critecia/trunk

« back to all changes in this revision

Viewing changes to src/app/views/grants/index.ctp

  • Committer: Christian A. Reiter
  • Date: 2011-11-16 20:08:35 UTC
  • Revision ID: christian.a.reiter@gmail.com-20111116200835-h3xx0ekm47lububw
fixed jQuery file links

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<div class="grants index">
2
 
        <h2><?php __('Grants');?></h2>
3
 
        <table cellpadding="0" cellspacing="0">
4
 
        <tr>
5
 
                        <th><?php echo $this->Paginator->sort('id');?></th>
6
 
                        <th><?php echo $this->Paginator->sort('hospital_id');?></th>
7
 
                        <th><?php echo $this->Paginator->sort('group_id');?></th>
8
 
                        <th><?php echo $this->Paginator->sort('right_id');?></th>
9
 
                        <th class="actions"><?php __('Actions');?></th>
10
 
        </tr>
11
 
        <?php
12
 
        $i = 0;
13
 
        foreach ($grants as $grant):
14
 
                $class = null;
15
 
                if ($i++ % 2 == 0) {
16
 
                        $class = ' class="altrow"';
17
 
                }
18
 
        ?>
19
 
        <tr<?php echo $class;?>>
20
 
                <td><?php echo $grant['Grant']['id']; ?>&nbsp;</td>
21
 
                <td>
22
 
                        <?php echo $this->Html->link($grant['Hospital']['shortname'], array('controller' => 'hospitals', 'action' => 'view', $grant['Hospital']['id'])); ?>
23
 
                </td>
24
 
                <td>
25
 
                        <?php echo $this->Html->link($grant['Group']['name'], array('controller' => 'groups', 'action' => 'view', $grant['Group']['id'])); ?>
26
 
                </td>
27
 
                <td>
28
 
                        <?php echo $this->Html->link($grant['Right']['name'], array('controller' => 'rights', 'action' => 'view', $grant['Right']['id'])); ?>
29
 
                </td>
30
 
                <td class="actions">
31
 
                        <?php echo $this->Html->link(__('View', true), array('action' => 'view', $grant['Grant']['id'])); ?>
32
 
                        <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $grant['Grant']['id'])); ?>
33
 
                        <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $grant['Grant']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $grant['Grant']['id'])); ?>
34
 
                </td>
35
 
        </tr>
36
 
<?php endforeach; ?>
37
 
        </table>
38
 
        <p>
39
 
        <?php
40
 
        echo $this->Paginator->counter(array(
41
 
        'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
42
 
        ));
43
 
        ?>      </p>
44
 
 
45
 
        <div class="paging">
46
 
                <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
47
 
         |      <?php echo $this->Paginator->numbers();?>
48
 
 |
49
 
                <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
50
 
        </div>
51
 
</div>
52
 
<div class="actions">
53
 
        <h3><?php __('Actions'); ?></h3>
54
 
        <ul>
55
 
                <li><?php echo $this->Html->link(__('New Grant', true), array('action' => 'add')); ?></li>
56
 
                <li><?php echo $this->Html->link(__('List Hospitals', true), array('controller' => 'hospitals', 'action' => 'index')); ?> </li>
57
 
                <li><?php echo $this->Html->link(__('New Hospital', true), array('controller' => 'hospitals', 'action' => 'add')); ?> </li>
58
 
                <li><?php echo $this->Html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
59
 
                <li><?php echo $this->Html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
60
 
                <li><?php echo $this->Html->link(__('List Rights', true), array('controller' => 'rights', 'action' => 'index')); ?> </li>
61
 
                <li><?php echo $this->Html->link(__('New Right', true), array('controller' => 'rights', 'action' => 'add')); ?> </li>
62
 
        </ul>
63
 
</div>
 
 
b'\\ No newline at end of file'