Commit 8c6b1465 authored by Trisha Angel Millena's avatar Trisha Angel Millena

removed extra forum.css and fixed errors

parent 4a725a42
body {
height: 100vh;
background-color: #E9E3FE;
display: flex;
align-items: center;
justify-content: center;
}
.forum-content {
margin-top: auto;
padding: 2rem;
border-radius: 0.5rem;
background-color: white
}
body {
height: 100vh;
background-color: #E9E3FE;
display: flex;
align-items: center;
justify-content: center;
}
.forum-content {
margin-top: auto;
padding: 2rem;
border-radius: 0.5rem;
background-color: white
}
......@@ -3,12 +3,13 @@
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static ‘forum/forum.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="{% static 'forum/forum.css' %}">
<link rel="stylesheet" href="'https://cdnjs.cloudfare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% endblock %}
{% block title %} {{ object.title }} {% endblock %}
<div class ="forum-content">
<div class ="forum-content">
{% block content %}
<h1>{{ object.title }}</h1>
<h2>by {{ object.author.first_name }} {{ object.author.last_name }}</h2>
......@@ -26,11 +27,7 @@
{% endfor %}
</ul>
<a href = "{% url 'forum:formpost-edit' forumpost.id %}" class = "edit-btn" ><i class = "fa fa-edit"></i>Edit Post</a>
<form action = "./edit">
<input type = "submit" value = "Edit Post">
</form>
<a href = "{% url 'forum:forumpost-edit' forumpost.id %}" class = "edit-btn" ><i class = "fa fa-edit"></i>Edit Post</a>
</div>
{% endblock %}
\ No newline at end of file
......@@ -23,7 +23,7 @@
<h1>Edit Post:</h1>
<div class = "form">
<div class = "forum">
<form method = 'POST'>
{% csrf_token %}
{{ form.as_p }}
......
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