diff --git a/C2051326_report.pdf b/C2051326_report.pdf index e34fd1e41a1b20c4518b7cb4c792e981cd2d5094..e4454051a1dff484ca07b18a339d707d91d1c07d 100644 Binary files a/C2051326_report.pdf and b/C2051326_report.pdf differ diff --git a/templates/add_project.html b/templates/add_project.html index c1400dff055570ba0d6b029f90e006634045fd21..1945fdf0d60d98793eb47d024bcdbae153cb7593 100644 --- a/templates/add_project.html +++ b/templates/add_project.html @@ -13,10 +13,9 @@ background-size: cover; } </style> - </head> <body class="home-page"> - <!---https://realpython.com/flask-project/#create-a-virtual-environment---> + <!---https://realpython.com/flask-project/#create-a-virtual-environment---> <nav> <ul> <li><a href="{{ url_for('home') }}">Home</a></li> @@ -27,32 +26,36 @@ <li><a href="{{ url_for('contact') }}">Contact</a></li> </ul> </nav> - <h2>Add Project</h2> - <!---https://realpython.com/flask-project/#create-a-virtual-environment---> - <form method="POST" action="{{ url_for('add_project') }}"> - {% with messages = get_flashed_messages() %} - {% if messages %} - <ul class="messages"> - {% for message in messages %} - <li>{{ message }}</li> - {% endfor %} - </ul> + <!---https://realpython.com/flask-project/#create-a-virtual-environment---> + <div class="form-container"> + <h2>Add Project</h2> + <form method="POST" action="{{ url_for('add_project') }}"> + {% with messages = get_flashed_messages() %} + {% if messages %} + <ul class="messages"> + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + </ul> + {% endif %} + {% endwith %} + + {% if form %} + {{ form.csrf_token }} + <div class="form-group"> + <label for="title">Project Title</label> + {{ form.title(class="form-control", placeholder="Enter project title") }} + </div> + <div class="form-group"> + <label for="description">Project Description</label> + {{ form.description(class="form-control", placeholder="Enter project description") }} + </div> + <div class="form-group"> + {{ form.submit(class="btn btn-primary") }} + </div> {% endif %} - {% endwith %} - {% if form %} - {{ form.csrf_token }} - <div class="form-group"> - {{ form.title.label }} - {{ form.title(class="form-control", placeholder="Enter project title") }} - </div> - <div class="form-group"> - {{ form.description.label }} - {{ form.description(class="form-control", placeholder="Enter project description") }} - </div> - <div class="form-group"> - {{ form.submit(class="btn btn-primary") }} - </div> - {% endif %} - </form> + </form> + </div> </body> + </html>