Skip to content

Commit

Permalink
removed deprecated ifequal tag from templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhra303 committed Feb 2, 2021
1 parent 74452e6 commit c2ae516
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 52 deletions.
8 changes: 4 additions & 4 deletions myapp/templates/accepted_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error== "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/all_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/assign_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static%}
{% block body %}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Status Updated Successfullly');
window.location.href="{% url 'all_notes' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<style>
.container1 {
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/changepassword.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{%load static%}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Password Changed Successfully');
window.location.href="{% url 'logout' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Invalid Login Credentials, Try Again');
</script>
{% endifequal %}
{% endif %}

<div class="container mt-5">
<div class="row">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{%load static%}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Logged in Successfully');
window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Invalid Login Credentials, Try Again');
</script>
{% endifequal %}
{% endif %}
<div class="container mt-5 text-light">
<div class="row">
<div class="col-sm-6">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/login_admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{%load static%}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Logged in Successfully');
window.location.href="{% url 'admin_home' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Invalid Login Credentials, Try Again');
</script>
{% endifequal %}
{% endif %}
<div class="container mt-5">
<div class="row">
<div class="col-sm-3" style="color:white;">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/pending_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/rejected_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{%load static%}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Signed Up Successfully');
window.location.href="{% url 'login' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}


<h1>Sign Up Form</h1>
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/upload_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
background-color: aliceblue;
}
</style>
{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert('Notes Uploaded Successfully');
window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error =="yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<div class="form-box" data-aos="fade-up" data-aos-duration="3000">
<div class="header-box mb-4">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/view_usernotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/view_users.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error =="yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down
8 changes: 4 additions & 4 deletions myapp/templates/viewall_usernotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
{% load static %}
{%block body%}

{% ifequal error "no" %}
{% if error == "no" %}
<script>
alert();
// window.location.href="{% url 'profile' %}";
</script>
{% endifequal %}
{% endif %}

{% ifequal error "yes" %}
{% if error == "yes" %}
<script>
alert('Something went wrong, Try Again');
</script>
{% endifequal %}
{% endif %}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css">
Expand Down

0 comments on commit c2ae516

Please sign in to comment.