MAPG-231 introduce unlisted maps

This commit is contained in:
bence committed 2022-05-26 14:23:08 +02:00
1 parent 4f45e213c3
commit d02aa4abe0
8 files changed
+39 -4

No files matched your search

+3
View File
@@ -54,6 +54,9 @@
<form id="metadataForm" class="marginTop" data-no-submit="true">
<input class="fullWidth" type="text" name="name" value="<?= $mapName ?>" placeholder="Name of the map">
<textarea class="fullWidth marginTop" name="description" rows="4" placeholder="Description of the map"><?= $mapDescription ?></textarea>
<div class="marginTop">
<input type="checkbox" id="unlisted" name="unlisted" <?= $mapUnlisted ? 'checked' : '' ?>><label for="unlisted">Unlisted</label>
</div>
<div class="right">
<button class="marginTop marginRight" type="submit">Apply</button><!--
--><button id="closeMetadataButton" class="gray marginTop" type="button">Close</button>
+1 -1
View File
@@ -86,7 +86,7 @@ TODO: condition!
@section(main)
<div id="mapContainer">
<?php foreach ($maps as $map): ?>
<div class="mapItem">
<div class="mapItem <?= $map['unlisted'] ? 'unlisted' : '' ?>">
<div class="title">
<p class="title"><?= $map['name'] ?></p>
</div>