Редактирование со страницы точки
This commit is contained in:
parent
bf79cd275f
commit
f29cb9d94e
|
|
@ -19,6 +19,10 @@
|
||||||
</nobr>
|
</nobr>
|
||||||
/
|
/
|
||||||
<a href="/?point=<?= $point->id ?>">На карте</a>
|
<a href="/?point=<?= $point->id ?>">На карте</a>
|
||||||
|
<?php if($user && $user->isAdmin):?>
|
||||||
|
/
|
||||||
|
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
|
||||||
|
<?php endif;?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="text-align: justify;">
|
<div style="text-align: justify;">
|
||||||
|
|
|
||||||
|
|
@ -251,6 +251,10 @@ function showInfo(id)
|
||||||
if (isAdmin == '1')
|
if (isAdmin == '1')
|
||||||
{
|
{
|
||||||
description += '<button type="button" class="btn btn-default" onclick="editPoint(' + id + ')"><span class="glyphicon glyphicon-pencil"></span> <span class="label">Редактировать</span></button>';
|
description += '<button type="button" class="btn btn-default" onclick="editPoint(' + id + ')"><span class="glyphicon glyphicon-pencil"></span> <span class="label">Редактировать</span></button>';
|
||||||
|
if (getURLParameter('edit') == 'true')
|
||||||
|
{
|
||||||
|
editPoint(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
description += '</div>';
|
description += '</div>';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue