searchresult.html 1.76 KB
{% extends "main.html" %}
{% block title %}예약 현황{% endblock %}
{% block head %}

{% endblock %}
{% block style %}
<style>
#list_item{
    width: 263px;
	height: 100px;
	font-size:20px;
	font-family: '배달의민족 도현';
	color: gray;
	background: white;
	border: solid 5px white;
	border-radius: 5px;
	vertical-align: bottom;
	line-height: 150%;
    display: inline-block;
    padding-left: 7px;
}
#delete_btn{
    width: 60px;
	height: 110px;
    box-sizing: border-box;
    font-size: 20px;
	font-family: '배달의민족 도현';
	background-color: rgb(90, 200, 90);
	color: white;
	border-radius:5px;
	border: solid 5px rgb(90, 200, 90);
    float: right;
    display: inline-block;

}

</style>
{% endblock %}
{% block content %}
    <a href="/myhome"> <img style="border-radius:15px;" width="300px;" src="{{ url_for('static', filename = 'logo.png') }}"/></a><br>
    <h1>검색 결과</h1>
  {% if resv_list[0][0] == "NoAvailableFacilities" %}
    <p>가능한 강의실이 없습니다.</p>
{% else %}
    <table>
        {% for resv_item in resv_list %}
            <tr><td><form method="post" action="/search/resv"><div id="list_item">{{ resv_item[1] }} {{ resv_item[2] }}<br>{{ starttime.strftime('%Y-%m-%d') }}<br>{{ starttime.strftime('%H:%M') }} ~ {{ endtime.strftime('%H:%M') }}
                    <input type="hidden" name="fac_id" value="{{ resv_item[0] }}">
                <input type="hidden" name="start_time" value="{{ starttime.strftime('%Y-%m-%d%H:%M') }}">
                <input type="hidden" name="end_time" value="{{ endtime.strftime('%Y-%m-%d%H:%M') }}">
            </div><input type="submit" id="delete_btn" value="예약"></form></td></tr>
        {% endfor %}
    </table>
    {% endif %}
{% endblock %}