root / drupal7 / sites / all / modules / sweaver / plugins / sweaver_plugin_editor / sweaver-plugin-editor-config-editor.tpl.php @ 651307cd
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Template file for the editor configuration form.
|
6 |
* You get 4 regions and width a configurable label and all enabled
|
7 |
* properties are available to drag and drop into a region.
|
8 |
*/
|
9 |
|
10 |
$count = 0; |
11 |
?>
|
12 |
|
13 |
<div id="editor-configuration-form"> |
14 |
|
15 |
<table id="properties" class="sticky-enabled"> |
16 |
<tbody>
|
17 |
<?php foreach ($rows as $container_key => $container_settings): ?> |
18 |
|
19 |
<!-- container -->
|
20 |
<tr class="container-row" id="<?php print $container_key; ?>"> |
21 |
<td colspan="3"><?php print $container_settings['textfield']; ?></td> |
22 |
</tr>
|
23 |
|
24 |
<?php if (isset($container_settings['properties'])): ?> |
25 |
<?php foreach ($container_settings['properties'] as $property_key => $property): ?> |
26 |
<!-- fields -->
|
27 |
<tr class="<?php print $count % 2 == 0 ? 'odd' : 'even'; ?> draggable"> |
28 |
<td><?php print $property->name; ?></td> |
29 |
<td><?php print $property->container; ?></td> |
30 |
<td><?php print $property->weight; ?></td> |
31 |
</tr>
|
32 |
<?php $count++; ?> |
33 |
<?php endforeach; ?> |
34 |
<?php endif; ?> |
35 |
<?php endforeach; ?> |
36 |
|
37 |
</tbody>
|
38 |
</table>
|
39 |
|
40 |
<?php print $submit; ?> |
41 |
|
42 |
</div>
|