Commit a4aa8d62 authored by Adam Zachary Bulatao's avatar Adam Zachary Bulatao

edited

parent f06c827a
Pipeline #1556 failed with stages
<!doctype html>
<html lang="en">
<head>
<a href="{% url 'home' %}">Home</a>
<a href="{% url 'profile' %}">Profile</a>
<a href="{% url 'key' %}">Key</a>
<a href="{% url 'thisweek' %}">This Week</a>
<a href="{% url 'today' %}">Today</a>
</head>
<body style="background-color:powderblue;">
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
{% extends 'base.html'%}
<head>
</head>
<body style="background-color:powderblue;">
<body>
{% block content %}
<title>Your Bujo</title>
<h1><center>Today is going to be a great day!</center></h1>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
<center>
{% if Submit != none %}
<h1> Hello {{Submit}}! Today is going to be a great day!</h1>
{% else %}
<h1>Hello! What is your name?</h1>
<form action='home' method='post'>
{% csrf_token %}
{{ form }}
<input type='submit' value="Submit">
</form>
{% endif %}
</center>
{% endblock %}
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
</head>
<body style="background-color:powderblue;">
<title>Your Bujo</title>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
{% extends 'base.html'%}
<head>
</head>
<body style="background-color:powderblue;">
<body>
{% block content %}
<title>Key</title>
<h1><center>Key</center></h1>
<text><center> &diams; Tasks: Things you have to do</center></text>
......@@ -14,10 +14,5 @@
<text><center> &empty; Task incomplete</center></text>
<br>
<text><center> &Omicron; Task complete</center></text>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
{% endblock %}
</body>
\ No newline at end of file
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
<br>
<body style="background-color:powderblue;">
{% extends 'base.html'%}
<head>
</head>
<body>
{% block content %}
<title>Profile</title>
<br>
<h1><center>Profile</center></h1>
......@@ -10,10 +10,5 @@
<br>
<text><center>19 years old, 2nd Year Comp Sci major, video editor on the side</center></text>
<br>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
{% endblock %}
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
{% extends 'base.html'%}
<head>
</head>
<body style="background-color:powderblue;">
<body>
{% block content %}
<title>This Week</title>
<h1><center>This Week</center></h1>
<text><center>3.28.2021-4.03.2021</center></text>
......@@ -17,10 +17,5 @@
<br>
<text><center> &empty; Do laundry</center></text>
<br>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
{% endblock %}
</body>
</html>
\ No newline at end of file
<!doctype html>
<html lang="en">
{% extends 'base.html'%}
<head>
</head>
<body style="background-color:powderblue;">
<body>
{% block content %}
<title>Today</title>
<h1><center>Today</center></h1>
<text><center>3.30.2021</center></text>
......@@ -15,10 +15,5 @@
<br>
<text><center> &hearts; Try to sleep by 12am</center></text>
<br>
<a href="{% url 'home' %}"><center>Home</center></a>
<a href="{% url 'profile' %}"><center>Profile</center></a>
<a href="{% url 'key' %}"><center>Key</center></a>
<a href="{% url 'thisweek' %}"><center>This Week</center></a>
<a href="{% url 'today' %}"><center>Today</center></a>
{% endblock %}
</body>
\ No newline at end of file
</html>
\ No newline at end of file
from django import forms
class IndexCardForm(forms.Form):
name = forms.CharField(label='Your name', max_length=20)
\ No newline at end of file
class NameForm(forms.Form):
fname = forms.CharField(label='name', max_length=20)
\ No newline at end of file
from django.shortcuts import render, redirect
from django.http import HttpResponse
from .forms import IndexCardForm
from .forms import NameForm
def home(request):
return render(request, 'home.html')
def index(request):
return render(request, 'index.html')
if request.method == 'POST':
form = NameForm(request.POST)
if form.is_valid():
return render(request, 'home.html',{'Submit': form.cleaned_data['fname']})
else:
return render(request, 'home.html', {'form': form})
else:
form = NameForm()
return render(request, 'home.html', {'form': form})
def profile(request):
return render(request, 'profile.html')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment