Added project
0
EAppt/__init__.py
Normal file
BIN
EAppt/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
EAppt/__pycache__/settings.cpython-38.pyc
Normal file
BIN
EAppt/__pycache__/urls.cpython-38.pyc
Normal file
BIN
EAppt/__pycache__/wsgi.cpython-38.pyc
Normal file
16
EAppt/asgi.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
"""
|
||||||
|
ASGI config for EAppt project.
|
||||||
|
|
||||||
|
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
|
For more information on this file, see
|
||||||
|
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core.asgi import get_asgi_application
|
||||||
|
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EAppt.settings')
|
||||||
|
|
||||||
|
application = get_asgi_application()
|
134
EAppt/settings.py
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
"""
|
||||||
|
Django settings for EAppt project.
|
||||||
|
|
||||||
|
Generated by 'django-admin startproject' using Django 3.1.6.
|
||||||
|
|
||||||
|
For more information on this file, see
|
||||||
|
https://docs.djangoproject.com/en/3.1/topics/settings/
|
||||||
|
|
||||||
|
For the full list of settings and their values, see
|
||||||
|
https://docs.djangoproject.com/en/3.1/ref/settings/
|
||||||
|
"""
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
|
|
||||||
|
# Quick-start development settings - unsuitable for production
|
||||||
|
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
|
||||||
|
|
||||||
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
|
SECRET_KEY = '(ecf=ii@qdl690%_x_6_m#%1!*sc+v%q-ahvq#h0x7bvh_*w2o'
|
||||||
|
|
||||||
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = []
|
||||||
|
|
||||||
|
|
||||||
|
# Application definition
|
||||||
|
|
||||||
|
INSTALLED_APPS = [
|
||||||
|
'django.contrib.admin',
|
||||||
|
'django.contrib.auth',
|
||||||
|
'django.contrib.contenttypes',
|
||||||
|
'django.contrib.sessions',
|
||||||
|
'django.contrib.messages',
|
||||||
|
'django.contrib.staticfiles',
|
||||||
|
'website',
|
||||||
|
'accounts',
|
||||||
|
'booking'
|
||||||
|
]
|
||||||
|
|
||||||
|
MIDDLEWARE = [
|
||||||
|
'django.middleware.security.SecurityMiddleware',
|
||||||
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
|
]
|
||||||
|
|
||||||
|
ROOT_URLCONF = 'EAppt.urls'
|
||||||
|
|
||||||
|
TEMPLATES = [
|
||||||
|
{
|
||||||
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
'DIRS': [],
|
||||||
|
'APP_DIRS': True,
|
||||||
|
'OPTIONS': {
|
||||||
|
'context_processors': [
|
||||||
|
'django.template.context_processors.debug',
|
||||||
|
'django.template.context_processors.request',
|
||||||
|
'django.contrib.auth.context_processors.auth',
|
||||||
|
'django.contrib.messages.context_processors.messages',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
WSGI_APPLICATION = 'EAppt.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
|
# Database
|
||||||
|
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
|
||||||
|
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
|
'NAME': 'EasyAppt',
|
||||||
|
'USER': 'postgres',
|
||||||
|
'PASSWORD': 'admin',
|
||||||
|
'HOST': 'localhost',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Password validation
|
||||||
|
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
|
||||||
|
|
||||||
|
AUTH_PASSWORD_VALIDATORS = [
|
||||||
|
{
|
||||||
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Internationalization
|
||||||
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
||||||
|
|
||||||
|
LANGUAGE_CODE = 'en-us'
|
||||||
|
|
||||||
|
TIME_ZONE = 'UTC'
|
||||||
|
|
||||||
|
USE_I18N = True
|
||||||
|
|
||||||
|
USE_L10N = True
|
||||||
|
|
||||||
|
USE_TZ = True
|
||||||
|
|
||||||
|
|
||||||
|
# Static files (CSS, JavaScript, Images)
|
||||||
|
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||||
|
|
||||||
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
|
STATICFILES_DIRS = [
|
||||||
|
BASE_DIR / "static",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
MEDIA_URL = '/media/'
|
||||||
|
MEDIA_ROOT = BASE_DIR / 'media'
|
30
EAppt/urls.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
"""EAppt URL Configuration
|
||||||
|
|
||||||
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||||
|
https://docs.djangoproject.com/en/3.1/topics/http/urls/
|
||||||
|
Examples:
|
||||||
|
Function views
|
||||||
|
1. Add an import: from my_app import views
|
||||||
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
||||||
|
Class-based views
|
||||||
|
1. Add an import: from other_app.views import Home
|
||||||
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
||||||
|
Including another URLconf
|
||||||
|
1. Import the include() function: from django.urls import include, path
|
||||||
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||||
|
"""
|
||||||
|
from django.contrib import admin
|
||||||
|
from django.urls import path, include
|
||||||
|
from django.conf import settings
|
||||||
|
from django.conf.urls.static import static
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('admin/', admin.site.urls),
|
||||||
|
path('', include('website.urls')),
|
||||||
|
path('accounts/', include('accounts.urls')),
|
||||||
|
path('', include('accounts.urls')),
|
||||||
|
path('booking/', include('booking.urls')),
|
||||||
|
path('',include('booking.urls')),
|
||||||
|
]
|
||||||
|
|
||||||
|
urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_URL)
|
16
EAppt/wsgi.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
"""
|
||||||
|
WSGI config for EAppt project.
|
||||||
|
|
||||||
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||||
|
|
||||||
|
For more information on this file, see
|
||||||
|
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EAppt.settings')
|
||||||
|
|
||||||
|
application = get_wsgi_application()
|
0
accounts/__init__.py
Normal file
BIN
accounts/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
accounts/__pycache__/admin.cpython-38.pyc
Normal file
BIN
accounts/__pycache__/models.cpython-38.pyc
Normal file
BIN
accounts/__pycache__/urls.cpython-38.pyc
Normal file
BIN
accounts/__pycache__/views.cpython-38.pyc
Normal file
3
accounts/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
5
accounts/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class AccountsConfig(AppConfig):
|
||||||
|
name = 'accounts'
|
0
accounts/migrations/__init__.py
Normal file
BIN
accounts/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
3
accounts/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
accounts/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
8
accounts/urls.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from django.urls import path
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('register', views.register, name="register"),
|
||||||
|
path('login', views.login, name="login"),
|
||||||
|
path('logout', views.logout, name="logout")
|
||||||
|
]
|
55
accounts/views.py
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
from django.shortcuts import render, redirect
|
||||||
|
from django.contrib import messages
|
||||||
|
from django.contrib.auth.models import User, auth
|
||||||
|
# Create your views here.
|
||||||
|
|
||||||
|
def login(request):
|
||||||
|
if request.method== 'POST':
|
||||||
|
username = request.POST['username']
|
||||||
|
password = request.POST['password']
|
||||||
|
|
||||||
|
user = auth.authenticate(username=username, password=password)
|
||||||
|
|
||||||
|
if user is not None:
|
||||||
|
auth.login(request, user)
|
||||||
|
return redirect("/")
|
||||||
|
else:
|
||||||
|
messages.info(request, 'Invalid credentials')
|
||||||
|
return redirect('login')
|
||||||
|
else:
|
||||||
|
return render(request, 'login.html')
|
||||||
|
|
||||||
|
def register(request):
|
||||||
|
|
||||||
|
if request.method == 'POST':
|
||||||
|
first_name = request.POST['first_name']
|
||||||
|
last_name = request.POST['last_name']
|
||||||
|
username = request.POST['username']
|
||||||
|
password1 = request.POST['password1']
|
||||||
|
password2 = request.POST['password2']
|
||||||
|
email = request.POST['email']
|
||||||
|
|
||||||
|
if password1==password2:
|
||||||
|
if User.objects.filter(username=username).exists():
|
||||||
|
messages.info(request,'Username taken')
|
||||||
|
return redirect('register')
|
||||||
|
elif User.objects.filter(email=email).exists():
|
||||||
|
messages.info(request,'Email taken')
|
||||||
|
return redirect('register')
|
||||||
|
else:
|
||||||
|
user = User.objects.create_user(username=username, password=password1, email=email, first_name=first_name,last_name=last_name)
|
||||||
|
user.save();
|
||||||
|
print('User created')
|
||||||
|
return redirect('login')
|
||||||
|
else:
|
||||||
|
messages.info(request, 'Passwords not matching')
|
||||||
|
return redirect('register')
|
||||||
|
return redirect('/')
|
||||||
|
|
||||||
|
else:
|
||||||
|
return render(request, 'register.html')
|
||||||
|
|
||||||
|
|
||||||
|
def logout(request):
|
||||||
|
auth.logout(request)
|
||||||
|
return redirect('/')
|
0
booking/__init__.py
Normal file
BIN
booking/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
booking/__pycache__/admin.cpython-38.pyc
Normal file
BIN
booking/__pycache__/models.cpython-38.pyc
Normal file
BIN
booking/__pycache__/urls.cpython-38.pyc
Normal file
BIN
booking/__pycache__/views.cpython-38.pyc
Normal file
3
booking/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
5
booking/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class BookingConfig(AppConfig):
|
||||||
|
name = 'booking'
|
0
booking/migrations/__init__.py
Normal file
BIN
booking/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
3
booking/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
booking/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
6
booking/urls.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from django.urls import path
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('book', views.book, name="book"),
|
||||||
|
]
|
5
booking/views.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
||||||
|
def book(request):
|
||||||
|
pass
|
BIN
db.sqlite3
Normal file
22
manage.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
"""Django's command-line utility for administrative tasks."""
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Run administrative tasks."""
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EAppt.settings')
|
||||||
|
try:
|
||||||
|
from django.core.management import execute_from_command_line
|
||||||
|
except ImportError as exc:
|
||||||
|
raise ImportError(
|
||||||
|
"Couldn't import Django. Are you sure it's installed and "
|
||||||
|
"available on your PYTHONPATH environment variable? Did you "
|
||||||
|
"forget to activate a virtual environment?"
|
||||||
|
) from exc
|
||||||
|
execute_from_command_line(sys.argv)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
BIN
pics/croptop.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
pics/longtrim.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
pics/sidepart.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
565
static/website/css/jquery-ui.css
vendored
Normal file
@ -0,0 +1,565 @@
|
|||||||
|
/*! jQuery UI - v1.9.2 - 2012-11-23
|
||||||
|
* http://jqueryui.com
|
||||||
|
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
|
||||||
|
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
|
||||||
|
|
||||||
|
/* Layout helpers
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-helper-hidden { display: none; }
|
||||||
|
.ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||||
|
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
||||||
|
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
|
||||||
|
.ui-helper-clearfix:after { clear: both; }
|
||||||
|
.ui-helper-clearfix { zoom: 1; }
|
||||||
|
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
||||||
|
|
||||||
|
/*----*/
|
||||||
|
#ui-datepicker-div {
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
background: #111313;
|
||||||
|
border: none;
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
.ui-datepicker-title span{
|
||||||
|
color: #fff;
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
/* Interaction Cues
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-disabled { cursor: default !important; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Icons
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* states and images */
|
||||||
|
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Misc visuals
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* Overlays */
|
||||||
|
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||||
|
|
||||||
|
.ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; }
|
||||||
|
.ui-accordion .ui-accordion-icons { padding-left: 2.2em; }
|
||||||
|
.ui-accordion .ui-accordion-noicons { padding-left: .7em; }
|
||||||
|
.ui-accordion .ui-accordion-icons .ui-accordion-icons { padding-left: 2.2em; }
|
||||||
|
.ui-accordion .ui-accordion-header .ui-accordion-header-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
||||||
|
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; zoom: 1; }
|
||||||
|
|
||||||
|
.ui-autocomplete {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* workarounds */
|
||||||
|
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
||||||
|
|
||||||
|
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
||||||
|
.ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; }
|
||||||
|
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
||||||
|
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
||||||
|
.ui-button-icons-only { width: 3.4em; }
|
||||||
|
button.ui-button-icons-only { width: 3.7em; }
|
||||||
|
|
||||||
|
/*button text element */
|
||||||
|
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
||||||
|
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
||||||
|
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
||||||
|
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
||||||
|
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
||||||
|
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
||||||
|
/* no icon support for input elements, provide padding by default */
|
||||||
|
input.ui-button { padding: .4em 1em; }
|
||||||
|
|
||||||
|
/*button icon element(s) */
|
||||||
|
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
||||||
|
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
||||||
|
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
||||||
|
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
||||||
|
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
||||||
|
|
||||||
|
/*button sets*/
|
||||||
|
.ui-buttonset { margin-right: 7px; }
|
||||||
|
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
||||||
|
|
||||||
|
/* workarounds */
|
||||||
|
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
||||||
|
|
||||||
|
.ui-datepicker {width:20%;
|
||||||
|
padding: 0 0em 0;
|
||||||
|
}
|
||||||
|
.ui-datepicker .ui-datepicker-header {
|
||||||
|
position: relative;
|
||||||
|
padding: .56em 0;
|
||||||
|
background:rgba(50,205,50, 0.54);
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 10px; width: 1.8em; height: 1.8em; }
|
||||||
|
.ui-datepicker .ui-datepicker-prev {
|
||||||
|
left: 10px;
|
||||||
|
width: 14px;
|
||||||
|
height: 20px;
|
||||||
|
background: url(../images/c-arrows.png) no-repeat -0px -0px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.ui-datepicker .ui-datepicker-next {
|
||||||
|
right: 10px;
|
||||||
|
width: 14px;
|
||||||
|
height: 20px;
|
||||||
|
background: url(../images/c-arrows.png) no-repeat -16px -0px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
||||||
|
.ui-datepicker .ui-datepicker-title {
|
||||||
|
margin: 0 2.3em;
|
||||||
|
line-height: 1.8em;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.74em;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
||||||
|
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
||||||
|
.ui-datepicker select.ui-datepicker-month,
|
||||||
|
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
||||||
|
.ui-datepicker table {width: 100%; font-size: .7em; border-collapse: collapse; margin:0 0 .4em; }
|
||||||
|
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
||||||
|
.ui-datepicker th span{
|
||||||
|
color: #FFF;
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
font-size: 0.9em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.ui-datepicker td { border: 0; padding: 1px; }
|
||||||
|
.ui-datepicker td span, .ui-datepicker td a {
|
||||||
|
display: block; padding: .3em; text-align: center; text-decoration: none;
|
||||||
|
color: #EEE;
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
||||||
|
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
||||||
|
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
||||||
|
|
||||||
|
/* with multiple calendars */
|
||||||
|
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
||||||
|
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
||||||
|
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
||||||
|
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
||||||
|
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
||||||
|
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
||||||
|
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
||||||
|
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
||||||
|
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
||||||
|
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
||||||
|
|
||||||
|
/* RTL support */
|
||||||
|
.ui-datepicker-rtl { direction: rtl; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||||
|
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||||
|
|
||||||
|
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
||||||
|
.ui-datepicker-cover {
|
||||||
|
position: absolute; /*must have*/
|
||||||
|
z-index: -1; /*must have*/
|
||||||
|
filter: mask(); /*must have*/
|
||||||
|
top: -4px; /*must have*/
|
||||||
|
left: -4px; /*must have*/
|
||||||
|
width: 200px; /*must have*/
|
||||||
|
height: 200px; /*must have*/
|
||||||
|
}
|
||||||
|
.ui-dialog { position: absolute; top: 0; left: 0; padding: .2em; width: 300px; overflow: hidden; }
|
||||||
|
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
||||||
|
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
||||||
|
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
||||||
|
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
||||||
|
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
||||||
|
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
||||||
|
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
||||||
|
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
||||||
|
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
||||||
|
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
||||||
|
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
||||||
|
|
||||||
|
.ui-menu { list-style:none; padding: 2px; margin: 0; display:block; outline: none; }
|
||||||
|
.ui-menu .ui-menu { margin-top: -3px; position: absolute; }
|
||||||
|
.ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1; width: 100%; }
|
||||||
|
.ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
|
||||||
|
.ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
|
||||||
|
.ui-menu .ui-menu-item a.ui-state-focus,
|
||||||
|
.ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; }
|
||||||
|
|
||||||
|
.ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
|
||||||
|
.ui-menu .ui-state-disabled a { cursor: default; }
|
||||||
|
|
||||||
|
/* icon support */
|
||||||
|
.ui-menu-icons { position: relative; }
|
||||||
|
.ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
|
||||||
|
|
||||||
|
/* left-aligned */
|
||||||
|
.ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
|
||||||
|
|
||||||
|
/* right-aligned */
|
||||||
|
.ui-menu .ui-menu-icon { position: static; float: right; }
|
||||||
|
|
||||||
|
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
|
||||||
|
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
||||||
|
.ui-resizable { position: relative;}
|
||||||
|
.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
|
||||||
|
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
||||||
|
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
||||||
|
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
||||||
|
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
||||||
|
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
||||||
|
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
||||||
|
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
||||||
|
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
||||||
|
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
|
||||||
|
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
||||||
|
|
||||||
|
.ui-slider { position: relative; text-align: left; }
|
||||||
|
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
||||||
|
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
||||||
|
|
||||||
|
.ui-slider-horizontal { height: .8em; }
|
||||||
|
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
||||||
|
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
||||||
|
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
||||||
|
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
||||||
|
|
||||||
|
.ui-slider-vertical { width: .8em; height: 100px; }
|
||||||
|
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
||||||
|
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
||||||
|
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
||||||
|
.ui-slider-vertical .ui-slider-range-max { top: 0; }
|
||||||
|
.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
|
||||||
|
.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
|
||||||
|
.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
|
||||||
|
.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
|
||||||
|
.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
|
||||||
|
.ui-spinner-up { top: 0; }
|
||||||
|
.ui-spinner-down { bottom: 0; }
|
||||||
|
|
||||||
|
/* TR overrides */
|
||||||
|
.ui-spinner .ui-icon-triangle-1-s {
|
||||||
|
/* need to fix icons sprite */
|
||||||
|
background-position:-65px -16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
||||||
|
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
||||||
|
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; }
|
||||||
|
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
||||||
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; }
|
||||||
|
.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
|
||||||
|
.ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
||||||
|
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
||||||
|
|
||||||
|
.ui-tooltip {
|
||||||
|
padding: 8px;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 9999;
|
||||||
|
max-width: 300px;
|
||||||
|
-webkit-box-shadow: 0 0 5px #aaa;
|
||||||
|
box-shadow: 0 0 5px #aaa;
|
||||||
|
}
|
||||||
|
/* Fades and background-images don't work well together in IE6, drop the image */
|
||||||
|
* html .ui-tooltip {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
body .ui-tooltip { border-width: 2px; }
|
||||||
|
|
||||||
|
/* Component containers
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em/*{fsDefault}*/; }
|
||||||
|
.ui-widget .ui-widget { font-size: 1em; }
|
||||||
|
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; }
|
||||||
|
|
||||||
|
/* Interaction states
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { /*{borderColorDefault}*/; background:none/*{bgColorDefault}*//*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #fff/*{fcDefault}*/; }
|
||||||
|
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #fff/*{fcDefault}*/; text-decoration: none; }
|
||||||
|
.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #212121/*{fcHover}*/; text-decoration: none; }
|
||||||
|
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; }
|
||||||
|
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; }
|
||||||
|
|
||||||
|
/* Interaction Cues
|
||||||
|
----------------------------------*/
|
||||||
|
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
|
||||||
|
border: 1px solid #ffffff;/*{borderColorHighlight}*/;
|
||||||
|
|
||||||
|
}
|
||||||
|
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; }
|
||||||
|
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ url(ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; color: #cd0a0a/*{fcError}*/; }
|
||||||
|
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; }
|
||||||
|
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; }
|
||||||
|
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
||||||
|
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
||||||
|
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
||||||
|
.ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
|
||||||
|
|
||||||
|
/* Icons
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* states and images */
|
||||||
|
.ui-icon.ui-icon-circle-triangle-w {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* positioning */
|
||||||
|
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||||
|
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||||
|
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||||
|
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||||
|
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||||
|
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||||
|
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||||
|
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||||
|
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||||
|
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||||
|
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||||
|
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||||
|
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||||
|
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||||
|
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||||
|
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||||
|
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||||
|
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||||
|
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||||
|
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||||
|
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||||
|
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||||
|
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||||
|
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||||
|
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||||
|
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||||
|
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||||
|
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||||
|
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||||
|
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||||
|
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||||
|
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||||
|
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||||
|
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||||
|
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||||
|
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||||
|
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||||
|
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||||
|
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||||
|
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||||
|
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||||
|
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||||
|
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||||
|
.ui-icon-extlink { background-position: -32px -80px; }
|
||||||
|
.ui-icon-newwin { background-position: -48px -80px; }
|
||||||
|
.ui-icon-refresh { background-position: -64px -80px; }
|
||||||
|
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||||
|
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||||
|
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||||
|
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||||
|
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||||
|
.ui-icon-document { background-position: -32px -96px; }
|
||||||
|
.ui-icon-document-b { background-position: -48px -96px; }
|
||||||
|
.ui-icon-note { background-position: -64px -96px; }
|
||||||
|
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||||
|
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||||
|
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||||
|
.ui-icon-comment { background-position: -128px -96px; }
|
||||||
|
.ui-icon-person { background-position: -144px -96px; }
|
||||||
|
.ui-icon-print { background-position: -160px -96px; }
|
||||||
|
.ui-icon-trash { background-position: -176px -96px; }
|
||||||
|
.ui-icon-locked { background-position: -192px -96px; }
|
||||||
|
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||||
|
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||||
|
.ui-icon-tag { background-position: -240px -96px; }
|
||||||
|
.ui-icon-home { background-position: 0 -112px; }
|
||||||
|
.ui-icon-flag { background-position: -16px -112px; }
|
||||||
|
.ui-icon-calendar { background-position: -32px -112px; }
|
||||||
|
.ui-icon-cart { background-position: -48px -112px; }
|
||||||
|
.ui-icon-pencil { background-position: -64px -112px; }
|
||||||
|
.ui-icon-clock { background-position: -80px -112px; }
|
||||||
|
.ui-icon-disk { background-position: -96px -112px; }
|
||||||
|
.ui-icon-calculator { background-position: -112px -112px; }
|
||||||
|
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||||
|
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||||
|
.ui-icon-search { background-position: -160px -112px; }
|
||||||
|
.ui-icon-wrench { background-position: -176px -112px; }
|
||||||
|
.ui-icon-gear { background-position: -192px -112px; }
|
||||||
|
.ui-icon-heart { background-position: -208px -112px; }
|
||||||
|
.ui-icon-star { background-position: -224px -112px; }
|
||||||
|
.ui-icon-link { background-position: -240px -112px; }
|
||||||
|
.ui-icon-cancel { background-position: 0 -128px; }
|
||||||
|
.ui-icon-plus { background-position: -16px -128px; }
|
||||||
|
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||||
|
.ui-icon-minus { background-position: -48px -128px; }
|
||||||
|
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||||
|
.ui-icon-close { background-position: -80px -128px; }
|
||||||
|
.ui-icon-closethick { background-position: -96px -128px; }
|
||||||
|
.ui-icon-key { background-position: -112px -128px; }
|
||||||
|
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||||
|
.ui-icon-scissors { background-position: -144px -128px; }
|
||||||
|
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||||
|
.ui-icon-copy { background-position: -176px -128px; }
|
||||||
|
.ui-icon-contact { background-position: -192px -128px; }
|
||||||
|
.ui-icon-image { background-position: -208px -128px; }
|
||||||
|
.ui-icon-video { background-position: -224px -128px; }
|
||||||
|
.ui-icon-script { background-position: -240px -128px; }
|
||||||
|
.ui-icon-alert { background-position: 0 -144px; }
|
||||||
|
.ui-icon-info { background-position: -16px -144px; }
|
||||||
|
.ui-icon-notice { background-position: -32px -144px; }
|
||||||
|
.ui-icon-help { background-position: -48px -144px; }
|
||||||
|
.ui-icon-check { background-position: -64px -144px; }
|
||||||
|
.ui-icon-bullet { background-position: -80px -144px; }
|
||||||
|
.ui-icon-radio-on { background-position: -96px -144px; }
|
||||||
|
.ui-icon-radio-off { background-position: -112px -144px; }
|
||||||
|
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||||
|
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||||
|
.ui-icon-play { background-position: 0 -160px; }
|
||||||
|
.ui-icon-pause { background-position: -16px -160px; }
|
||||||
|
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||||
|
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||||
|
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||||
|
.ui-icon-seek-start { background-position: -80px -160px; }
|
||||||
|
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
||||||
|
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||||
|
.ui-icon-stop { background-position: -96px -160px; }
|
||||||
|
.ui-icon-eject { background-position: -112px -160px; }
|
||||||
|
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||||
|
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||||
|
.ui-icon-power { background-position: 0 -176px; }
|
||||||
|
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||||
|
.ui-icon-signal { background-position: -32px -176px; }
|
||||||
|
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||||
|
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||||
|
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||||
|
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||||
|
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||||
|
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||||
|
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||||
|
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||||
|
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||||
|
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||||
|
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||||
|
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||||
|
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||||
|
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||||
|
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||||
|
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||||
|
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||||
|
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||||
|
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||||
|
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||||
|
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||||
|
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||||
|
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||||
|
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||||
|
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||||
|
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||||
|
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||||
|
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||||
|
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||||
|
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Misc visuals
|
||||||
|
----------------------------------*/
|
||||||
|
|
||||||
|
/* Corner radius */
|
||||||
|
|
||||||
|
/* Overlays */
|
||||||
|
.ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ url(ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityShadow}*/; -moz-border-radius: 8px/*{cornerRadiusShadow}*/; -khtml-border-radius: 8px/*{cornerRadiusShadow}*/; -webkit-border-radius: 8px/*{cornerRadiusShadow}*/; border-radius: 8px/*{cornerRadiusShadow}*/; }
|
||||||
|
@media (max-width: 1366px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 24%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 1280px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 1080px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 29%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width:768px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 34%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 768px) and (min-width: 640px) {
|
||||||
|
.ui-datepicker td span, .ui-datepicker td a {
|
||||||
|
display: block;
|
||||||
|
padding: .1em;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width:640px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width:480px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width:52%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 480px) and (min-width: 320px) {
|
||||||
|
.ui-datepicker-title span {
|
||||||
|
font-size: .9em;
|
||||||
|
}
|
||||||
|
.ui-datepicker td span, .ui-datepicker td a {
|
||||||
|
display: block;
|
||||||
|
padding: .4em;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 414px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 65%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width:320px){
|
||||||
|
.ui-datepicker {
|
||||||
|
width: 68%;
|
||||||
|
}
|
||||||
|
}
|
451
static/website/css/style.css
Normal file
@ -0,0 +1,451 @@
|
|||||||
|
/*
|
||||||
|
Author: W3layout
|
||||||
|
Author URL: http://w3layouts.com
|
||||||
|
License: Creative Commons Attribution 3.0 Unported
|
||||||
|
License URL: http://creativecommons.org/licenses/by/3.0/
|
||||||
|
*/
|
||||||
|
/*--reset--*/
|
||||||
|
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
|
||||||
|
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
|
||||||
|
ol,ul{list-style:none;margin:0px;padding:0px;}
|
||||||
|
blockquote,q{quotes:none;}
|
||||||
|
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
|
||||||
|
table{border-collapse:collapse;border-spacing:0;}
|
||||||
|
/*--start editing from here--*/
|
||||||
|
a{text-decoration:none;}
|
||||||
|
.txt-rt{text-align:right;}/* text align right */
|
||||||
|
.txt-lt{text-align:left;}/* text align left */
|
||||||
|
.txt-center{text-align:center;}/* text align center */
|
||||||
|
.float-rt{float:right;}/* float right */
|
||||||
|
.float-lt{float:left;}/* float left */
|
||||||
|
.clear{clear:both;}/* clear float */
|
||||||
|
.pos-relative{position:relative;}/* Position Relative */
|
||||||
|
.pos-absolute{position:absolute;}/* Position Absolute */
|
||||||
|
.vertical-base{ vertical-align:baseline;}/* vertical align baseline */
|
||||||
|
.vertical-top{ vertical-align:top;}/* vertical align top */
|
||||||
|
nav.vertical ul li{ display:block;}/* vertical menu */
|
||||||
|
nav.horizontal ul li{ display: inline-block;}/* horizontal menu */
|
||||||
|
img{max-width:100%;}
|
||||||
|
/*--end reset--*/
|
||||||
|
|
||||||
|
|
||||||
|
body{
|
||||||
|
font-family: 'Signika', sans-serif;
|
||||||
|
background: url(../images/2.jpg)no-repeat center top;
|
||||||
|
background-size: cover;
|
||||||
|
-webkit-background-size: cover;
|
||||||
|
-moz-background-size: cover;
|
||||||
|
-o-background-size: cover;
|
||||||
|
background-attachment:fixed;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 44%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 3em;
|
||||||
|
color: #fff;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
text-align: center;
|
||||||
|
padding: .5em 0 .8em;
|
||||||
|
}
|
||||||
|
/*--appointment--*/
|
||||||
|
.book-appointment h2 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.8em;
|
||||||
|
color: #fff;
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
.book-appointment {
|
||||||
|
background:rgba(20, 20, 21, 0.47);
|
||||||
|
padding: 3em;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 96.5%;
|
||||||
|
color: #fff;
|
||||||
|
outline: none;
|
||||||
|
font-size: .9em;
|
||||||
|
line-height: 25px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
margin: .3em 0em 1em;
|
||||||
|
font-family: 'Signika', sans-serif;
|
||||||
|
background: rgba(237, 237, 237, 0.54);
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
resize:none;
|
||||||
|
height:25px
|
||||||
|
}
|
||||||
|
.book-appointment select.form-control {
|
||||||
|
outline: none;
|
||||||
|
font-size: .9em;
|
||||||
|
padding: 7px 10px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 5px 0px 16px;
|
||||||
|
border-radius: 0;
|
||||||
|
background: rgba(237, 237, 237, 0.54);
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
font-family: 'Signika', sans-serif;
|
||||||
|
}
|
||||||
|
.book-appointment select.form-control option {
|
||||||
|
background:#111;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=submit] {
|
||||||
|
display: block;
|
||||||
|
color: #fff;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 2em;
|
||||||
|
padding: .8em 2em;
|
||||||
|
font-size: 1.04em;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
background: rgba(50,205,50, 0.54);
|
||||||
|
font-weight: 500;
|
||||||
|
font-family: 'Signika', sans-serif;
|
||||||
|
transition: 0.5s all ease;
|
||||||
|
-webkit-transition: 0.5s all ease;
|
||||||
|
-moz-transition: 0.5s all ease;
|
||||||
|
-o-transition: 0.5s all ease;
|
||||||
|
-ms-transition: 0.5s all ease;
|
||||||
|
}
|
||||||
|
input[type=submit]:hover {
|
||||||
|
background: rgba(34,139,34, 0.54);
|
||||||
|
transition: 0.5s all ease;
|
||||||
|
-webkit-transition: 0.5s all ease;
|
||||||
|
-moz-transition: 0.5s all ease;
|
||||||
|
-o-transition: 0.5s all ease;
|
||||||
|
-ms-transition: 0.5s all ease;
|
||||||
|
}
|
||||||
|
.arrows-reserve{
|
||||||
|
position:relative;
|
||||||
|
color:#EFA52C;
|
||||||
|
font-size:2em;
|
||||||
|
}
|
||||||
|
.arrows-reserve:before{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 43%;
|
||||||
|
left: 35.5%;
|
||||||
|
background: #fff;
|
||||||
|
width: 11%;
|
||||||
|
height: 3px;
|
||||||
|
}
|
||||||
|
.arrows-reserve:after{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: 43%;
|
||||||
|
right: 35.5%;
|
||||||
|
background: #fff;
|
||||||
|
width: 11%;
|
||||||
|
height: 3px;
|
||||||
|
}
|
||||||
|
.book-appointment p {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1em;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
p.wickedpicker__title {
|
||||||
|
background: #237824;
|
||||||
|
color: #fff;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: .5px;
|
||||||
|
}
|
||||||
|
.wickedpicker__close {
|
||||||
|
color: #fefefe;
|
||||||
|
}
|
||||||
|
.gaps {
|
||||||
|
background:rgba(237, 237, 237, 0.54);
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: 1em .5em 0;
|
||||||
|
}
|
||||||
|
/*--//appointment--*/
|
||||||
|
|
||||||
|
.nav-list {
|
||||||
|
background:rgba(237, 237, 237, 0.74);
|
||||||
|
box-shadow:0px 0px 10px var(--clr-gray200);
|
||||||
|
margin:0;
|
||||||
|
padding:1rem 0;
|
||||||
|
border-radius:var(--radius);
|
||||||
|
display:flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items:center;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-item{
|
||||||
|
list-style:none;
|
||||||
|
margin-right:2rem;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-item img{
|
||||||
|
width:60%;
|
||||||
|
height:60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-item a {
|
||||||
|
text-decoration:none;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-item:first-child{
|
||||||
|
margin-right:auto;
|
||||||
|
margin-left:2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-generic {
|
||||||
|
margin: 15px auto;
|
||||||
|
width:100%;
|
||||||
|
border-bottom: 1px solid #fff;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
background:rgba(237, 237, 237, 0.54);
|
||||||
|
border:none;
|
||||||
|
outline:none;
|
||||||
|
color:white;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.msg {
|
||||||
|
color: red;
|
||||||
|
font-size: 2em;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--copyright--*/
|
||||||
|
.copy.w3ls {
|
||||||
|
margin: 2.5em 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.copy p {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1em;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
.copy p a {
|
||||||
|
color: rgba(50,205,50, 0.54);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: 0.5s all ease;
|
||||||
|
-webkit-transition: 0.5s all ease;
|
||||||
|
-moz-transition: 0.5s all ease;
|
||||||
|
-o-transition: 0.5s all ease;
|
||||||
|
-ms-transition: 0.5s all ease;
|
||||||
|
}
|
||||||
|
.copy p a:hover {
|
||||||
|
color: #fff;
|
||||||
|
transition: 0.5s all ease;
|
||||||
|
-webkit-transition: 0.5s all ease;
|
||||||
|
-moz-transition: 0.5s all ease;
|
||||||
|
-o-transition: 0.5s all ease;
|
||||||
|
-ms-transition: 0.5s all ease;
|
||||||
|
}
|
||||||
|
/*--//copyright--*/
|
||||||
|
|
||||||
|
/*--responsive--*/
|
||||||
|
|
||||||
|
@media(max-width: 1680px){
|
||||||
|
|
||||||
|
}
|
||||||
|
@media(max-width: 1600px){
|
||||||
|
|
||||||
|
}
|
||||||
|
@media(max-width: 1440px){
|
||||||
|
|
||||||
|
}
|
||||||
|
@media(max-width: 1366px){
|
||||||
|
.bg-agile {
|
||||||
|
width: 47%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 1280px){
|
||||||
|
.bg-agile {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 1080px){
|
||||||
|
h1 {
|
||||||
|
font-size: 2.8em;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 56%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 1050px){
|
||||||
|
|
||||||
|
}
|
||||||
|
@media(max-width: 1024px){
|
||||||
|
.bg-agile {
|
||||||
|
width: 58%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 991px){
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 95.5%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 900px){
|
||||||
|
h1 {
|
||||||
|
font-size: 2.6em;
|
||||||
|
}
|
||||||
|
.book-appointment h2 {
|
||||||
|
font-size: 1.7em;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 66%;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 800px){
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 72%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 768px){
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 95.5%;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 74%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 736px){
|
||||||
|
.bg-agile {
|
||||||
|
width: 76%;
|
||||||
|
}
|
||||||
|
.copy p {
|
||||||
|
line-height: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 667px){
|
||||||
|
h1 {
|
||||||
|
font-size: 2.4em;
|
||||||
|
}
|
||||||
|
.book-appointment {
|
||||||
|
padding: 2em;
|
||||||
|
}
|
||||||
|
.book-appointment h2 {
|
||||||
|
margin-bottom: 1.2em;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 78%;
|
||||||
|
}
|
||||||
|
.copy.w3ls {
|
||||||
|
margin: 2em 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 640px){
|
||||||
|
h1 {
|
||||||
|
letter-spacing: 0px;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 81%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 600px){
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 568px){
|
||||||
|
h1 {
|
||||||
|
font-size: 2.1em;
|
||||||
|
}
|
||||||
|
.copy p {
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 94.5%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 480px){
|
||||||
|
h1 {
|
||||||
|
font-size: 1.8em;
|
||||||
|
}
|
||||||
|
.book-appointment h2 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.bg-agile {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
input[type=submit] {
|
||||||
|
padding: .7em 1.5em;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 94%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 440px){
|
||||||
|
|
||||||
|
}
|
||||||
|
@media(max-width: 414px){
|
||||||
|
h1 {
|
||||||
|
font-size: 1.65em;
|
||||||
|
}
|
||||||
|
.book-appointment h2 {
|
||||||
|
font-size: 1.4em;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 93%;
|
||||||
|
}
|
||||||
|
.book-appointment p {
|
||||||
|
font-size: .95em;
|
||||||
|
letter-spacing: 0px;
|
||||||
|
}
|
||||||
|
.copy.w3ls {
|
||||||
|
margin: 1.5em 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 384px){
|
||||||
|
h1 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
.copy p {
|
||||||
|
font-size: .9em;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 375px){
|
||||||
|
.book-appointment h2 {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
.book-appointment {
|
||||||
|
padding: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width: 320px){
|
||||||
|
input[type=submit] {
|
||||||
|
padding: .8em 1em;
|
||||||
|
font-size: .9em;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
.book-appointment input[type="text"], .book-appointment input[type="date"], .book-appointment input[type="time"], .book-appointment input[type="email"], textarea {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--//responsive--*/
|
163
static/website/css/wickedpicker.css
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
.wickedpicker {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
box-shadow: 0 0 0 1px rgba(14, 41, 57, 0.12), 0 2px 5px rgba(14, 41, 57, 0.44), inset 0 -1px 2px rgba(14, 41, 57, 0.15);
|
||||||
|
background: #fefefe;
|
||||||
|
margin: 0 auto;
|
||||||
|
border-radius: 0.1px;
|
||||||
|
width: 318px;
|
||||||
|
height: 130px;
|
||||||
|
font-size: 14px;
|
||||||
|
display: none; }
|
||||||
|
.wickedpicker__title {
|
||||||
|
background-image: -webkit-linear-gradient(top, #ffffff 0%, #f2f2f2 100%);
|
||||||
|
background-image: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
|
||||||
|
position: relative;
|
||||||
|
background: #f2f2f2;
|
||||||
|
margin: 0 auto;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
padding: 12px 11px 10px 15px;
|
||||||
|
color: #4C4C4C;
|
||||||
|
font-size: inherit; }
|
||||||
|
.wickedpicker__close {
|
||||||
|
-webkit-transform: translateY(-25%);
|
||||||
|
-moz-transform: translateY(-25%);
|
||||||
|
-ms-transform: translateY(-25%);
|
||||||
|
-o-transform: translateY(-25%);
|
||||||
|
transform: translateY(-25%);
|
||||||
|
position: absolute;
|
||||||
|
top: 25%;
|
||||||
|
right: 5px;
|
||||||
|
color: #34495e;
|
||||||
|
cursor: pointer; }
|
||||||
|
.wickedpicker__close:before {
|
||||||
|
content: '\e802';
|
||||||
|
}
|
||||||
|
.wickedpicker__controls {
|
||||||
|
padding: 10px 0;
|
||||||
|
line-height: normal;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.wickedpicker__controls__control, .wickedpicker__controls__control--separator {
|
||||||
|
vertical-align: middle;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: inherit;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 35px;
|
||||||
|
letter-spacing: 1.3px;
|
||||||
|
}
|
||||||
|
.wickedpicker__controls__control-up, .wickedpicker__controls__control-down {
|
||||||
|
color: #34495e;
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
margin: 3px auto;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.wickedpicker__controls__control-up:before {
|
||||||
|
content: '\e800';
|
||||||
|
}
|
||||||
|
.wickedpicker__controls__control-down:after {
|
||||||
|
content: '\e801';
|
||||||
|
}
|
||||||
|
.wickedpicker__controls__control--separator {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
.text-center, .wickedpicker__title, .wickedpicker__controls, .wickedpicker__controls__control, .wickedpicker__controls__control--separator, .wickedpicker__controls__control-up, .wickedpicker__controls__control-down {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.hover-state {
|
||||||
|
color: #3498db;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'fontello';
|
||||||
|
src: url("../fonts/fontello.eot?52602240");
|
||||||
|
src: url("../fonts/fontello.eot?52602240#iefix") format("embedded-opentype"), url("../fonts/fontello.woff?52602240") format("woff"), url("../fonts/fontello.ttf?52602240") format("truetype"), url("../fonts/fontello.svg?52602240#fontello") format("svg");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
.fontello:before, .wickedpicker__close:before, .wickedpicker__controls__control-up:before, .fontello-after:after, .wickedpicker__controls__control-down:after {
|
||||||
|
font-family: 'fontello';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
speak: none;
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: inherit;
|
||||||
|
width: 1em;
|
||||||
|
margin-right: .2em;
|
||||||
|
text-align: center;
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
line-height: 1em;
|
||||||
|
margin-left: .2em;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media(max-width:991px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 309px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:900px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 274px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(max-width:768px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:736px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 256px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:667px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 223px;
|
||||||
|
height: 115px;
|
||||||
|
}
|
||||||
|
.wickedpicker__title {
|
||||||
|
padding: 8px 11px 7px 15px;
|
||||||
|
}
|
||||||
|
.wickedpicker__controls {
|
||||||
|
padding: 3px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:640px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 215px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:480px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 176px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:414px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 272px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:384px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 248px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:375px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 245px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media(max-width:320px){
|
||||||
|
.wickedpicker {
|
||||||
|
width: 203px;
|
||||||
|
}
|
||||||
|
}
|
BIN
static/website/fonts/fontello.eot
Normal file
14
static/website/fonts/fontello.svg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>Copyright (C) 2015 by original authors @ fontello.com</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="fontello" horiz-adv-x="1000" >
|
||||||
|
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
||||||
|
<missing-glyph horiz-adv-x="1000" />
|
||||||
|
<glyph glyph-name="up-open" unicode="" d="m939 107l-92-92q-11-10-26-10t-25 10l-296 297-296-297q-11-10-25-10t-26 10l-92 92q-11 11-11 26t11 25l414 414q11 10 25 10t25-10l414-414q11-11 11-25t-11-26z" horiz-adv-x="1000" />
|
||||||
|
<glyph glyph-name="down-open" unicode="" d="m939 399l-414-413q-10-11-25-11t-25 11l-414 413q-11 11-11 26t11 25l92 92q11 11 26 11t25-11l296-296 296 296q11 11 25 11t26-11l92-92q11-11 11-25t-11-26z" horiz-adv-x="1000" />
|
||||||
|
<glyph glyph-name="cancel" unicode="" d="m724 112q0-22-15-38l-76-76q-16-15-38-15t-38 15l-164 165-164-165q-16-15-38-15t-38 15l-76 76q-16 16-16 38t16 38l164 164-164 164q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164 164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38l-164-164 164-164q15-15 15-38z" horiz-adv-x="785.7" />
|
||||||
|
</font>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
BIN
static/website/fonts/fontello.ttf
Normal file
BIN
static/website/fonts/fontello.woff
Normal file
BIN
static/website/images/2.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
static/website/images/bg.jpg
Normal file
After Width: | Height: | Size: 414 KiB |
BIN
static/website/images/c-arrows.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
static/website/images/logo.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
static/website/images/logo2.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
static/website/images/scissors.png
Normal file
After Width: | Height: | Size: 15 KiB |
4
static/website/js/jquery-2.1.4.min.js
vendored
Normal file
14912
static/website/js/jquery-ui.js
vendored
Normal file
383
static/website/js/wickedpicker.js
Normal file
@ -0,0 +1,383 @@
|
|||||||
|
/**
|
||||||
|
* wickedpicker v0.1.0 - A simple jQuery timepicker.
|
||||||
|
* Copyright (c) 2015 Eric Gagnon - http://github.com/wickedRidge/wickedpicker
|
||||||
|
* License: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function ($, window, document, undefined) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
if (typeof String.prototype.endsWith != 'function') {
|
||||||
|
/*
|
||||||
|
* Checks if this string end ends with another string
|
||||||
|
*
|
||||||
|
* @param {string} the string to be checked
|
||||||
|
*
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
String.prototype.endsWith = function (string) {
|
||||||
|
return string.length > 0 && this.substring(this.length - string.length, this.length) === string;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns if the user agent is mobile
|
||||||
|
*
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
var isMobile = function () {
|
||||||
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
|
};
|
||||||
|
|
||||||
|
var pluginName = "wickedpicker",
|
||||||
|
defaults = {
|
||||||
|
now: new Date(),
|
||||||
|
twentyFour: false
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @param {object} The input object the timepicker is attached to.
|
||||||
|
* @param {object} The object containing options
|
||||||
|
*/
|
||||||
|
function Wickedpicker(element, options) {
|
||||||
|
this.element = $(element);
|
||||||
|
this.options = $.extend({}, defaults, options);
|
||||||
|
|
||||||
|
this.element.addClass('hasWickedpicker');
|
||||||
|
this.element.attr('onkeypress', 'return false;');
|
||||||
|
this.createPicker();
|
||||||
|
this.timepicker = $('.wickedpicker');
|
||||||
|
this.up = $('.wickedpicker__controls__control-up');
|
||||||
|
this.down = $('.wickedpicker__controls__control-down');
|
||||||
|
this.hoursElem = $('.wickedpicker__controls__control--hours');
|
||||||
|
this.minutesElem = $('.wickedpicker__controls__control--minutes');
|
||||||
|
this.meridiemElem = $('.wickedpicker__controls__control--meridiem');
|
||||||
|
this.close = $('.wickedpicker__close');
|
||||||
|
this.selectedHour = this.parseHours(this.options.now.getHours());
|
||||||
|
this.selectedMin = this.parseMinutes(this.options.now.getMinutes());
|
||||||
|
this.selectedMeridiem = this.parseMeridiem(this.options.now.getHours());
|
||||||
|
this.setHoverState();
|
||||||
|
this.attach(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
$.extend(Wickedpicker.prototype, {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Show given input's timepicker
|
||||||
|
*
|
||||||
|
* @param {object} The input being clicked
|
||||||
|
*/
|
||||||
|
showPicker: function (element) {
|
||||||
|
var timepickerPos = $(element.target).offset();
|
||||||
|
this.setText(element);
|
||||||
|
this.showHideMeridiemControl();
|
||||||
|
if (this.getText(element) !== this.getTime()) {
|
||||||
|
var inputTime = this.getText(element).replace(':', '').split(' ');
|
||||||
|
var newTime = new Date();
|
||||||
|
newTime.setHours(inputTime[0]);
|
||||||
|
newTime.setMinutes(inputTime[2]);
|
||||||
|
this.setTime(newTime);
|
||||||
|
this.setMeridiem(inputTime[3]);
|
||||||
|
}
|
||||||
|
this.timepicker.css({
|
||||||
|
'z-index': this.element.css('z-index') + 1,
|
||||||
|
position: 'absolute',
|
||||||
|
left: timepickerPos.left,
|
||||||
|
top: timepickerPos.top + element.target.offsetHeight + 5
|
||||||
|
}).show();
|
||||||
|
|
||||||
|
this.handleTimeAdjustments(element);
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hides the timepicker that is currently shown if it is not part of the timepicker
|
||||||
|
*
|
||||||
|
* @param {Object} The DOM object being clicked on the page
|
||||||
|
*/
|
||||||
|
hideTimepicker: function (element) {
|
||||||
|
this.timepicker.hide();
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create a new timepicker. A single timepicker per page
|
||||||
|
*/
|
||||||
|
createPicker: function () {
|
||||||
|
if ($('.wickedpicker').length === 0) {
|
||||||
|
$('body').append('<div class="wickedpicker"> <p class="wickedpicker__title">Pick Your Time <span class="wickedpicker__close"></span> </p> <ul class="wickedpicker__controls"> <li class="wickedpicker__controls__control"> <span class="wickedpicker__controls__control-up"></span><span class="wickedpicker__controls__control--hours">00</span><span class="wickedpicker__controls__control-down"></span> </li><li class="wickedpicker__controls__control--separator"><span class="wickedpicker__controls__control--separator-inner">:</span></li> <li class="wickedpicker__controls__control"> <span class="wickedpicker__controls__control-up"></span><span class="wickedpicker__controls__control--minutes">00</span><span class="wickedpicker__controls__control-down"></span> </li> <li class="wickedpicker__controls__control"> <span class="wickedpicker__controls__control-up"></span><span class="wickedpicker__controls__control--meridiem">AM</span><span class="wickedpicker__controls__control-down"></span> </li> </ul> </div>');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hides the meridiem control if this timepicker is a 24 hour clock
|
||||||
|
*/
|
||||||
|
showHideMeridiemControl: function () {
|
||||||
|
if (this.options.twentyFour === false) {
|
||||||
|
$('.wickedpicker__controls__control--meridiem').parent().show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('.wickedpicker__controls__control--meridiem').parent().hide();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bind the click events to the input
|
||||||
|
*/
|
||||||
|
attach: function (element) {
|
||||||
|
$(element).on('click', $.proxy(this.showPicker, this));
|
||||||
|
$(this.close).on('click', $.proxy(this.hideTimepicker, this));
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the time on the timepicker
|
||||||
|
*
|
||||||
|
* @param {Date} The date being set
|
||||||
|
*/
|
||||||
|
setTime: function (time) {
|
||||||
|
this.setHours(time.getHours());
|
||||||
|
this.setMinutes(time.getMinutes());
|
||||||
|
this.setMeridiem();
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the time from the timepicker
|
||||||
|
*/
|
||||||
|
getTime: function () {
|
||||||
|
return [this.formatTime(this.getHours(), this.getMinutes(), this.getMeridiem())];
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the timpicker's hour(s) value
|
||||||
|
*
|
||||||
|
* @param {string} hours
|
||||||
|
*/
|
||||||
|
setHours: function (hours) {
|
||||||
|
var hour = new Date();
|
||||||
|
hour.setHours(hours);
|
||||||
|
var hoursText = this.parseHours(hour.getHours());
|
||||||
|
this.hoursElem.text(hoursText);
|
||||||
|
this.selectedHour = hoursText;
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the hour(s) value from the timepicker
|
||||||
|
*
|
||||||
|
* @return {integer}
|
||||||
|
*/
|
||||||
|
getHours: function () {
|
||||||
|
var hours = new Date();
|
||||||
|
hours.setHours(this.hoursElem.text());
|
||||||
|
return hours.getHours();
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the correct hour value based on the type of clock, 12 or 24 hour
|
||||||
|
*
|
||||||
|
* @param {integer} The hours value before parsing
|
||||||
|
*
|
||||||
|
* @return {string|integer}
|
||||||
|
*/
|
||||||
|
parseHours: function (hours) {
|
||||||
|
return (this.options.twentyFour === false) ? ((hours + 11) % 12) + 1 : (hours < 10) ? '0' + hours : hours;
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the timpicker's minutes value
|
||||||
|
*
|
||||||
|
* @param {string} minutes
|
||||||
|
*/
|
||||||
|
setMinutes: function (minutes) {
|
||||||
|
var minute = new Date();
|
||||||
|
minute.setMinutes(minutes);
|
||||||
|
var minutesText = minute.getMinutes();
|
||||||
|
var min = this.parseMinutes(minutesText);
|
||||||
|
this.minutesElem.text(min);
|
||||||
|
this.selectedMin = min;
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the minutes value from the timepicker
|
||||||
|
*
|
||||||
|
* @return {integer}
|
||||||
|
*/
|
||||||
|
getMinutes: function () {
|
||||||
|
var minutes = new Date();
|
||||||
|
minutes.setMinutes(this.minutesElem.text());
|
||||||
|
return minutes.getMinutes();
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return a human-readable mintues value
|
||||||
|
*
|
||||||
|
* @param {string} minutes
|
||||||
|
*
|
||||||
|
* @return {string|integer}
|
||||||
|
*/
|
||||||
|
parseMinutes: function (minutes) {
|
||||||
|
return ((minutes < 10) ? '0' : '') + minutes;
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the timepicker's meridiem value, AM or PM
|
||||||
|
*
|
||||||
|
* @param {string} The new meridiem
|
||||||
|
*/
|
||||||
|
setMeridiem: function (inputMeridiem) {
|
||||||
|
var newMeridiem = '';
|
||||||
|
if (inputMeridiem === undefined) {
|
||||||
|
var meridiem = this.getMeridiem();
|
||||||
|
newMeridiem = (meridiem === 'PM') ? 'AM' : 'PM';
|
||||||
|
} else {
|
||||||
|
newMeridiem = inputMeridiem;
|
||||||
|
}
|
||||||
|
this.meridiemElem.text(newMeridiem);
|
||||||
|
this.selectedMeridiem = newMeridiem;
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the timepicker's meridiem value, AM or PM
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
getMeridiem: function () {
|
||||||
|
return this.meridiemElem.text();
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the correct meridiem based on the hours given
|
||||||
|
*
|
||||||
|
* @param {string|integer} hours
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
parseMeridiem: function (hours) {
|
||||||
|
return (hours > 12) ? 'PM' : 'AM';
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Handles time incrementing and decrementing and passes
|
||||||
|
* the operator, '+' or '-', the input to be set after the change
|
||||||
|
* and the current arrow clicked, to decipher if hours, ninutes, or meridiem.
|
||||||
|
*
|
||||||
|
* @param {object} The input element
|
||||||
|
*/
|
||||||
|
handleTimeAdjustments: function(element) {
|
||||||
|
var timeOut = 0;
|
||||||
|
//Click and click and hold timepicker incrementer and decrementer
|
||||||
|
$(this.up).add(this.down).off('mousedown click touchstart').on('mousedown click', {
|
||||||
|
'Wickedpicker': this,
|
||||||
|
'input': element
|
||||||
|
}, function (event) {
|
||||||
|
var operator = (this.className.indexOf('up') > -1) ? '+' : '-';
|
||||||
|
var passedData = event.data;
|
||||||
|
if (event.type == 'mousedown') {
|
||||||
|
timeOut = setInterval($.proxy(function (args) {
|
||||||
|
args.Wickedpicker.changeValue(operator, args.input, this);
|
||||||
|
}, this, {'Wickedpicker': passedData.Wickedpicker, 'input': passedData.input}), 200);
|
||||||
|
} else {
|
||||||
|
passedData.Wickedpicker.changeValue(operator, passedData.input, this);
|
||||||
|
}
|
||||||
|
}).bind('mouseup touchend', function () {
|
||||||
|
clearInterval(timeOut);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Change the timepicker's time base on what is clicked
|
||||||
|
*
|
||||||
|
* @param {string} The + or - operator
|
||||||
|
* @param {object} The timepicker's associated input to be set post change
|
||||||
|
* @param {object} The DOM arrow object clicked, determines if it is hours,
|
||||||
|
* minutes, or meridiem base on the operator and its siblings
|
||||||
|
*/
|
||||||
|
changeValue: function (operator, input, clicked) {
|
||||||
|
var target = (operator === '+') ? clicked.nextSibling : clicked.previousSibling;
|
||||||
|
var targetClass = $(target).attr('class');
|
||||||
|
|
||||||
|
if (targetClass.endsWith('hours')) {
|
||||||
|
this.setHours(eval(this.getHours() + operator + 1));
|
||||||
|
} else if (targetClass.endsWith('minutes')) {
|
||||||
|
this.setMinutes(eval(this.getMinutes() + operator + 1));
|
||||||
|
} else {
|
||||||
|
this.setMeridiem();
|
||||||
|
}
|
||||||
|
this.setText(input);
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sets the give input's text to the current timepicker's time
|
||||||
|
*
|
||||||
|
* @param {object} The input element
|
||||||
|
*/
|
||||||
|
setText: function (input) {
|
||||||
|
$(input.target).val(this.formatTime(this.selectedHour, this.selectedMin, this.selectedMeridiem));
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the given input's value
|
||||||
|
*
|
||||||
|
* @param {object} The input element
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
getText: function (input) {
|
||||||
|
return $(input.target).val();
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the correct time format as a string
|
||||||
|
*
|
||||||
|
* @param {string} hour
|
||||||
|
* @param {string} minutes
|
||||||
|
* @param {string} meridiem
|
||||||
|
*
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
formatTime: function (hour, min, meridiem) {
|
||||||
|
if (this.options.twentyFour) {
|
||||||
|
return hour + ' : ' + min;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return hour + ' : ' + min + ' ' + meridiem;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
setHoverState: function () {
|
||||||
|
if (!isMobile()) {
|
||||||
|
$(this.up).add(this.down).add(this.close).hover(function () {
|
||||||
|
$(this).toggleClass('hover-state');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
//public functions
|
||||||
|
/*
|
||||||
|
* Returns the requested input element's value
|
||||||
|
*/
|
||||||
|
_time: function () {
|
||||||
|
var inputValue = $(this.element).val();
|
||||||
|
return (inputValue === '') ? this.formatTime(this.selectedHour, this.selectedMin, this.selectedMeridiem) : inputValue;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//optional index if multiple inputs share the same class
|
||||||
|
$.fn[pluginName] = function (options, index) {
|
||||||
|
if (!$.isFunction(Wickedpicker.prototype['_' + options])) {
|
||||||
|
return this.each(function () {
|
||||||
|
if (!$.data(this, "plugin_" + pluginName)) {
|
||||||
|
$.data(this, "plugin_" + pluginName, new Wickedpicker(this, options));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else if ($(this).hasClass('hasWickedpicker')) {
|
||||||
|
if (index !== undefined) {
|
||||||
|
return $.data($(this)[index], 'plugin_' + pluginName)['_' + options]();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return $.data($(this)[0], 'plugin_' + pluginName)['_' + options]();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
})(jQuery, window, document);
|
0
website/__init__.py
Normal file
BIN
website/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
website/__pycache__/admin.cpython-38.pyc
Normal file
BIN
website/__pycache__/models.cpython-38.pyc
Normal file
BIN
website/__pycache__/urls.cpython-38.pyc
Normal file
BIN
website/__pycache__/views.cpython-38.pyc
Normal file
5
website/admin.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
from .models import Dest
|
||||||
|
# Register your models here.
|
||||||
|
|
||||||
|
admin.site.register(Dest)
|
5
website/apps.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class WebsiteConfig(AppConfig):
|
||||||
|
name = 'website'
|
24
website/migrations/0001_initial.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Generated by Django 3.1.6 on 2021-02-05 18:32
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
initial = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Dest',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(max_length=100)),
|
||||||
|
('img', models.ImageField(upload_to='pics')),
|
||||||
|
('desc', models.TextField()),
|
||||||
|
('offer', models.BooleanField(default=False)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
19
website/migrations/0002_dest_price.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 3.1.6 on 2021-02-05 18:39
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dest',
|
||||||
|
name='price',
|
||||||
|
field=models.IntegerField(default=0),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
]
|
0
website/migrations/__init__.py
Normal file
BIN
website/migrations/__pycache__/0001_initial.cpython-38.pyc
Normal file
BIN
website/migrations/__pycache__/0002_dest_price.cpython-38.pyc
Normal file
BIN
website/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
10
website/models.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
||||||
|
class Dest(models.Model):
|
||||||
|
|
||||||
|
name = models.CharField(max_length=100)
|
||||||
|
img = models.ImageField(upload_to='pics')
|
||||||
|
desc = models.TextField()
|
||||||
|
price = models.IntegerField()
|
||||||
|
offer = models.BooleanField(default=False)
|
115
website/templates/home.html
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
|
||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="icon" href="{% static 'website/images/scissors.png' %}">
|
||||||
|
|
||||||
|
<title>EasyAppt - fast and easy barber appointments!</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<meta name="keywords" content="barber, hairstylist, hairsalon, book appointments, appointments, book">
|
||||||
|
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
|
||||||
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||||
|
<!-- Custom Theme files -->
|
||||||
|
<link href="{% static 'website/css/wickedpicker.css' %}" rel="stylesheet" type='text/css' media="all" />
|
||||||
|
<link href="{% static 'website/css/style.css' %}" rel='stylesheet' type='text/css' />
|
||||||
|
<!--fonts-->
|
||||||
|
<link href="//fonts.googleapis.com/css?family=Signika:300,400,600,700&subset=latin-ext" rel="stylesheet">
|
||||||
|
<!--//fonts-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--background-->
|
||||||
|
|
||||||
|
<navbar>
|
||||||
|
<ul class="nav-list">
|
||||||
|
<li class="nav-item"><a href="#"><img src="{% static 'website/images/logo2.png' %}"></a></li>
|
||||||
|
<li class="nav-item"><a class="active" href="/">Home</a></li>
|
||||||
|
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<li class="nav-item">Hello, {{user.first_name }} </li>
|
||||||
|
<li class="nav-item"><a href="accounts/logout"> Logout</a></li>
|
||||||
|
{% else %}
|
||||||
|
<li class="nav-item"><a href="accounts/register">Register</a></li>
|
||||||
|
<li class="nav-item"><a href="accounts/login">Login</a></li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
</navbar>
|
||||||
|
|
||||||
|
<h1>EasyAppt - fast and easy barber appointments! </h1>
|
||||||
|
|
||||||
|
<div class="bg-agile">
|
||||||
|
<div class="book-appointment">
|
||||||
|
<h2>Make an appointment</h2>
|
||||||
|
<form action="#" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<div class="left-agileits-w3layouts same">
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Your Name</p>
|
||||||
|
<input type="text" name="first_name" placeholder="{{user.first_name }}" required=""/>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Email</p>
|
||||||
|
<input type="email" name="email" placeholder="{{user.email }}" required="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="right-agileinfo same">
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Book Your Date</p>
|
||||||
|
<input id="datepicker1" name="Text" type="text" value="" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'mm/dd/yyyy';}" required="">
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Book Your Time</p>
|
||||||
|
<input type="text" id="timepicker" name="Time" class="timepicker form-control" value="">
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Services</p>
|
||||||
|
<select class="form-control">
|
||||||
|
<option></option>
|
||||||
|
<option>Haircut with clippers</option>
|
||||||
|
<option>Haircut with clippers & scissors</option>
|
||||||
|
<option>Haircut and beard combo</option>
|
||||||
|
<option>Beard</option>
|
||||||
|
<option>Haircut & eyebrows</option>
|
||||||
|
<option>Dying gray hair</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<p>Stylist</p>
|
||||||
|
<select class="form-control">
|
||||||
|
<option></option>
|
||||||
|
<option>First Available</option>
|
||||||
|
<option>Keith Apelon</option>
|
||||||
|
<option>Frank Swan</option>
|
||||||
|
<option>Dario Tequila</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<input type="submit" value="Make an appointment">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--copyright-->
|
||||||
|
<div class="copy w3ls">
|
||||||
|
<p>© 2021 EasyAppt | by <a href="https://github.com/Nikkoro" target="_blank">Nikkoro</a> </p>
|
||||||
|
</div>
|
||||||
|
<!--//copyright-->
|
||||||
|
<script type="text/javascript" src="{% static 'website/js/jquery-2.1.4.min.js' %}"></script>
|
||||||
|
<script type="text/javascript" src="{% static 'website/js/wickedpicker.js' %}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$('.timepicker').wickedpicker({twentyFour: false});
|
||||||
|
</script>
|
||||||
|
<!-- Calendar -->
|
||||||
|
<link rel="stylesheet" href="{% static 'website/css/jquery-ui.css' %}" />
|
||||||
|
<script src="{% static 'website/js/jquery-ui.js' %}"></script>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$( "#datepicker,#datepicker1,#datepicker2,#datepicker3" ).datepicker();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<!-- //Calendar -->
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
41
website/templates/login.html
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link href="{% static 'website/css/style.css' %}" rel='stylesheet' type='text/css' />
|
||||||
|
<title>Login</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<navbar>
|
||||||
|
<ul class="nav-list">
|
||||||
|
<li class="nav-item"><a href="#"><img src="{% static 'website/images/logo2.png' %}"></a></li>
|
||||||
|
<li class="nav-item"><a class="active" href="/">Home</a></li>
|
||||||
|
</ul>
|
||||||
|
</navbar>
|
||||||
|
<div class="bg-agile">
|
||||||
|
<div class="book-appointment">
|
||||||
|
<form action="login" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<div class="msg">
|
||||||
|
{% for message in messages %}
|
||||||
|
<h3> {{message}}</h3>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<div class="left-agileits-w3layouts same">
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="text" name="username" placeholder="Username"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="password" name="password" placeholder=" Password" class="input-generic"><br>
|
||||||
|
</div>
|
||||||
|
<input type="Submit" value="Submit">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
57
website/templates/register.html
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Registration</title>
|
||||||
|
<link href="{% static 'website/css/style.css' %}" rel='stylesheet' type='text/css' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<navbar>
|
||||||
|
<ul class="nav-list">
|
||||||
|
<li class="nav-item"><a href="#"><img src="{% static 'website/images/logo2.png' %}"></a></li>
|
||||||
|
<li class="nav-item"><a class="active" href="/">Home</a></li>
|
||||||
|
<li class="nav-item"><a href="login">Login</a></li>
|
||||||
|
</ul>
|
||||||
|
</navbar>
|
||||||
|
<div class="bg-agile">
|
||||||
|
<div class="book-appointment">
|
||||||
|
<h2>Register</h2>
|
||||||
|
|
||||||
|
<div class ="msg">
|
||||||
|
{% for message in messages %}
|
||||||
|
<h3> {{message}}</h3>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<form action="register" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<div class="left-agileits-w3layouts same">
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="text" name="first_name" placeholder="First Name"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="text" name="last_name" placeholder="Last Name"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="text" name="username" placeholder="Username"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="email" name="email" placeholder="Email"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
|
||||||
|
<input type="password" name="password1" placeholder="Password" class="input-generic"><br>
|
||||||
|
</div>
|
||||||
|
<div class="gaps">
|
||||||
|
<input type="password" name="password2" placeholder="Repeat password" class="input-generic"><br>
|
||||||
|
</div>
|
||||||
|
<input type="Submit" value="Submit">
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
3
website/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
6
website/urls.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from django.urls import path
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('', views.home, name="home"),
|
||||||
|
]
|
4
website/views.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
def home(request):
|
||||||
|
return render(request, 'home.html', {})
|