/[drupal]/contributions/modules/better_formats/better-formats-defaults-admin-form.tpl.php
ViewVC logotype

Contents of /contributions/modules/better_formats/better-formats-defaults-admin-form.tpl.php

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


Revision 1.6 - (show annotations) (download) (as text)
Tue Mar 17 08:17:38 2009 UTC (8 months, 1 week ago) by dragonwize
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
File MIME type: text/x-php
Fixed #404484: Missing t()'s
1 <?php
2 // $Id: better-formats-defaults-admin-form.tpl.php,v 1.3.2.2 2009/03/17 08:16:52 dragonwize Exp $
3
4 /**
5 * @file
6 * Default theme implementation to configure format manager filter admin page.
7 *
8 * Available variables:
9 * - $form_submit: Form submit button.
10 *
11 * Each $node_default_rows contains a row
12 *
13 * Each $data in $node_default_rows contains:
14 * - $data->role: Role name.
15 * - $data->format_select: Drop-down menu for setting format.
16 * - $data->weight_select: Drop-down menu for setting weights.
17 */
18 ?>
19 <?php
20 // Add table javascript
21 drupal_add_tabledrag('node-format-defaults', 'order', 'sibling', 'better-formats-role-node-weight');
22 drupal_add_tabledrag('comment-format-defaults', 'order', 'sibling', 'better-formats-role-comment-weight');
23 ?>
24 <div class="description"><?php print t('Only formats that a role has permission to use are shown.'); ?></div>
25 <fieldset>
26 <legend><strong><?php print t('Node Defaults'); ?></strong></legend>
27 <table id="node-format-defaults">
28 <thead>
29 <tr>
30 <th><?php print t('Role'); ?></th>
31 <th><?php print t('Default Format'); ?></th>
32 <th><?php print t('Weight'); ?></th>
33 </tr>
34 </thead>
35 <tbody>
36 <?php $row = 0; ?>
37 <?php foreach ($node_default_rows as $rid => $data): ?>
38 <tr class="draggable <?php print $row % 2 ? 'odd' : 'even'; ?>">
39 <td class=""><?php print $data->role; ?></td>
40 <td><?php print $data->format_select; ?></td>
41 <td><?php print $data->weight_select; ?></td>
42 </tr>
43 <?php $row++; ?>
44 <?php endforeach; ?>
45 </tbody>
46 </table>
47 </fieldset>
48
49 <fieldset>
50 <legend><strong><?php print t('Comment Defaults'); ?></strong></legend>
51 <table id="comment-format-defaults">
52 <thead>
53 <tr>
54 <th><?php print t('Role'); ?></th>
55 <th><?php print t('Default Format'); ?></th>
56 <th><?php print t('Weight'); ?></th>
57 </tr>
58 </thead>
59 <tbody>
60 <?php $row = 0; ?>
61 <?php foreach ($comment_default_rows as $rid => $data): ?>
62 <tr class="draggable <?php print $row % 2 ? 'odd' : 'even'; ?>">
63 <td class=""><?php print $data->role; ?></td>
64 <td><?php print $data->format_select; ?></td>
65 <td><?php print $data->weight_select; ?></td>
66 </tr>
67 <?php $row++; ?>
68 <?php endforeach; ?>
69 </tbody>
70 </table>
71 </fieldset>
72
73 <?php print $form_submit; ?>

  ViewVC Help
Powered by ViewVC 1.1.2