nc-gpxedit/templates/admin.php

46 lines
2.0 KiB
PHP
Raw Normal View History

<?php
OCP\Util::addscript('gpxedit', 'admin');
OCP\Util::addstyle('gpxedit', 'admin');
?>
<div class="section" id="gpxedit">
2016-12-14 01:08:24 +00:00
<h2><?php p($l->t('GpxEdit')); ?></h2>
2016-12-13 11:56:46 +00:00
<h3><?php p($l->t('Extra symbols')); ?> </h3>
<label><?php p($l->t('Those symbols will be available in GpxEdit.')); ?></label><br/>
2016-12-14 01:08:24 +00:00
<label><?php p($l->t('Keep in mind that only symbol names are saved in gpx files. Other programs will display default symbol if they do not know a symbol name.')); ?></label><br/>
<br />
2018-11-08 15:31:32 +00:00
<div id="extraSymbols">
2016-12-13 10:53:39 +00:00
<table id="extraSymbolsTable">
2018-11-08 15:31:32 +00:00
<?php
foreach($_['extraSymbolList'] as $symbol){
2016-12-13 10:53:39 +00:00
echo '<tr class="extraSymbol" id="';
p($symbol['smallname']);
2016-12-13 10:53:39 +00:00
echo '"><td>';
echo '<img src="';
p($symbol['name']);
2016-12-13 10:53:39 +00:00
echo '"/></td><td>';
echo '<label> ';
p($symbol['smallname']);
2016-12-13 10:53:39 +00:00
echo ' </label></td><td>';
echo '<button class="delExtraSymbol icon-delete icon" name="';
p($symbol['name']);
echo '" title="'.$l->t('Delete').'"></button>';
2018-11-08 15:31:32 +00:00
echo '</td></tr>';
}
?>
2016-12-13 10:53:39 +00:00
</table>
2018-11-08 15:31:32 +00:00
</div>
2016-12-13 11:56:46 +00:00
<label><?php p($l->t('Recommended image ratio : 1:1')); ?></label><br/>
<label><?php p($l->t('Recommended image resolution : between 24x24 and 50x50')); ?></label><br/>
<label><?php p($l->t('Accepted image format : png')); ?></label><br/>
2018-11-08 15:31:32 +00:00
<form class="uploadButton" method="post" action="<?php p($_['uploadPath']) ?>">
<label for="addExtraSymbolName"><?php p($l->t('New symbol name')); ?> :</label>
<input type="text" name="addExtraSymbolName" id="addExtraSymbolName"></input>
2018-11-08 15:31:32 +00:00
<input id="uploadsymbol" class="upload-symbol-field" name="uploadsymbol" type="file"></input>
<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>
2018-11-08 15:31:32 +00:00
</form>
</div>