first add files
This commit is contained in:
49
templates/contact.html
Normal file
49
templates/contact.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}联系我们{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="contact">
|
||||
<div class="container">
|
||||
<h2>联系我们</h2>
|
||||
|
||||
{% if success %}
|
||||
<div class="success-message">
|
||||
<p>感谢您的留言!我们会尽快与您联系。</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="contact-grid">
|
||||
<div class="contact-info">
|
||||
<h3>联系方式</h3>
|
||||
<p><strong>地址:</strong>{{ company.contact.address }}</p>
|
||||
<p><strong>电话:</strong>{{ company.contact.phone }}</p>
|
||||
<p><strong>邮箱:</strong>{{ company.contact.email }}</p>
|
||||
|
||||
<h3>工作时间</h3>
|
||||
<p>周一至周五: 9:00 - 18:00</p>
|
||||
<p>周六至周日: 休息</p>
|
||||
</div>
|
||||
|
||||
<div class="contact-form">
|
||||
<h3>发送消息</h3>
|
||||
<form method="POST" action="{{ url_for('contact') }}">
|
||||
<div class="form-group">
|
||||
<label for="name">姓名</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">邮箱</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message">消息</label>
|
||||
<textarea id="message" name="message" rows="5" required></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn">发送消息</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user