File size: 1,386 Bytes
e221c83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% 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 %}