-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact_project.html
38 lines (37 loc) · 1.46 KB
/
contact_project.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "portal/base.html" %}
{% block title %} Add/Edit Post {% endblock %}
{% block header %} Project Marketplace {% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row">
<form class="form-horizontal" id="contact_project_form" method="post" action="{% url 'contact_project' post_id=post_id %}">
{% csrf_token %}
<div class="col-md-8 panel-login panel default-panel col-md-push-2" style="padding: 40px; margin: 25px; box-shadow: 0px 0px 6px #C6C6C6;">
<div class="row">
<h3 style="line-height: 20px;"class="title">Subject: {{header}}</h3>
</div>
<div class="form-group">
{% if request.session.email_error %}
<div class="row">
<p class="error">Please make sure all fields are filled out.</p>
</div>
{% endif %}
<label for="from_email">Your Email:</label>
<input class="form-control" type="email" name="from_email" placeholder="Input your email address"
{% if user.is_authenticated %}
value= {{user.email}}
{% endif %}
>
</div>
<div class="form-group">
<label for="body">Message:</label>
<textarea class="form-control" type="textarea" name="body" form="contact_project_form" placeholder="Write a meaningful message to the project manager here."></textarea>
</div>
<div class="form-group col-md-12" style="text-align: center;">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}