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

Fixed typos in all template files

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