Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • Chadwick-SmithFF/cmt120-2
1 result
Show changes
Commits on Source (2)
No preview for this file type
......@@ -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>