link a pagina di modifica

This commit is contained in:
boyska 2020-03-08 00:40:35 +01:00
parent 0e697a026b
commit 50ea18c1ab
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ function viewMap () {
var rid = data.id
$('#dialog').html('<div class="explaination"></div><div class="actions"></div>')
$('#dialog .explaination').text(data.explaination)
$('#dialog .actions').html('<button class="btn-elimina">Elimina</button>')
$('#dialog .actions').append($('<a href="#">Modifica</a>').attr('href', '/api/rapporti/' + rid + '/edit'))
$('#dialog').attr('title', rid)
$('#dialog').data('rid', rid)
$('#dialog').data('marker', this)

View file

@ -25,6 +25,6 @@ urlpatterns = [
path("api/rapporti/get", views.rapporti_get),
path("api/rapporti/<int:pk>/edit", views.rapporto_edit_redirect),
path("api/rapporti/add", views.rapporto_add),
path("api/rapporti/delete", views.rapporto_delete),
# path("api/rapporti/delete", views.rapporto_delete),
]
urlpatterns += staticfiles_urlpatterns()