several changes on auth flow
Change-Id: I49ddbb074a9bc018b9e5becafbe5956fa5860333
Signed-off-by: lombardofr <lombardo@everyup.it>
diff --git a/vimhandler/template/vim_create.html b/vimhandler/template/vim_create.html
index 4368735..187dc87 100644
--- a/vimhandler/template/vim_create.html
+++ b/vimhandler/template/vim_create.html
@@ -19,7 +19,7 @@
{% block breadcrumb_body %}
{{ block.super }}
- <li><a href="{% url 'projects:vims:list' project_id=project_id %}">VIMS</a></li>
+ <li><a href="{% url 'projects:vims:list' %}">VIMS</a></li>
{% endblock %}
{% block content_body %}
@@ -27,7 +27,7 @@
<div class="row">
<div class="col-md-12">
- <form action='{% url "projects:vims:create" project_id=project_id %}' method="post">
+ <form action='{% url "projects:vims:create" %}' method="post">
{% csrf_token %}
<div class="box">
<div class="box-header with-border">
@@ -175,7 +175,7 @@
</div>
<div class="box-footer">
- <button onclick="location.href='{% url 'projects:vims:list' project_id=project_id%}'" class="btn btn-default pull-left">Back to
+ <button onclick="location.href='{% url 'projects:vims:list' %}'" class="btn btn-default pull-left">Back to
VIM Accounts
</button>
<button class="btn btn-primary pull-right">Create</button>
diff --git a/vimhandler/template/vim_list.html b/vimhandler/template/vim_list.html
index 0729e00..535f4db 100644
--- a/vimhandler/template/vim_list.html
+++ b/vimhandler/template/vim_list.html
@@ -19,7 +19,7 @@
{% block breadcrumb_body %}
{{ block.super }}
- <li><a href="{% url "projects:vims:list" project_id=project_id %}">VIMS</a></li>
+ <li><a href="{% url "projects:vims:list" %}">VIMS</a></li>
{% endblock %}
{% block content_body %}
@@ -33,7 +33,7 @@
<div class="box-header with-border">
<h3 class="box-title">Registered VIM</h3>
<div class="box-tools">
- <a href='{% url "projects:vims:create" project_id=project_id %}' class="btn btn-block btn-primary btn-sm"><i
+ <a href='{% url "projects:vims:create" %}' class="btn btn-block btn-primary btn-sm"><i
class="fa fa-plus"></i><span> New VIM</span></a>
</div>
</div>
@@ -64,10 +64,10 @@
<td>
<div class="btn-group">
<button type="button" class="btn btn-default"
- onclick="location.href='{% url "projects:vims:show" project_id=project_id vim_id=p|get:"_id" %}'" data-toggle="tooltip" data-placement="top" data-container="body" title="Show Info"><i
+ onclick="location.href='{% url "projects:vims:show" vim_id=p|get:"_id" %}'" data-toggle="tooltip" data-placement="top" data-container="body" title="Show Info"><i
class="fa fa-info"></i></button>
<button type="button" class="btn btn-default"
- onclick="javascript:deleteVim('{% url "projects:vims:delete" project_id=project_id vim_id=p|get:"_id" %}')" data-toggle="tooltip" data-placement="top" data-container="body" title="Delete"><i
+ onclick="javascript:deleteVim('{% url "projects:vims:delete" vim_id=p|get:"_id" %}')" data-toggle="tooltip" data-placement="top" data-container="body" title="Delete"><i
class="far fa-trash-alt" ></i></button>
</div>
</td>
diff --git a/vimhandler/template/vim_show.html b/vimhandler/template/vim_show.html
index 74e816a..13613de 100644
--- a/vimhandler/template/vim_show.html
+++ b/vimhandler/template/vim_show.html
@@ -18,7 +18,7 @@
{% block breadcrumb_body %}
{{ block.super }}
- <li><a href="{% url 'projects:vims:list' project_id=project_id%}">VIMS</a></li>
+ <li><a href="{% url 'projects:vims:list' %}">VIMS</a></li>
{% endblock %}
{% block content_body %}
@@ -121,7 +121,7 @@
</div>
<div class="box-footer">
<div class="">
- <button onclick="location.href='{% url 'projects:vims:list' project_id=project_id%}'" class="btn btn-primary">Back to VIM Accounts</button>
+ <button onclick="location.href='{% url 'projects:vims:list' %}'" class="btn btn-primary">Back to VIM Accounts</button>
</div>
</div>
</div>