2016-12-13 01:01:47 +00:00
|
|
|
<?php
|
|
|
|
OCP\Util::addscript('gpxedit', 'admin');
|
|
|
|
OCP\Util::addstyle('gpxedit', 'admin');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="section" id="gpxedit">
|
|
|
|
<h2><?php p($l->t('GpxEdit additional settings')); ?></h2>
|
|
|
|
<label><?php p($l->t( 'Extra symbols' )); ?> </label>
|
|
|
|
<br />
|
|
|
|
<div id="extraSymbols">
|
2016-12-13 10:53:39 +00:00
|
|
|
<table id="extraSymbolsTable">
|
2016-12-13 01:01:47 +00:00
|
|
|
<?php
|
|
|
|
foreach($_['extraSymbolList'] as $symbol){
|
2016-12-13 10:53:39 +00:00
|
|
|
echo '<tr class="extraSymbol" id="';
|
2016-12-13 01:01:47 +00:00
|
|
|
p($symbol['smallname']);
|
2016-12-13 10:53:39 +00:00
|
|
|
echo '"><td>';
|
2016-12-13 01:01:47 +00:00
|
|
|
echo '<img src="';
|
|
|
|
p($symbol['name']);
|
2016-12-13 10:53:39 +00:00
|
|
|
echo '"/></td><td>';
|
2016-12-13 01:01:47 +00:00
|
|
|
echo '<label> ';
|
|
|
|
p($symbol['smallname']);
|
2016-12-13 10:53:39 +00:00
|
|
|
echo ' </label></td><td>';
|
2016-12-13 01:01:47 +00:00
|
|
|
echo '<button class="delExtraSymbol icon-delete icon" name="';
|
|
|
|
p($symbol['name']);
|
|
|
|
echo '" title="Remove"></button>';
|
2016-12-13 10:53:39 +00:00
|
|
|
echo '</td></tr>';
|
2016-12-13 01:01:47 +00:00
|
|
|
}
|
|
|
|
?>
|
2016-12-13 10:53:39 +00:00
|
|
|
</table>
|
2016-12-13 01:01:47 +00:00
|
|
|
</div>
|
|
|
|
<!--button id="addExtraSymbol" class="inlineblock button icon-upload" title="Upload new symbol image"></button-->
|
|
|
|
|
|
|
|
<form class="uploadButton" method="post" action="<?php p($_['uploadPath']) ?>">
|
|
|
|
<label for="addExtraSymbolName">New symbol name :</label>
|
|
|
|
<input type="text" name="addExtraSymbolName" id="addExtraSymbolName"></input>
|
|
|
|
|
2016-12-13 10:53:39 +00:00
|
|
|
<input id="uploadsymbol" class="upload-symbol-field" name="uploadsymbol" type="file"></input>
|
2016-12-13 01:01:47 +00:00
|
|
|
<label for="uploadsymbol" class="button icon-upload svg" id="uploadsymbol" title="<?php p($l->t('Upload new symbol image')) ?>"></label>
|
2016-12-13 10:53:39 +00:00
|
|
|
<span id="extraSymbolsSettingsMsg" class="msg"></span>
|
2016-12-13 01:01:47 +00:00
|
|
|
</form>
|
|
|
|
</div>
|