automated push from the terminal
This commit is contained in:
136
templates/.restore/.cascadr/.trash/cascadr (copy 1).py
Executable file
136
templates/.restore/.cascadr/.trash/cascadr (copy 1).py
Executable file
@@ -0,0 +1,136 @@
|
||||
import re
|
||||
|
||||
import sys
|
||||
|
||||
fileToUpdate = sys.argv[1]
|
||||
|
||||
print(fileToUpdate)
|
||||
|
||||
nodeOpenName="22222"
|
||||
|
||||
nodeCloseName="44444"
|
||||
|
||||
def replaceCSSIncludes():
|
||||
|
||||
templateSectionBegin="<styling>"
|
||||
|
||||
templateSectionEnd="</styling>"
|
||||
|
||||
with open('templates/html-includes-styling.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName, substitutionContent, ddd, flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def replaceJavascriptIncludes():
|
||||
|
||||
templateSectionBegin="<!-- body / javascript / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- body / javascript / end -->"
|
||||
|
||||
with open('templates/body-javascript-includes.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def updateSideBarDesktop():
|
||||
|
||||
templateSectionBegin="<sidebar.desktop>"
|
||||
|
||||
templateSectionEnd="</sidebar.desktop>"
|
||||
|
||||
with open('templates/navigation-sidebar-desktop.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def updateSideBarMobile():
|
||||
|
||||
templateSectionBegin="<sidebar.mobile>"
|
||||
|
||||
templateSectionEnd="</sidebar.mobile>"
|
||||
|
||||
with open('templates/navigation-sidebar-mobile.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
###################################################################
|
||||
##
|
||||
## driver
|
||||
##
|
||||
###################################################################
|
||||
|
||||
##replaceCSSIncludes()
|
||||
|
||||
replaceJavascriptIncludes()
|
||||
|
||||
##updateSideBarDesktop()
|
||||
|
||||
##updateSideBarMobile()
|
||||
13
templates/.restore/.cascadr/cascadr.bash
Executable file
13
templates/.restore/.cascadr/cascadr.bash
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
sourceDirectory="../"
|
||||
|
||||
appName="cascadr.py"
|
||||
|
||||
##
|
||||
|
||||
echo "##"
|
||||
echo "## start cascadr template work"
|
||||
echo "##"
|
||||
|
||||
find $sourceDirectory -iname "*.html" -exec python3 $appName {} \;
|
||||
194
templates/.restore/.cascadr/cascadr.py
Normal file
194
templates/.restore/.cascadr/cascadr.py
Normal file
@@ -0,0 +1,194 @@
|
||||
import re
|
||||
|
||||
import sys
|
||||
|
||||
fileToUpdate = sys.argv[1]
|
||||
|
||||
print(fileToUpdate)
|
||||
|
||||
nodeOpenName="22222"
|
||||
|
||||
nodeCloseName="44444"
|
||||
|
||||
def cascadeStylingIncludes():
|
||||
|
||||
templateSectionBegin="<!-- head / css / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- head / css / end -->"
|
||||
|
||||
with open('templates/head.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def cascadeJavascriptIncludes():
|
||||
|
||||
templateSectionBegin="<!-- body / javascript / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- body / javascript / end -->"
|
||||
|
||||
with open('templates/body-javascript-includes.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def cascadeFooterContent():
|
||||
|
||||
templateSectionBegin="<!-- body / footer / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- body / footer / end -->"
|
||||
|
||||
with open('templates/body-footer-content.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def cascadeTopNavigation():
|
||||
|
||||
templateSectionBegin="<!-- Navbar -->"
|
||||
|
||||
templateSectionEnd=" <!-- /.navbar -->"
|
||||
|
||||
with open('templates/navigation-top-menu.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def cascadeSideNavigation():
|
||||
|
||||
templateSectionBegin="<!-- navigation / side / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- navigation / side / end -->"
|
||||
|
||||
with open('templates/navigation-side-menu.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
def cascadeFlyoutContent():
|
||||
|
||||
templateSectionBegin="<!-- body / flyout / begin -->"
|
||||
|
||||
templateSectionEnd="<!-- body / flyout / end -->"
|
||||
|
||||
with open('templates/body-flyout-content.template') as templateFile:
|
||||
|
||||
substitutionContent = templateFile.read()
|
||||
|
||||
with open(fileToUpdate) as targetSubstitutionFile:
|
||||
s = targetSubstitutionFile.read()
|
||||
|
||||
ddd=s
|
||||
|
||||
ddd=re.sub(templateSectionBegin, templateSectionBegin+nodeOpenName, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(templateSectionEnd, nodeCloseName+templateSectionEnd, ddd, flags=re.DOTALL)
|
||||
|
||||
ddd=re.sub(nodeOpenName+".*"+nodeCloseName,substitutionContent,ddd,flags=re.DOTALL)
|
||||
|
||||
f = open(fileToUpdate, "w")
|
||||
|
||||
f.write(ddd)
|
||||
|
||||
f.close()
|
||||
|
||||
###################################################################
|
||||
##
|
||||
## driver
|
||||
##
|
||||
###################################################################
|
||||
|
||||
cascadeStylingIncludes()
|
||||
|
||||
##cascadeJavascriptIncludes()
|
||||
|
||||
##cascadeFooterContent()
|
||||
|
||||
##cascadeTopNavigation()
|
||||
|
||||
##cascadeSideNavigation()
|
||||
|
||||
##cascadeFlyoutContent()
|
||||
##updateSideBarDesktop()
|
||||
|
||||
##updateSideBarMobile()
|
||||
@@ -0,0 +1,278 @@
|
||||
<!-- Desktop sidebar -->
|
||||
<aside
|
||||
class="z-20 hidden w-64 overflow-y-auto bg-white dark:bg-gray-800 md:block flex-shrink-0"
|
||||
>
|
||||
<div class="py-4 text-gray-500 dark:text-gray-400">
|
||||
<a
|
||||
class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
Windmill
|
||||
</a>
|
||||
<ul class="mt-6">
|
||||
<li class="relative px-6 py-3">
|
||||
<span
|
||||
class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 dark:text-gray-100"
|
||||
href="index.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="forms.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Forms</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="cards.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Cards</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="charts.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
|
||||
></path>
|
||||
<path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
|
||||
</svg>
|
||||
<span class="ml-4">Charts</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="buttons.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Buttons</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="modals.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Modals</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<nav.pages>
|
||||
|
||||
<li class="relative px-6 py-3">
|
||||
<button
|
||||
class="inline-flex items-center justify-between w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
@click="togglePagesMenu"
|
||||
aria-haspopup="true"
|
||||
>
|
||||
|
||||
|
||||
|
||||
<span class="inline-flex items-center">
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"
|
||||
></path>
|
||||
</svg>
|
||||
|
||||
<span class="ml-4">Tournaments</span>
|
||||
</span>
|
||||
<svg
|
||||
class="w-4 h-4"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</button>
|
||||
<template x-if="isPagesMenuOpen">
|
||||
<ul
|
||||
x-transition:enter="transition-all ease-in-out duration-300"
|
||||
x-transition:enter-start="opacity-25 max-h-0"
|
||||
x-transition:enter-end="opacity-100 max-h-xl"
|
||||
x-transition:leave="transition-all ease-in-out duration-300"
|
||||
x-transition:leave-start="opacity-100 max-h-xl"
|
||||
x-transition:leave-end="opacity-0 max-h-0"
|
||||
class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
|
||||
aria-label="submenu"
|
||||
>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/login.html">Tournament Dashboard</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/create-account.html">
|
||||
Tournament Manager
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/forgot-password.html">
|
||||
Add New Tournament
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</template>
|
||||
</li>
|
||||
|
||||
|
||||
</nav.pages>
|
||||
|
||||
<nav.tables>
|
||||
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="tables.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
|
||||
</svg>
|
||||
<span class="ml-4">Tables</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav.tables>
|
||||
|
||||
|
||||
</ul>
|
||||
<div class="px-6 my-6">
|
||||
<button
|
||||
class="flex items-center justify-between w-full px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
|
||||
>
|
||||
Create account
|
||||
<span class="ml-2" aria-hidden="true">+</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -0,0 +1,538 @@
|
||||
<!-- Mobile sidebar -->
|
||||
<!-- Backdrop -->
|
||||
<div
|
||||
x-show="isSideMenuOpen"
|
||||
x-transition:enter="transition ease-in-out duration-150"
|
||||
x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="transition ease-in-out duration-150"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
class="fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center"
|
||||
></div>
|
||||
<aside
|
||||
class="fixed inset-y-0 z-20 flex-shrink-0 w-64 mt-16 overflow-y-auto bg-white dark:bg-gray-800 md:hidden"
|
||||
x-show="isSideMenuOpen"
|
||||
x-transition:enter="transition ease-in-out duration-150"
|
||||
x-transition:enter-start="opacity-0 transform -translate-x-20"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="transition ease-in-out duration-150"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0 transform -translate-x-20"
|
||||
@click.away="closeSideMenu"
|
||||
@keydown.escape="closeSideMenu"
|
||||
>
|
||||
<div class="py-4 text-gray-500 dark:text-gray-400">
|
||||
<a
|
||||
class="ml-6 text-lg font-bold text-gray-800 dark:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
Windmill
|
||||
</a>
|
||||
<ul class="mt-6">
|
||||
<li class="relative px-6 py-3">
|
||||
<span
|
||||
class="absolute inset-y-0 left-0 w-1 bg-purple-600 rounded-tr-lg rounded-br-lg"
|
||||
aria-hidden="true"
|
||||
></span>
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold text-gray-800 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200 dark:text-gray-100"
|
||||
href="index.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="forms.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Forms</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="cards.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Cards</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="charts.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"
|
||||
></path>
|
||||
<path d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"></path>
|
||||
</svg>
|
||||
<span class="ml-4">Charts</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="buttons.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Buttons</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="modals.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Modals</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<a
|
||||
class="inline-flex items-center w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
href="tables.html"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path d="M4 6h16M4 10h16M4 14h16M4 18h16"></path>
|
||||
</svg>
|
||||
<span class="ml-4">Tables</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="relative px-6 py-3">
|
||||
<button
|
||||
class="inline-flex items-center justify-between w-full text-sm font-semibold transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
@click="togglePagesMenu"
|
||||
aria-haspopup="true"
|
||||
>
|
||||
<span class="inline-flex items-center">
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"
|
||||
></path>
|
||||
</svg>
|
||||
<span class="ml-4">Pages</span>
|
||||
</span>
|
||||
<svg
|
||||
class="w-4 h-4"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</button>
|
||||
<template x-if="isPagesMenuOpen">
|
||||
<ul
|
||||
x-transition:enter="transition-all ease-in-out duration-300"
|
||||
x-transition:enter-start="opacity-25 max-h-0"
|
||||
x-transition:enter-end="opacity-100 max-h-xl"
|
||||
x-transition:leave="transition-all ease-in-out duration-300"
|
||||
x-transition:leave-start="opacity-100 max-h-xl"
|
||||
x-transition:leave-end="opacity-0 max-h-0"
|
||||
class="p-2 mt-2 space-y-2 overflow-hidden text-sm font-medium text-gray-500 rounded-md shadow-inner bg-gray-50 dark:text-gray-400 dark:bg-gray-900"
|
||||
aria-label="submenu"
|
||||
>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/login.html">Login</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/create-account.html">
|
||||
Create account
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/forgot-password.html">
|
||||
Forgot password
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/404.html">404</a>
|
||||
</li>
|
||||
<li
|
||||
class="px-2 py-1 transition-colors duration-150 hover:text-gray-800 dark:hover:text-gray-200"
|
||||
>
|
||||
<a class="w-full" href="pages/blank.html">Blank</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="px-6 my-6">
|
||||
<button
|
||||
class="flex items-center justify-between px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
|
||||
>
|
||||
Create account
|
||||
<span class="ml-2" aria-hidden="true">+</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="flex flex-col flex-1 w-full">
|
||||
<header class="z-10 py-4 bg-white shadow-md dark:bg-gray-800">
|
||||
<div
|
||||
class="container flex items-center justify-between h-full px-6 mx-auto text-purple-600 dark:text-purple-300"
|
||||
>
|
||||
<!-- Mobile hamburger -->
|
||||
<button
|
||||
class="p-1 mr-5 -ml-1 rounded-md md:hidden focus:outline-none focus:shadow-outline-purple"
|
||||
@click="toggleSideMenu"
|
||||
aria-label="Menu"
|
||||
>
|
||||
<svg
|
||||
class="w-6 h-6"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Search input -->
|
||||
<div class="flex justify-center flex-1 lg:mr-32">
|
||||
<div
|
||||
class="relative w-full max-w-xl mr-6 focus-within:text-purple-500"
|
||||
>
|
||||
<div class="absolute inset-y-0 flex items-center pl-2">
|
||||
<svg
|
||||
class="w-4 h-4"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</div>
|
||||
<input
|
||||
class="w-full pl-8 pr-2 text-sm text-gray-700 placeholder-gray-600 bg-gray-100 border-0 rounded-md dark:placeholder-gray-500 dark:focus:shadow-outline-gray dark:focus:placeholder-gray-600 dark:bg-gray-700 dark:text-gray-200 focus:placeholder-gray-500 focus:bg-white focus:border-purple-300 focus:outline-none focus:shadow-outline-purple form-input"
|
||||
type="text"
|
||||
placeholder="Search for projects"
|
||||
aria-label="Search"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="flex items-center flex-shrink-0 space-x-6">
|
||||
<!-- Theme toggler -->
|
||||
<li class="flex">
|
||||
<button
|
||||
class="rounded-md focus:outline-none focus:shadow-outline-purple"
|
||||
@click="toggleTheme"
|
||||
aria-label="Toggle color mode"
|
||||
>
|
||||
<template x-if="!dark">
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"
|
||||
></path>
|
||||
</svg>
|
||||
</template>
|
||||
<template x-if="dark">
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</template>
|
||||
</button>
|
||||
</li>
|
||||
<!-- Notifications menu -->
|
||||
<li class="relative">
|
||||
<button
|
||||
class="relative align-middle rounded-md focus:outline-none focus:shadow-outline-purple"
|
||||
@click="toggleNotificationsMenu"
|
||||
@keydown.escape="closeNotificationsMenu"
|
||||
aria-label="Notifications"
|
||||
aria-haspopup="true"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
aria-hidden="true"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"
|
||||
></path>
|
||||
</svg>
|
||||
<!-- Notification badge -->
|
||||
<span
|
||||
aria-hidden="true"
|
||||
class="absolute top-0 right-0 inline-block w-3 h-3 transform translate-x-1 -translate-y-1 bg-red-600 border-2 border-white rounded-full dark:border-gray-800"
|
||||
></span>
|
||||
</button>
|
||||
<template x-if="isNotificationsMenuOpen">
|
||||
<ul
|
||||
x-transition:leave="transition ease-in duration-150"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
@click.away="closeNotificationsMenu"
|
||||
@keydown.escape="closeNotificationsMenu"
|
||||
class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:text-gray-300 dark:border-gray-700 dark:bg-gray-700"
|
||||
>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<span>Messages</span>
|
||||
<span
|
||||
class="inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-600 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-600"
|
||||
>
|
||||
13
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<span>Sales</span>
|
||||
<span
|
||||
class="inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-600 bg-red-100 rounded-full dark:text-red-100 dark:bg-red-600"
|
||||
>
|
||||
2
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<span>Alerts</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</li>
|
||||
<!-- Profile menu -->
|
||||
<li class="relative">
|
||||
<button
|
||||
class="align-middle rounded-full focus:shadow-outline-purple focus:outline-none"
|
||||
@click="toggleProfileMenu"
|
||||
@keydown.escape="closeProfileMenu"
|
||||
aria-label="Account"
|
||||
aria-haspopup="true"
|
||||
>
|
||||
<img
|
||||
class="object-cover w-8 h-8 rounded-full"
|
||||
src="https://images.unsplash.com/photo-1502378735452-bc7d86632805?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=aa3a807e1bbdfd4364d1f449eaa96d82"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</button>
|
||||
<template x-if="isProfileMenuOpen">
|
||||
<ul
|
||||
x-transition:leave="transition ease-in duration-150"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
@click.away="closeProfileMenu"
|
||||
@keydown.escape="closeProfileMenu"
|
||||
class="absolute right-0 w-56 p-2 mt-2 space-y-2 text-gray-600 bg-white border border-gray-100 rounded-md shadow-md dark:border-gray-700 dark:text-gray-300 dark:bg-gray-700"
|
||||
aria-label="submenu"
|
||||
>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 mr-3"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
||||
></path>
|
||||
</svg>
|
||||
<span>Profile</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 mr-3"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
|
||||
></path>
|
||||
<path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
|
||||
</svg>
|
||||
<span>Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex">
|
||||
<a
|
||||
class="inline-flex items-center w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
||||
href="#"
|
||||
>
|
||||
<svg
|
||||
class="w-4 h-4 mr-3"
|
||||
aria-hidden="true"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
|
||||
></path>
|
||||
</svg>
|
||||
<span>Log out</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
16
templates/.restore/.cascadr/templates/.trash/body-flyout-content.template
Executable file
16
templates/.restore/.cascadr/templates/.trash/body-flyout-content.template
Executable file
@@ -0,0 +1,16 @@
|
||||
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
|
||||
<h4>Current Project</h4>
|
||||
|
||||
<div id="projectBannerArea" class="btn-group-vertical col-12">
|
||||
|
||||
<button id="projectBanner" disabled type="button" class="btn btn-lg btn-success">--</button>
|
||||
|
||||
</div>
|
||||
|
||||
<h4>Select Project</h4>
|
||||
|
||||
<div id="projectSwitcherArea" class="btn-group-vertical col-12"></div>
|
||||
|
||||
</aside>
|
||||
15
templates/.restore/.cascadr/templates/.trash/body-footer-content.template
Executable file
15
templates/.restore/.cascadr/templates/.trash/body-footer-content.template
Executable file
@@ -0,0 +1,15 @@
|
||||
<footer class="main-footer">
|
||||
|
||||
<div class="float-right d-none d-sm-block">
|
||||
|
||||
</div>
|
||||
|
||||
<strong>
|
||||
|
||||
Made with ❤ by the
|
||||
|
||||
<a href="https://softwareshinobi.digital" target="softwareshinobi">Software Shinobi</a>.
|
||||
|
||||
</strong>
|
||||
|
||||
</footer>
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- custom stuff -->
|
||||
|
||||
<script src="/scripting/config.js"></script>
|
||||
|
||||
<script src="/plugins/jquery/jquery.min.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js "></script>
|
||||
|
||||
<script src="/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script src="/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
|
||||
|
||||
<script src="/dist/js/adminlte.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/toastr@2.1.4/toastr.min.js "></script>
|
||||
|
||||
<script src="/project/scripting/flyout.js"></script>
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
|
||||
|
||||
<link rel="stylesheet" href="./assets/css/tailwind.output.css" />
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css" />
|
||||
188
templates/.restore/.cascadr/templates/.trash/navigation-side-menu.template
Executable file
188
templates/.restore/.cascadr/templates/.trash/navigation-side-menu.template
Executable file
@@ -0,0 +1,188 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
|
||||
<aside class="main-sidebar sidebar-darkrrr-primary elevation-4">
|
||||
|
||||
<!-- Brand Logo -->
|
||||
|
||||
<a href="/index.html" class="brand-link">
|
||||
|
||||
<img src="https://github.com/softwareshinobi/assets.softwareshinobi.digital/blob/production/imagery/valorantdigital/valorant.png?raw=true" alt="" class="brand-image img-circle elevation-3" style="opacity: .8">
|
||||
|
||||
<span class="brand-text font-weight-light">
|
||||
|
||||
Workspace
|
||||
|
||||
</span>
|
||||
|
||||
</a>
|
||||
|
||||
<!-- Sidebar -->
|
||||
|
||||
<div class="sidebar">
|
||||
|
||||
<!-- Sidebar user (optional) -->
|
||||
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
|
||||
<div class="image">
|
||||
|
||||
<img src="https://avatars.githubusercontent.com/u/45909594?v=4" class="img-circle elevation-2" alt="Software Shinobi">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="info">
|
||||
|
||||
<a href="#" class="d-block">
|
||||
|
||||
software shinobi
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- SidebarSearch Form -->
|
||||
<div styles="visibility:hidden" class="form-inline">
|
||||
<div class="input-group" data-widget="sidebar-search">
|
||||
<input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-sidebar">
|
||||
<i class="fas fa-search fa-fw"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
|
||||
<nav class="mt-2">
|
||||
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
|
||||
<!-- Add icons to the links using the .nav-icon class
|
||||
with font-awesome or any other icon font library -->
|
||||
|
||||
<li class="nav-header">Productivity</li>
|
||||
|
||||
|
||||
|
||||
<!--home links -->
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link">
|
||||
<i class="nav-icon fas fa-table"></i>
|
||||
<p>
|
||||
|
||||
home
|
||||
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="/home/links.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>link portal</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<!--productivity links -->
|
||||
<li class="nav-item menu-open">
|
||||
|
||||
<a class="nav-link">
|
||||
<i class="nav-icon fas fa-columns"></i>
|
||||
<p>
|
||||
|
||||
projects
|
||||
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
|
||||
|
||||
<ul class="nav nav-treeview">
|
||||
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="/project/list.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>project list</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="/project/kanban.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>kanban board</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="/project/calendar.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>calendar</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="/project/create.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>create project</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="/story/create.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>create story</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!--dev links -->
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link">
|
||||
<i class="nav-icon fas fa-table"></i>
|
||||
<p>
|
||||
|
||||
.development
|
||||
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="/story/list.html" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>all stories</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
68
templates/.restore/.cascadr/templates/.trash/navigation-top-menu.template
Executable file
68
templates/.restore/.cascadr/templates/.trash/navigation-top-menu.template
Executable file
@@ -0,0 +1,68 @@
|
||||
<nav class="main-header navbar navbar-expand navbar-fpink navbar-daddrk">
|
||||
|
||||
<!-- Left navbar links -->
|
||||
|
||||
<ul class="navbar-nav">
|
||||
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/home/links.html" class="nav-link">Home</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/project/list.html" class="nav-link">Projects</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/project/kanban.html" class="nav-link">Kanban</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/project/calendar.html" class="nav-link">Calendar</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/project/create.html" class="nav-link">Create Project</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="/story/create.html" class="nav-link">Create Story</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<!-- Right navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
|
||||
<i class="fas fa-expand-arrows-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
|
||||
<i class="fas fa-th-large"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
4
templates/.restore/.cascadr/templates/head.template
Executable file
4
templates/.restore/.cascadr/templates/head.template
Executable file
@@ -0,0 +1,4 @@
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
40
templates/.restore/.cascadr/templates/sidebar.template
Executable file
40
templates/.restore/.cascadr/templates/sidebar.template
Executable file
@@ -0,0 +1,40 @@
|
||||
<nav class="navbar navbar-expand-lg bg-primary" data-bs-theme="dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Navbar</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarColor01">
|
||||
<ul class="navbar-nav me-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="#">Home
|
||||
<span class="visually-hidden">(current)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Features</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Pricing</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">About</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#">Action</a>
|
||||
<a class="dropdown-item" href="#">Another action</a>
|
||||
<a class="dropdown-item" href="#">Something else here</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#">Separated link</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="d-flex">
|
||||
<input class="form-control me-sm-2" type="search" placeholder="Search">
|
||||
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
85
templates/.restore/.clean/index.html
Normal file
85
templates/.restore/.clean/index.html
Normal file
@@ -0,0 +1,85 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Home / Card Players Unite Admin
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/tournament/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Manage Tournaments
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/player/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Sign In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Card Players Unite Admin > Home </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/bike-shop-concept-with-bicycles.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Welcome to Robert's Bike Rental. We have bikes of all sizes and accessories for you and your loved ones. Explore the local neighborhood in style & comfort on our bikes.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
90
templates/.restore/.trash/about.html
Normal file
90
templates/.restore/.trash/about.html
Normal file
@@ -0,0 +1,90 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
About / Robert's Bike Rentals
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Robert's Bike Rentals > About </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/close-up-bicycle-bell.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Rental bikes and fun for the entire family. Our bike rental store features multiple bikes that can be rented and reserved for your next cycle adventure.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
Click the link below to reserve your bike with us.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
|
||||
198
templates/.restore/.trash/accessories.html
Normal file
198
templates/.restore/.trash/accessories.html
Normal file
@@ -0,0 +1,198 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Bike Accessories / Robert's Bike Rentals
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Robert's Bike Rentals > Bike Accessories </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/cover.jpg' %}" alt="My image">
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Keep your rental in good condition with our custom line of products to bring with you on your bike adventure. Browse our collection of bike accessories to maintain and repair your bike.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
|
||||
<table id="table" class="center products">
|
||||
|
||||
<thead>
|
||||
|
||||
<th></th> <th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Price</th>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
|
||||
<img class="thumbnail" src="https://www.bike-discount.de/media/image/2c/5b/25/Feedback-Sports-Pro-Mechanic-Reparaturstander-FA003475003-1_800x800.jpg">
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
Aluminum Bike Stand
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
Our sturdy and reliable bike stand securely holds your bike in place, allowing you to make critical repairs with ease. Its aluminum construction ensures durability while remaining lightweight, making it a perfect choice for both professionals and hobbyists.
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
€339.99
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td><img class="thumbnail" src="https://www.bike-discount.de/media/image/71/1f/64/Topeak-JoeBlow-Booster-TJB-BST3-1_300x300.jpg"></td>
|
||||
|
||||
<td>
|
||||
|
||||
Hydraulic Pump
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
Level up your biking experience with our revolutionary Hydraulic Bike Pump. Say goodbye to sore arms and endless pumping! Our innovative pump utilizes hydraulic technology to effortlessly fill your bike tires with air.
|
||||
|
||||
</td>
|
||||
|
||||
<td>€39.99 </td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td><img class="thumbnail" src="https://www.bike-discount.de/media/image/95/da/80/Stans-NoTubes_Tire-Sealant-Reifendichtmittel_800x800.jpg"></td>
|
||||
|
||||
<td>
|
||||
|
||||
Bike Gear Lubricant
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
on't let rusty gears slow you down or ruin your biking experience. Our specially formulated lubricant is designed to keep your bike gears in top-notch shape, ensuring smooth and effortless gear changes every time you hit the road.
|
||||
|
||||
</td>
|
||||
|
||||
<td>€19.99</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td><img class="thumbnail" src="https://www.bike-discount.de/media/image/a0/f6/d8/Schwalbe_Tubeless-Felgenband_887019_300x300.jpg"></td>
|
||||
|
||||
<td>
|
||||
|
||||
Bike Repair Tape
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
the ultimate solution for quick and hassle-free bike repairs. Whether you're on a leisurely ride or in the middle of an epic adventure, this special emergency tape will have you back on track in no time.
|
||||
|
||||
</td>
|
||||
|
||||
<td>€19.99</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
173
templates/.restore/.trash/manage.html
Normal file
173
templates/.restore/.trash/manage.html
Normal file
@@ -0,0 +1,173 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Manage Rental Bikes / Robert's Bike Rentals
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1>
|
||||
|
||||
Robert's Bike Rentals > Manage Rental Bikes <i>[admin]</i>
|
||||
|
||||
</h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/close-up-bicycle-gears.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Use this page to view our fleet of rental bikes. You can use this page to return bikes that have been rented by customers.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="center">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<th>Description</th>
|
||||
<th>Rental Price</th>
|
||||
|
||||
<th>Rental User ID</th>
|
||||
|
||||
<th>Actions</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
{% if status_message %}
|
||||
|
||||
<h4>
|
||||
|
||||
{{ status_message }}
|
||||
|
||||
</h4>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if latest_question_list %}
|
||||
|
||||
{% for question in latest_question_list %}
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class=""> {{ question.name }} </td>
|
||||
<td class=""> {{ question.description }} </td>
|
||||
<td class=""> € {{ question.rental_price }} </td>
|
||||
<td class=""> {{ question.rented_user_id }} </td>
|
||||
|
||||
{% if question.rented_user_id != 0 %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/return/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-primary">
|
||||
|
||||
Return bike: {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% else %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<button type="button" class="btn btn-dark">
|
||||
|
||||
Not currently rented by a customer.
|
||||
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<h2>No bikes are available.</h2>
|
||||
{% endif %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
183
templates/.restore/.trash/reserve.html
Normal file
183
templates/.restore/.trash/reserve.html
Normal file
@@ -0,0 +1,183 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Reserve Bike / Robert's Bike Rentals
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1> Robert's Bike Rentals > Reserve Bike </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/bicycles-workshop.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Use this page to view our rental bikes. You can see which bikes are already reserved and which bikes are available for rent.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table id="rent-payment-table" class="center products">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<th>Description</th>
|
||||
<th>Rental Price</th>
|
||||
<!-- <th>Rental User ID</th>
|
||||
-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
{% if status_message %}
|
||||
|
||||
<h4>
|
||||
|
||||
{{ status_message }}
|
||||
|
||||
</h4>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if latest_question_list %}
|
||||
|
||||
{% for question in latest_question_list %}
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class=""> {{ question.name }} </td>
|
||||
<td class=""> {{ question.description }} </td>
|
||||
<td class=""> € {{ question.rental_price }} </td>
|
||||
|
||||
{% if question.rented_user_id == user.pk %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/return/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-secondary">
|
||||
|
||||
Return {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% elif question.rented_user_id == 0 %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/reserve/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-primary">
|
||||
|
||||
Reserve {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% else %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<button type="button" class="disabled">
|
||||
|
||||
Not Available
|
||||
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<h6 class="notification">No bikes are available for rent.</h6>
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
templates/.restore/Movies-Website-main.zip
Normal file
BIN
templates/.restore/Movies-Website-main.zip
Normal file
Binary file not shown.
53
templates/.restore/admin.html
Normal file
53
templates/.restore/admin.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Home / Card Players Unite Admin
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/tournament/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Manage Tournaments
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/player/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Sign In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Card Players Unite Admin > Home </h1>
|
||||
|
||||
this is the admin page.
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
21
templates/.restore/cascadr.bash
Executable file
21
templates/.restore/cascadr.bash
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
##
|
||||
|
||||
##
|
||||
|
||||
reset
|
||||
|
||||
clear
|
||||
|
||||
##
|
||||
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
##
|
||||
|
||||
cd .cascadr
|
||||
|
||||
bash cascadr.bash
|
||||
53
templates/.restore/home.html
Normal file
53
templates/.restore/home.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
home / card players unite
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/tournament/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Manage Tournaments
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/player/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Sign In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Card Players Unite Admin > Home </h1>
|
||||
|
||||
this is home.html
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
53
templates/.restore/landing.html
Normal file
53
templates/.restore/landing.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
landing / card players unite
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/tournament/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Manage Tournaments
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/player/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Sign In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<h1> Card Players Unite Admin > Home </h1>
|
||||
|
||||
this is landing.html
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
187
templates/.restore/player.html
Normal file
187
templates/.restore/player.html
Normal file
@@ -0,0 +1,187 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Manage Players / Card Players Unite Admin
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1> Robert's Bike Rentals > Reserve Bike </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/bicycles-workshop.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Use this page to view our rental bikes. You can see which bikes are already reserved and which bikes are available for rent.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table id="rent-payment-table" class="center products">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<th>Description</th>
|
||||
<th>Rental Price</th>
|
||||
<!-- <th>Rental User ID</th>
|
||||
-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
{% if status_message %}
|
||||
|
||||
<h4>
|
||||
|
||||
{{ status_message }}
|
||||
|
||||
</h4>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if latest_question_list %}
|
||||
|
||||
{% for question in latest_question_list %}
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class=""> {{ question.name }} </td>
|
||||
<td class=""> {{ question.description }} </td>
|
||||
<td class=""> € {{ question.rental_price }} </td>
|
||||
|
||||
{% if question.rented_user_id == user.pk %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/return/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-secondary">
|
||||
|
||||
Return {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% elif question.rented_user_id == 0 %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/reserve/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-primary">
|
||||
|
||||
Reserve {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% else %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<button type="button" class="disabled">
|
||||
|
||||
Not Available
|
||||
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<h6 class="notification">No bikes are available for rent.</h6>
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
187
templates/.restore/team.html
Normal file
187
templates/.restore/team.html
Normal file
@@ -0,0 +1,187 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Manage Teams / Card Players Unite Admin
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1> Robert's Bike Rentals > Reserve Bike </h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/bicycles-workshop.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Use this page to view our rental bikes. You can see which bikes are already reserved and which bikes are available for rent.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table id="rent-payment-table" class="center products">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<th>Description</th>
|
||||
<th>Rental Price</th>
|
||||
<!-- <th>Rental User ID</th>
|
||||
-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
{% if status_message %}
|
||||
|
||||
<h4>
|
||||
|
||||
{{ status_message }}
|
||||
|
||||
</h4>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if latest_question_list %}
|
||||
|
||||
{% for question in latest_question_list %}
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class=""> {{ question.name }} </td>
|
||||
<td class=""> {{ question.description }} </td>
|
||||
<td class=""> € {{ question.rental_price }} </td>
|
||||
|
||||
{% if question.rented_user_id == user.pk %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/return/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-secondary">
|
||||
|
||||
Return {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% elif question.rented_user_id == 0 %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/reserve/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-primary">
|
||||
|
||||
Reserve {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% else %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<button type="button" class="disabled">
|
||||
|
||||
Not Available
|
||||
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<h6 class="notification">No bikes are available for rent.</h6>
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
177
templates/.restore/tournament.html
Normal file
177
templates/.restore/tournament.html
Normal file
@@ -0,0 +1,177 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title>
|
||||
|
||||
Manage Tournaments / Card Players Unite Admin
|
||||
|
||||
</title>
|
||||
|
||||
<!-- head / css / begin -->
|
||||
<link rel="stylesheet" href="{% static 'styling/custom.css' %}">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'styling/sketchy.css' %}">
|
||||
<!-- head / css / end -->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<a href="/home">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Home
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/about-roberts-rentals">
|
||||
<button type="button" class="btn btn-primary">
|
||||
About
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike-accessories">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Bike Accessories
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/bike/">
|
||||
<button type="button" class="btn btn-primary">
|
||||
Reserve Bike
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="/accounts/login/">
|
||||
<button type="button" class="btn btn-secondary">
|
||||
Log In
|
||||
</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1>
|
||||
|
||||
Robert's Bike Rentals > Manage Rental Bikes <i>[admin]</i>
|
||||
|
||||
</h1>
|
||||
|
||||
<div>
|
||||
|
||||
<img src="{% static 'img/close-up-bicycle-gears.jpg' %}" height=480 width=640>
|
||||
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
||||
Use this page to view our fleet of rental bikes. You can use this page to return bikes that have been rented by customers.
|
||||
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="center">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<th>Name</th>
|
||||
|
||||
<th>Description</th>
|
||||
<th>Rental Price</th>
|
||||
|
||||
<th>Rental User ID</th>
|
||||
|
||||
<th>Actions</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
{% if status_message %}
|
||||
|
||||
<h4>
|
||||
|
||||
{{ status_message }}
|
||||
|
||||
</h4>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if latest_question_list %}
|
||||
|
||||
{% for question in latest_question_list %}
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class=""> {{ question.name }} </td>
|
||||
<td class=""> {{ question.description }} </td>
|
||||
<td class=""> € {{ question.rental_price }} </td>
|
||||
<td class=""> {{ question.rented_user_id }} </td>
|
||||
|
||||
{% if question.rented_user_id != 0 %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<a href="/bike/return/{{question.id}}/{{user.pk}}">
|
||||
|
||||
<button type="button" class="btn btn-primary">
|
||||
|
||||
Return bike: {{ question.name }}
|
||||
|
||||
</button>
|
||||
|
||||
</a>
|
||||
|
||||
</td>
|
||||
|
||||
{% else %}
|
||||
|
||||
<td class="">
|
||||
|
||||
<button type="button" class="btn btn-dark">
|
||||
|
||||
Not currently rented by a customer.
|
||||
|
||||
</button>
|
||||
|
||||
</td>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<h2>No bikes are available.</h2>
|
||||
{% endif %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
Robert's Bike Rental created by <a href="https://github.com/gomsur">Robert</a>. <a href="https://www.freepik.com/free-photo/cyclist-sunny-day-bike-adventure-travel-photo_3972810.htm#query=bike&position=0&from_view=search&track=sph">Image by jcomp</a> on Freepik.
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user