Commit b88d3ac6 authored by karin-kurusu's avatar karin-kurusu

Fixed typos in all template files

parent c163d660
{% extends 'base.html' %}
{% load static %}
{% block title %}Widget's Forum(% endblock %)
{% block title %}Widget's Forum{% endblock %}
{% block content %}
<h2>Welcome to Widget's Forum!</h2>
<h3>Forum posts:</h3>
{% for forumpost in forumposts %}
<a href="{{ forumpost.get_absolute_url }}">{{ forumpost.author.last_name }}, {{ forumpost.author.first_name }}</a><br>
<a href="{{ forumpost.get_absolute_url }}">{{ forumpost.title }} by {{ forumpost.author.last_name }}, {{ forumpost.author.first_name }}</a><br>
{% endfor %}
......
{% extends 'base.html' %}
{% load static %}
{% block title %}Add Post(% endblock %)
{% block title %}Add Post{% endblock %}
{% block content %}
<h2>Add a new post:</h2>
<p>
<form action="" method="post">
<form action='' method="POST">
{% csrf_token %}
<table>
{{ form.as_table }}
......
{% extends 'base.html' %}
{% load static %}
{% block title %}{{ forumpost.title}} (% endblock %)
{% block title %}{{ forumpost.title}} {% endblock %}
{% block content %}
<h2>{{ forumpost.title }}</h2>
<h3> by {{forumpost.author.first_name}} {{ forumpost.author.last_name }}</h3>
......@@ -21,8 +21,6 @@
<br>
{% endfor %}
<form action="edit">
<input type="submit" value="Edit Post"/>
</form>
<button> <a href="{% url 'forum:forumpost-edit' forumpost.pk %}">Edit Post</a></button>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Post(% endblock %)
{% block title %}Edit Post{% endblock %}
{% block content %}
<h2>Edit post:</h2>
<p>
<form action="" method="post">
<form action='' method="POST">
{% csrf_token %}
<table>
{{ form.as_table }}
......
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