Skip to content

Commit

Permalink
(#141) Adding navbar and footer to login pages (#195)
Browse files Browse the repository at this point in the history
* Adding navbar and footer to login pages

* test fix
  • Loading branch information
shub-garg authored Nov 18, 2024
1 parent bc288f2 commit 53c1a11
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 40 deletions.
17 changes: 4 additions & 13 deletions src/accounts/templates/register.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% extends 'base.html' %}
{% block title %}Register{% endblock %}
{% load static %}

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link href="{% static 'css/styles.css' %}" rel="stylesheet">

</head>
<body class="bg-gray-100 font-sans">
{% block content %}
<div class="container mx-auto px-4 h-screen flex items-center justify-center">
<div class="w-full max-w-md">
<div class="bg-white shadow-md rounded-lg overflow-hidden">
Expand Down Expand Up @@ -40,5 +32,4 @@ <h3 class="text-2xl font-bold">Register</h3>
</div>
</div>
</div>
</body>
</html>
{% endblock %}
17 changes: 4 additions & 13 deletions src/accounts/templates/service_provider_login.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% extends 'base.html' %}
{% block title %}Service Provider Login{% endblock %}
{% load static %}

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Service Provider Login</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
</head>
<body class="bg-gray-100 font-sans">
{% block content %}
<div class="container mx-auto px-4 h-screen flex items-center justify-center">
<div class="w-full max-w-md">
<div class="bg-white shadow-md rounded-lg overflow-hidden">
Expand Down Expand Up @@ -67,5 +59,4 @@ <h3 class="text-2xl font-bold">Service Provider Login</h3>
</div>
</div>
</div>
</body>
</html>
{% endblock %}
17 changes: 4 additions & 13 deletions src/accounts/templates/user_login.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% extends 'base.html' %}
{% block title %}Service Provider Login{% endblock %}
{% load static %}
{% load socialaccount %}

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Login</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
</head>
<body class="bg-gray-100 font-sans">
{% block content %}
<div class="container mx-auto px-4 h-screen flex items-center justify-center">
<div class="w-full max-w-md">
<div class="bg-white shadow-md rounded-lg overflow-hidden">
Expand Down Expand Up @@ -80,5 +72,4 @@ <h1 class="text-2xl font-bold">User Login</h1>
</div>
</div>
</div>
</body>
</html>
{% endblock %}
2 changes: 1 addition & 1 deletion src/services/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ def test_get_pending_approval_services_client_error(self, mock_boto_resource):
mock_table.scan.side_effect = ClientError(error_response, "Scan")

services = self.service_repo.get_pending_approval_services()
self.assertNotEqual(services, [])
self.assertEqual(services, [])
# mock_table.scan.assert_called_once_with(
# FilterExpression=Attr("ServiceStatus").eq("PENDING_APPROVAL")
# )
Expand Down

0 comments on commit 53c1a11

Please sign in to comment.