{% extends 'ibs/layouts/base.html' %} {% block title %}IBS - Project{% endblock %} {% block content %} {% load static widget_tweaks %}
{% include 'ibs/partials/content_title.html' with second_bs="신규 프로젝트" title="프로젝트 관리" %}
{% with menu_order='1' %} {% include 'project/partials/head_menu.html' %} {% endwith %}

프로젝트 {% if 'update' in request.path %} 수정{% else %}등록{% endif %}

{% csrf_token %} {% for field in form %}
{% if field.field.widget.input_type == 'checkbox' %}
{{ field|add_class:"form-check-input" }}
{{ field.help_text }}
상기 {{ field.label }} 폼을 입력 양식에 맞게 입력(선택)하여 주십시요.
{{ field.errors }}
{% else %}
{% if field.field.widget.input_type == 'select' %} {{ field|add_class:"form-control select2"|attr:"data-toggle:select2" }} {% elif 'date' in field.name %} {{ field|add_class:"form-control"|attr:"data-provide=datepicker data-date-format=yyyy-mm-dd data-date-autoclose=true data-toggle=input-mask data-mask-format=0000-00-00" }} {% elif not field.field.widget.input_type %} {{ field|add_class:"form-control"|attr:"rows:5" }} {% elif 'zipcode' in field.name %}
{{ field|add_class:"form-control"|attr:"readonly"|attr:"placeholder:우편번호"|attr:"onclick=sample2_execDaumPostcode('id_local_')" }}
{% elif 'address1' in field.name %} {{ field|add_class:"form-control"|attr:"placeholder:시/군/구 주소"|attr:"onclick=sample2_execDaumPostcode('id_local_')" }} {% elif 'address2' in field.name %} {{ field|add_class:"form-control"|attr:"placeholder:상세 주소" }} {% elif 'address3' in field.name %} {{ field|add_class:"form-control"|attr:"placeholder:참고 항목" }} {% else %} {{ field|add_class:"form-control" }} {% endif %}
{{ field.help_text }}
상기 {{ field.label }} 폼을 입력 양식에 맞게 입력(선택)하여 주십시요.
{{ field.errors }}
{% endif %}
{% endfor %}
{% if 'update' in request.path %} {% endif %}
{% endblock %} {% block third_party_js %} {% endblock %}