Removed some unnecessary code

This commit is contained in:
PCoder 2017-07-07 23:25:38 +05:30
parent 79df35a765
commit aaff4f048d
3 changed files with 0 additions and 10 deletions

View file

@ -59,10 +59,6 @@
action="{% url 'hosting:delete_order' order.id %}">
{% csrf_token %}
<div class="modal-footer">
<!--button type="button" class="btn btn-default"
data-dismiss="modal">
{% trans "Close"%}
</button-->
<button type="submit" class="btn btn-danger btn-ok">{% trans "Delete"%}
</button>
</div>

View file

@ -59,10 +59,6 @@
<form method="post" action="{% url 'hosting:delete_ssh_key' user_key.id %}">
{% csrf_token %}
<div class="modal-footer">
<!--button type="button" class="btn btn-default"
data-dismiss="modal">
{% trans "Close"%}
</button-->
<button type="submit" class="btn btn-danger">{% trans "Delete"%}
</button>
</div>
@ -99,7 +95,6 @@
window.onload = function () {
{% for user_key in keys %}
// var locale_date = new Date(document.getElementById("ssh-created_at-{{user_key.id}}").textContent).toISOString();
var locale_date = moment.utc(document.getElementById("ssh-created_at-{{user_key.id}}").textContent,'YYYY-MM-DD HH:mm').toDate();
locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a");
document.getElementById('ssh-created_at-{{user_key.id}}').innerHTML = locale_date;

View file

@ -171,7 +171,6 @@
<p class="modal-text">{% trans "Are you sure do you want to cancel your Virtual Machine "%} {{virtual_machine.name}} ?</p>
</div>
<div class="modal-footer">
<!--button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel"%}</button-->
<a class="btn btn-danger btn-ok">OK</a>
</div>
</div>