Skip to content

Commit d394c7a

Browse files
committed
Dummy
1 parent 2090ce1 commit d394c7a

File tree

6 files changed

+32
-16
lines changed

6 files changed

+32
-16
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env
1010
/staticfiles/
1111

1212
#src
13-
*.sqlite*
13+
#*.sqlite*
1414

1515
.env
1616
node_modules

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ pip install -r requirements.txt
1414
python manage.py collectstatic --no-input
1515

1616
# Migrate DB
17-
python manage.py makemigrations
18-
python manage.py migrate
17+
#python manage.py makemigrations
18+
#python manage.py migrate

db.sqlite3

212 KB
Binary file not shown.

templates/authentication/sign-in.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
1515
Sign in to platform
1616
</h2>
17+
<p>
18+
<span>ADMIN: admin / Pass12__</span>
19+
<br />
20+
<span>USER: test / Pass12__</span>
21+
</p>
1722
<form class="mt-8 space-y-6" method="post" action="#">
1823
{% csrf_token %}
1924
{% for field in form %}
@@ -24,7 +29,8 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
2429
{% endfor %}
2530
<div class="flex items-start">
2631
<div class="flex items-center h-5">
27-
<input id="remember" aria-describedby="remember" name="remember" type="checkbox" class="w-4 h-4 border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600">
32+
<input id="remember" aria-describedby="remember" name="remember" type="checkbox"
33+
class="w-4 h-4 border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600">
2834
</div>
2935
<div class="ml-3 text-sm">
3036
<label for="remember" class="font-medium text-gray-900 dark:text-white">Remember me</label>

templates/includes/navigation.html

+17-7
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,15 @@
344344
class="z-50 hidden my-4 text-base list-none bg-white divide-y divide-gray-100 rounded shadow dark:bg-gray-700 dark:divide-gray-600"
345345
id="dropdown-2">
346346
<div class="px-4 py-3" role="none">
347-
<p class="text-sm text-gray-900 dark:text-white" role="none">
348-
Neil Sims
349-
</p>
347+
{% if request.user.is_authenticated %}
348+
<p class="text-sm font-medium text-gray-900 truncate dark:text-gray-300" role="none">
349+
{{ request.user.email }}
350+
</p>
351+
{% else %}
350352
<p class="text-sm font-medium text-gray-900 truncate dark:text-gray-300" role="none">
351-
neil.sims@flowbite.com
353+
guest.user@flowbite.com
352354
</p>
355+
{% endif %}
353356
</div>
354357
<ul class="py-1" role="none">
355358
<li>
@@ -368,9 +371,16 @@
368371
role="menuitem">Earnings</a>
369372
</li>
370373
<li>
371-
<a href="{% url "signout" %}"
372-
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white"
373-
role="menuitem">Sign out</a>
374+
{% if request.user.is_authenticated %}
375+
<a href="{% url 'signout' %}"
376+
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white"
377+
role="menuitem">Sign Out</a>
378+
{% else %}
379+
<a href="{% url 'signin' %}"
380+
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white"
381+
role="menuitem">Sign In</a>
382+
{% endif %}
383+
374384
</li>
375385
</ul>
376386
</div>

templates/includes/sidebar.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</li>
3838
{% if request.user.is_authenticated %}
3939
<li>
40-
<a href="{% url "profile" %}"
40+
<a href="{% url 'profile' %}"
4141
class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 ">
4242
<svg class="w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white"
4343
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
@@ -67,23 +67,23 @@
6767
</button>
6868
<ul id="dropdown-dashboard" class="hidden py-2 space-y-2">
6969
<li>
70-
<a href="{% url "tasks" %}"
70+
<a href="{% url 'tasks' %}"
7171
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Tasks</a>
7272
</li>
7373
<li>
7474
<a href="#"
7575
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Users</a>
7676
</li>
7777
<li>
78-
<a href="{% url "charts" %}"
78+
<a href="{% url 'charts' %}"
7979
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Charts</a>
8080
</li>
8181
<li>
82-
<a href="{% url "datatables" %}"
82+
<a href="{% url 'datatables' %}"
8383
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">Datatables</a>
8484
</li>
8585
<li>
86-
<a href="#"
86+
<a href="/api/product/"
8787
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700">API</a>
8888
</li>
8989
</ul>

0 commit comments

Comments
 (0)