Пояснение при отсутствии маршрутов

This commit is contained in:
Krivchikov Dmitry 2014-05-04 21:10:08 +04:00
parent 73c2a8f9ed
commit 0bbc8fa78d
1 changed files with 5 additions and 1 deletions

View File

@ -10,14 +10,18 @@
<button class="btn btn-info" onclick="buildRoute()"><span class="glyphicon glyphicon-send"></span> Проложить</button>
</div>
</div>
<?php if ($user && $routes): ?>
<?php if ($user): ?>
<div id="myRoutesWindow" class="popover fade in" style="display: none; position: absolute; top: 50px; right: 7px; left: auto; max-width: none;">
<h3 class="popover-title">Мои маршруты</h3>
<div class="popover-content">
<div id="routes">
<?php if ($routes): ?>
<?php foreach ($routes as $route) : ?>
<div class="route" onclick="loadRoute(<?= $route['id'] ?>)"><span onclick="deleteRoute(<?= $route['id'] ?>);$(this).parent().remove();event.stopPropagation();">&times;</span> <?= $route['name'] ?></div>
<?php endforeach; ?>
<?php else: ?>
У вас пока нет сохраненных маршрутов.
<?php endif; ?>
</div>
<button class="btn btn-default" type="button" onclick="$('#myRoutesWindow').toggle(200)">Скрыть</button>
</div>