Commit 0ea1e560 authored by Jose Luis Bautista's avatar Jose Luis Bautista

HTML placeholder values and img done

parent 941a39e3
......@@ -5,13 +5,17 @@
<link rel=stylesheet href="{% static 'style.css' %}">
{% endblock %}
<html>
<head>
<meta charest = "utf-8">
<meta name= "viewport" content = "width=device-width">
<title>{% block title %}{% endblock %}</title>
<h2 align = 'center'> {% block header %} {% endblock %} </h2>
<hr class="dotted">
</head>
<body>
<nav>
<ul>
<li><a href = "{% url 'home' %}">Home</a></li>
......@@ -21,11 +25,6 @@
<li><a href = "{% url 'today' %}">Today</a></li>
</ul>
</nav>
<h2 align = 'right'> {% block header %} {% endblock %} </h2>
<hr class="dotted">
</head>
<body>
{% block body %}
{% endblock %}
</body>
......
......@@ -19,6 +19,7 @@
{{ form }}
<input type="submit" name="submit" id = "submit" value = "Submit Name">
</form>
{% endif %}
{% endblock %}
......
......@@ -3,3 +3,14 @@
{% block title %}Key{% endblock %}
{% block header %}Key{% endblock %}
{% block body %}
<h3> • Tasks: Things you have to do </h3>
<h3> - Notes: Things you don't want to forget</h3>
<h3> O Events: Noteworthy moments in time </h3>
<h4> • Task incomplete </h4>
<h4> x Task complete </h4>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}Profile{% endblock %}
{% block header %}Profile{% endblock %}
{% block body %}
<br>
<img src="{% static 'john.jpg' %}" width="600" height="400">
<h3> This is John Batungbacal. <br>He works at the SM department store as a sales representative. <br>He likes to play Mobile Legends and customizing his motorcycle.</h3>
{% endblock %}
\ No newline at end of file
......@@ -3,3 +3,16 @@
{% block title %}This Week{% endblock %}
{% block header %}This Week{% endblock %}
{% block body %}
<h1> 3.22.MON - 3.28.SUN </h1>
<h3> • Maglinis ng bahay </h3>
<h3> • Bolpen ni kapatid </h3>
<h3> • Charger wag kalimutan</h3>
<h3> - Mura lugaw dun sa may kanto malapit sa trike station </h3>
<h3> O (26) Date with bebe (whole day) </h3>
<h3> O (28) Ride with the boys pa MOA (whole day) </h3>
{% endblock %}
\ No newline at end of file
......@@ -7,4 +7,11 @@
{% block body %}
<h1> {{date}} </h1>
<h3> • Pabili ni baby </h3>
<h3> • NBI Clearance </h3>
<h3> - Pabili ni baby </h3>
<h3> - Mga sinampay, baka umulan </h3>
<h3> O ML league stream (8pm) </h3>
{% endblock %}
\ No newline at end of file
......@@ -5,30 +5,26 @@ from datetime import datetime
from .forms import home, profile, key, this_week, today
def page_home(request):
if request.method == 'POST':
form = home(request.POST)
if form.is_valid():
return render(request, 'home.html', {'form' : form, 'name' : form.cleaned_data['name']})
else:
form = home()
# if request.method == 'POST':
# form = home(request.POST)
# else:
# form = home()
return render(request, 'home.html', {'form' : form})
def page_profile(request):
return render(request, 'profile.html',{'profile': profile})
return render(request, 'profile.html')
def page_key(request):
return render(request, 'key.html',{'profile': profile})
return render(request, 'key.html')
def page_this_week(request):
return render(request, 'this_week.html',{'profile': profile})
return render(request, 'this_week.html')
def page_today(request):
# return HttpResponse("<h1>Hello, world !</h1>")
# Some Date Object, for example a default generated by datetime
myDate = datetime.now()
# Give a format to the date
# Displays something like: Aug. 27, 2017, 2:57 p.m.
formatedDate = myDate.strftime("%m-%d-%A")
myDate = datetime.now()
formattedDate = myDate.strftime("%m.%d.%A")
# Do something with the formatted date
return render(request, 'today.html', {'date': formatedDate})
return render(request, 'today.html', {'date': formattedDate})
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