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

edited

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