hfexample's picture
Deploy clean snapshot of the repository
e221c83
{% macro auth_form(title, form_action, bottom_link_url, bottom_link_text) %}
<div class="container">
<h1>{{ title }}</h1>
<form method="post" action="{{ form_action }}">
<div class="form-group">
<label for="username">์‚ฌ์šฉ์ž ์ด๋ฆ„</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">๋น„๋ฐ€๋ฒˆํ˜ธ</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit">{{ title }}</button>
</form>
<p>{{ bottom_link_text }} <a href="{{ bottom_link_url }}">{{ '๋กœ๊ทธ์ธ' if 'signup' in bottom_link_url else 'ํšŒ์›๊ฐ€์ž…' }}</a></p>
</div>
{% endmacro %}
{% macro recommendation_tabs(acceptance_content, diversion_content, container_id) %}
<div class="rec-tabs">
<button class="rec-tab-btn active" data-tab="{{ container_id }}-acceptance">์ˆ˜์šฉ</button>
<button class="rec-tab-btn" data-tab="{{ container_id }}-diversion">์ „ํ™˜</button>
</div>
<div id="{{ container_id }}-acceptance" class="rec-content active">
{{ acceptance_content | safe }}
</div>
<div id="{{ container_id }}-diversion" class="rec-content">
{{ diversion_content | safe }}
</div>
{% endmacro %}