Commit 758002ae authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

Move the '{create,import} version' buttons to the webapp details page

(this is to avoid discarding changes in the form if the user follows
one of these links)
parent aa05fa6f
......@@ -27,13 +27,6 @@
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#basic">Basic</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#advanced"><i class="fas fa-cogs"></i> Advanced</a></li>
{% url 'main:webapp_creation' as webapp_url %}
{% if request.get_full_path != webapp_url %}
<li class="nav-item"><a class="nav-link" href="{% url 'main:webapp_sandbox_panel' webapp.docker_name %}"><i class="fas fa-code-branch"></i> New version</a></li>
{% if webapp.imported %}
<li class="nav-item"><a class="nav-link" href="{% url 'main:webapp_version_import' webapp.docker_name %}"><i class="fas fa-cloud-download-alt"></i> New version</a></li>
{% endif %}
{% endif %}
</ul>
<p class="mt-3">You can create a new application here by giving a name.</p>
......
......@@ -27,11 +27,33 @@
href="{% url 'main:webapp_update' webapp.docker_name %}"
data-toggle="tooltip"
data-placement="top"
title="Update the application">
title="Edit properties">
<i class="fas fa-square"></i>
<i class="fa-inverse fas fa-pencil-alt" data-fa-transform="shrink-7 down-.25 left-.25"></i>
<span class="text-hide">Update the application</span>
<span class="text-hide">Edit properties</span>
</a>
<a class="fa-layers fa-2x"
href="{% url 'main:webapp_sandbox_panel' webapp.docker_name %}"
data-toggle="tooltip"
data-placement="top"
title="Create new version">
<i class="fas fa-square"></i>
<i class="fa-inverse fas fa-plus" data-fa-transform="shrink-7 down-.25 left-.25"></i>
<span class="text-hide">Create a new version</span>
</a>
{% if webapp.imported %}
<a class="fa-layers fa-2x"
href="{% url 'main:webapp_version_import' webapp.docker_name %}"
data-toggle="tooltip"
data-placement="top"
title="Import version">
<i class="fas fa-square"></i>
<i class="fa-inverse fas fa-cloud-download-alt" data-fa-transform="shrink-7 down-.25 left-2"></i>
<span class="text-hide">Import version</span>
</a>
{% endif %}
{% endif %}
</div>
</div>
......
Markdown is supported
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