link a pagina di modifica
This commit is contained in:
parent
0e697a026b
commit
50ea18c1ab
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ function viewMap () {
|
||||||
var rid = data.id
|
var rid = data.id
|
||||||
$('#dialog').html('<div class="explaination"></div><div class="actions"></div>')
|
$('#dialog').html('<div class="explaination"></div><div class="actions"></div>')
|
||||||
$('#dialog .explaination').text(data.explaination)
|
$('#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').attr('title', rid)
|
||||||
$('#dialog').data('rid', rid)
|
$('#dialog').data('rid', rid)
|
||||||
$('#dialog').data('marker', this)
|
$('#dialog').data('marker', this)
|
||||||
|
|
|
@ -25,6 +25,6 @@ urlpatterns = [
|
||||||
path("api/rapporti/get", views.rapporti_get),
|
path("api/rapporti/get", views.rapporti_get),
|
||||||
path("api/rapporti/<int:pk>/edit", views.rapporto_edit_redirect),
|
path("api/rapporti/<int:pk>/edit", views.rapporto_edit_redirect),
|
||||||
path("api/rapporti/add", views.rapporto_add),
|
path("api/rapporti/add", views.rapporto_add),
|
||||||
path("api/rapporti/delete", views.rapporto_delete),
|
# path("api/rapporti/delete", views.rapporto_delete),
|
||||||
]
|
]
|
||||||
urlpatterns += staticfiles_urlpatterns()
|
urlpatterns += staticfiles_urlpatterns()
|
||||||
|
|
Loading…
Reference in a new issue