1<?php $helper = plugin_load('helper', 'confmanager'); ?>
2<div class="table">
3	<h3><?php echo $helper->getLang('user_defined_values') ?></h3>
4    <table class="inline confmanager_twoLine">
5        <tr>
6            <th><?php echo $helper->getLang('key') ?></th>
7            <th><?php echo $helper->getLang('value') ?></th>
8            <th><?php echo $helper->getLang('actions') ?></th>
9        </tr>
10        <?php foreach ($local as $key => $value): ?>
11            <tr>
12                <td>
13                	<input type="text" name="keys[]" id="key<?php echo $configCounter ?>" value="<?php echo hsc($key) ?>">
14                </td>
15                <td>
16                    <input
17                    	id="value<?php echo $configCounter ?>"
18                        type="text"
19                        name="values[<?php echo hsc($key) ?>]"
20                        value="<?php echo hsc($value) ?>"
21                        class="edit"
22                        />
23                </td>
24                <td>
25                    <?php include DOKU_PLUGIN . 'confmanager/tpl/deleteButton.php' ?>
26                </td>
27            </tr>
28        <?php endforeach ?>
29        <tr>
30            <td>
31                <input class="newItem" type="text" name="newKey[]">
32            </td>
33            <td>
34                <input class="newItem submitOnTab" type="text" name="newValue[]" />
35            </td>
36            <td/>
37        </tr>
38    </table>
39    <?php $this->helper->tplSaveButton() ?>
40    <h3 class="clickable hoverFeedback" title="<?php echo $helper->getLang('toggle_defaults') ?>">
41		<a id="toggleDefaults">
42			<?php echo $helper->getLang('default_values') ?>
43			<img id="defaults_toggle_button"/>
44		</a>
45	</h3>
46	<div class="defaults">
47		<p>
48			<?php echo hsc($helper->getLang('defaults_description')) ?>
49		</p>
50		<table class="inline confmanager_twoLine">
51			<tr>
52				<th><?php echo $helper->getLang('key') ?></th>
53	            <th><?php echo $helper->getLang('value') ?></th>
54			</tr>
55			<?php foreach($default as $key => $value): ?>
56				<tr>
57					<td class="defaultValue">
58						<?php echo hsc($key); ?>
59					</td>
60					<td class="defaultValue">
61						<?php echo hsc($value); ?>
62					</td>
63				</tr>
64			<?php endforeach ?>
65		</table>
66	</div>
67</div>