Commit 89658916 authored by Norberto Tadeo's avatar Norberto Tadeo 😔

Merge branch 'tadeo/forum' into 'master'

changed some of the layout for better view

See merge request !10
parents ec298668 e08fe1f5
{% extends "forum/base.html" %} {% extends "forum/base.html" %}
{% block content %} {% block content %}
<center>New Forum Post</center> <h1><center>New Forum Post</center></h1>
<a href = "/forum/" style="background-color:whitesmoke;border:2px solid black;">Back to main Forum</a> <a href = "/forum/" style="background-color:whitesmoke;border:2px solid black;">Back to main Forum</a>
<button class="button" type="submit">Save Post</button>
<form action="{% url 'forum:addForumPosts' %}" method="POST"> <form action="{% url 'forum:addForumPosts' %}" method="POST">
{% csrf_token %} {% csrf_token %}
<center>Title:{{addposts.post_title}} Author: {{addposts.author}} {{addposts.pub_date}}</center> <center>Title:{{addposts.post_title}}
<br>
<br> Author: {{addposts.author}} {{addposts.pub_date}}</center>
<br> <br>
Post Body: <p6 style="background-color:aquamarine;">Post Body:</p6>
<center style="background-color: aquamarine;">{{addposts.post_body}}</center> <center style="background-color: aquamarine;">{{addposts.post_body}}</center>
<br> <br>
<button class="button" type="submit">Save Post</button> Optional: Add Photo
{{addposts.photo}} {{addposts.photo}}
</form> </form>
<br>
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends "forum/base.html" %} {% extends "forum/base.html" %}
{% block content %} {% block content %}
<h1><b> '{{post.post_title}}'</b></h1> <h1><b><center> '{{post.post_title}}'</center></b></h1>
<p style="font-size:15px;margin-left: 20px;border:none;background-color:aqua;"> by <i>{{post.author.first_name}} {{post.author.last_name}}</i> on {{post.pub_date|date:'d/m/Y'}}</p> <p style="font-size:15px;margin-left: 20px;border:none;background-color:aqua;"> by <i>{{post.author.first_name}} {{post.author.last_name}}</i> on {{post.pub_date|date:'d/m/Y'}}</p>
<p style="font-size:30px;margin-left: 40px;border:none;background-color:aqua;">{{post.post_body}}{% load static %} </p> <p style="font-size:30px;margin-left: 40px;border:none;background-color:aqua;">{{post.post_body}}{% load static %} </p>
<center>{% load static %} <img src="{% static img %}" style="width:450px;"/></center> <center>{% load static %} <img src="{% static img %}" style="width:450px;"/></center>
......
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