/[drupal]/contributions/modules/cck/theme/cck-admin-field-overview-form.tpl.php
ViewVC logotype

Contents of /contributions/modules/cck/theme/cck-admin-field-overview-form.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Fri Jun 26 18:07:11 2009 UTC (5 months ago) by yched
Branch: MAIN
Changes since 1.5: +3 -2 lines
File MIME type: text/x-php
#503258 by eaton: allow 'extra fields' to provide 'configure' and 'remove' links.
1 <?php
2 // $Id: cck-admin-field-overview-form.tpl.php,v 1.5 2009/02/03 19:53:48 karens Exp $
3 ?>
4 <div>
5 <?php print $help; ?>
6 </div>
7 <table id="cck-field-overview" class="sticky-enabled">
8 <thead>
9 <tr>
10 <th><?php print t('Label'); ?></th>
11 <th><?php print t('Weight'); ?></th>
12 <th><?php print t('Name'); ?></th>
13 <th><?php print t('Field'); ?></th>
14 <th><?php print t('Widget'); ?></th>
15 <th><?php print t('Operations'); ?></th>
16 </tr>
17 </thead>
18 <tbody>
19 <?php
20 $count = 0;
21 foreach ($rows as $row): ?>
22 <tr class="<?php print $count % 2 == 0 ? 'odd' : 'even'; ?> <?php print $row->class ?>">
23 <?php
24 switch ($row->row_type):
25 case 'field': ?>
26 <td>
27 <?php print $row->indentation; ?>
28 <span class="<?php print $row->label_class; ?>"><?php print $row->label; ?></span>
29 </td>
30 <td><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
31 <td><?php print $row->field_name; ?></td>
32 <td><?php print $row->type; ?></td>
33 <td><?php print $row->widget_type; ?></td>
34 <td><?php print $row->configure; ?>&nbsp;&nbsp;<?php print $row->remove; ?></td>
35 <?php break;
36 case 'group': ?>
37 <td>
38 <?php print $row->indentation; ?>
39 <span class="<?php print $row->label_class; ?>"><?php print $row->label; ?></span>
40 </td>
41 <td><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
42 <td><?php print $row->group_name; ?></td>
43 <td><?php print $row->group_type; ?></td>
44 <td><?php print $row->configure; ?>&nbsp;&nbsp;<?php print $row->remove; ?></td>
45 <?php break;
46 case 'extra': ?>
47 <td>
48 <?php print $row->indentation; ?>
49 <span class="<?php print $row->label_class; ?>"><?php print $row->label; ?></span>
50 </td>
51 <td><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
52 <td colspan="3"><?php print $row->description; ?></td>
53 <td><?php print $row->configure; ?>&nbsp;&nbsp;<?php print $row->remove; ?></td>
54 <?php break;
55 case 'separator': ?>
56 <td colspan="6" class="region"><?php print t('Add'); ?></td>
57 <?php break;
58 case 'add_new_field': ?>
59 <td>
60 <?php print $row->indentation; ?>
61 <div class="<?php print $row->label_class; ?>">
62 <div class="cck-new"><?php print theme('advanced_help_topic', 'cck', 'add-new-field') . t('New field'); ?></div>
63 <?php print $row->label; ?>
64 </div>
65 </td>
66 <td><div class="cck-new">&nbsp;</div><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
67 <td colspan="2"><div class="cck-new">&nbsp;</div><?php print $row->field_name; ?></td>
68 <td><div class="cck-new">&nbsp;</div><?php print $row->type; ?></td>
69 <td><div class="cck-new">&nbsp;</div><?php print $row->widget_type; ?></td>
70 <?php break;
71 case 'add_existing_field': ?>
72 <td>
73 <?php print $row->indentation; ?>
74 <div class="<?php print $row->label_class; ?>">
75 <div class="cck-new"><?php print theme('advanced_help_topic', 'cck', 'add-existing-field') . t('Existing field'); ?></div>
76 <?php print $row->label; ?>
77 </div>
78 </td>
79 <td><div class="cck-new">&nbsp;</div><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
80 <td colspan="3"><div class="cck-new">&nbsp;</div><?php print $row->field_name; ?></td>
81 <td><div class="cck-new">&nbsp;</div><?php print $row->widget_type; ?></td>
82 <?php break;
83 case 'add_new_group': ?>
84 <td>
85 <?php print $row->indentation; ?>
86 <div class="<?php print $row->label_class; ?>">
87 <div class="cck-new"><?php print theme('advanced_help_topic', 'cck', 'add-new-group') . t('New group'); ?></div>
88 <?php print $row->label; ?>
89 </div>
90 </td>
91 <td><div class="cck-new">&nbsp;</div><?php print $row->weight . $row->parent . $row->hidden_name; ?></td>
92 <td colspan="2"><div class="cck-new">&nbsp;</div><?php print $row->group_name; ?></td>
93 <td><div class="cck-new">&nbsp;</div><?php print $row->group_type; ?></td>
94 <td><div class="cck-new">&nbsp;</div><?php print $row->group_option; ?></td>
95 <?php break;
96 endswitch; ?>
97 </tr>
98 <?php $count++;
99 endforeach; ?>
100 </tbody>
101 </table>
102
103 <?php print $submit; ?>
104

  ViewVC Help
Powered by ViewVC 1.1.2