Commit 3609c6ca authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

fixed alert box before delete

parent b3b22ab8
...@@ -40,18 +40,12 @@ ...@@ -40,18 +40,12 @@
<center> <center>
<a href="/add-dev"><button type="submit" class="btn btn-primary">Add Device</button></a> <a href="/add-dev"><button type="submit" class="btn btn-primary">Add Device</button></a>
<a href="/delete-app"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Application</button></a> <a href="/delete-app"><button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure? It will remove all devices and data.');">Delete Application</button></a>
</center> </center>
<br> <br>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascrypt">
function conf() {
return confirm("Are you sure? It will remove all devices and data.")
}
</script>
{% endblock %} {% endblock %}
...@@ -36,18 +36,12 @@ ...@@ -36,18 +36,12 @@
<center> <center>
<a href="/dev-data"><button type="submit" class="btn btn-primary">Data</button></a> <a href="/dev-data"><button type="submit" class="btn btn-primary">Data</button></a>
<a href="/dev-conf"><button type="submit" class="btn btn-primary">Configure</button></a> <a href="/dev-conf"><button type="submit" class="btn btn-primary">Configure</button></a>
<a href="/delete-dev"><button type="submit" class="btn btn-danger" onclick="return conf();">Delete Device</button></a> <a href="/delete-dev"><button type="submit" class="btn btn-danger" onclick="return confirm('Are you sure? It will remove all device data.');">Delete Device</button></a>
</center </center>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascrypt">
function conf() {
return confirm("Are you sure? It will remove all device data.")
}
</script>
{% endblock %} {% endblock %}
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