parent
908ae1a139
commit
261279b881
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@ |
||||
li a { |
||||
color: red; |
||||
} |
||||
@ -0,0 +1,33 @@ |
||||
<!DOCTYPE html> |
||||
|
||||
{% load static %} |
||||
|
||||
<html lang="en"> |
||||
<head> |
||||
<link rel="stylesheet" type="text/css" href="{% static 'news/style.css' %}"> |
||||
<title>{% block title %}My amazing site{% endblock %}</title> |
||||
</head> |
||||
|
||||
<body> |
||||
|
||||
<h1><a href="{% url 'news:index' %}">Poker CC</a></h1> |
||||
|
||||
<p> |
||||
{% if user.is_authenticated %} |
||||
<a href="{% url 'news:submission' %}">Submit</a> |
||||
{% else %} |
||||
<a href="{% url 'news:createaccount' %}">Create account</a> |
||||
{% endif %} |
||||
</p> |
||||
|
||||
<hr/> |
||||
|
||||
<div id="content"> |
||||
{% block content %}{% endblock %} |
||||
</div> |
||||
<hr/> |
||||
<footer> |
||||
some footer |
||||
</footer> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,24 @@ |
||||
{% extends "base.html" %} |
||||
|
||||
{% block title %}My amazing blog{% endblock %} |
||||
|
||||
{% block content %} |
||||
<h1>Create account</h1> |
||||
<form action="{% url 'news:submit' %}" method="post"> |
||||
|
||||
<p>Username</p> |
||||
<p> |
||||
<input type="text" name="username" value=""> |
||||
</p> |
||||
|
||||
<p>Password</p> |
||||
<p> |
||||
<input type="text" name="password1" value=""> |
||||
<input type="text" name="password2" value=""> |
||||
</p> |
||||
|
||||
<input type="submit" value="Submit"> |
||||
|
||||
</form> |
||||
|
||||
{% endblock content %} |
||||
@ -1,3 +1,11 @@ |
||||
{% extends "base.html" %} |
||||
|
||||
{% block title %}My amazing blog{% endblock %} |
||||
|
||||
{% block content %} |
||||
|
||||
<p>Thanks :)</p> |
||||
|
||||
<p><a href="{% url 'news:index' %}">Home</a></p> |
||||
|
||||
{% endblock content %} |
||||
|
||||
Loading…
Reference in new issue