<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}베이스{% endblock title %}</title>
    {% load staticfiles %}
    {% block extrastyle %}{% endblock extrastyle %}
</head>
<body>
    <a href="{% url 'home' %}"><img src="{% static "images/logo.png" %}"/></a>
    <ul>
        {% if user.is_active %}
            <li>
                Welcome, {% firstof user.get_short_name user.get_username %}
                {% if user.userprofile.company %}(상호: {{ user.userprofile.company }}){% endif %}
            </li>
            <li><a href="{% url 'accounts:password_change' %}">PASSWORD</a></li>
        {% else %}
            <li><a href="{% url 'accounts:login' %}">LOGIN</a></li>
            <li><a href="{% url 'accounts:register' %}">JOIN</a></li>
        {% endif %}
        {% if user.is_active %}<li><a href="{% url 'accounts:logout' %}">LOGOUT</a></li>{% endif %}
        {% if user.is_staff %}<li><a href="{% url 'accounts:custom_admin_list' %}">ADMIN</a></li>{% endif %}
        {% if order_contract.kindergarten %}<li>{{ order_contract.kindergarten }}의 리틀스마트</li>{% endif %}
    </ul>

    <ul>
        <li><a href="{% url 'kindergarten:list' %}">유치원선택</a></li>
    </ul>

    {% block header %}{% endblock header %}
    </br></br></br>
    {% block content %}{% endblock content %}
    <script src="{% static 'base/js/jquery-1.12.3.min.js' %}"></script>
    {% block extrascript %}{% endblock extrascript %}
</body>
</html>