Commit 90c7cdd9 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Updating the endpoints for webapp details and job creation



In order to reduce the number of layers into the navigation, we decided
to integrate the job form inside the webapp detail page. Even if the
template is about the webapp details, I kept as an endpoint `app` but
the class is still `JobCreate` because all the process is about the job
creation.

Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 7c06b6b4
......@@ -51,11 +51,10 @@ urlpatterns = [
url(r'^apps/(?P<docker_name>[\w-]+)/update/$', views.WebappUpdate.as_view(), name="webapp_update"),
url(r'^apps/create/$', views.WebappCreate.as_view(), name='webapp_creation'),
url(r'^apps/(?P<docker_name>[\w-]+)/sandbox/$', views.WebappSandboxCreation.as_view(), name="webapp_sandbox_creation"),
url(r'^app/(?P<docker_name>[\w-]+)/$', views.WebappDetail.as_view(), name='webapp_detail'),
url(r'^app/(?P<docker_name>[\w-]+)/$', views.JobCreate.as_view(), name='webapp_detail'),
url(r'^jobs/$', views.JobList.as_view(), name='job_list'),
url(r'^jobs/(?P<pk>\d+)/$', views.JobDetail.as_view(), name='job_detail'),
url(r'^jobs/(?P<docker_name>[\w-]+)/create/$', views.JobCreate.as_view(), name='job_create'),
url(r'^jobs/delete/(?P<pk>\d+)/$', views.JobDelete.as_view(), name='job_delete'),
url(r'^jobs/(?P<pk>\d+)/download/(?P<filename>(.*))$', views.JobFileDownload.as_view(), name='job_download_file'),
url(r'^jobs/(?P<pk>\d+)/download/all/$', views.JobFileDownloadAll.as_view(), name='job_download_all'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment