Fakultas Ilmu Komputer UI

sunting.html 1.38 KB
Newer Older
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
1
{% extends 'app/base_profile.html' %}
2
3
{% load static %}

Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
4
5
6
7
8
9
10
{% block title %}
<title>Sunting Profil | Digipus</title>
{% endblock %} 

{% block content %}
<div class="container">
    <div class="col-20">
11
        <h1 class="mt-2">Sunting Profil {% if user.is_admin %}Admin{% else %}Kontributor{% endif %}</h1>
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
12
13
14
15
16
17
18
        <hr class="mt-0 mb-4">
        <form id="add_form" method="POST" action="{% url 'sunting' %}" novalidate enctype="multipart/form-data">
            {% csrf_token %}
            {% for field in form %}
            <div class="col-md-6">
                <div class="fieldWrapper">
                    {{ field.label_tag }} {{ field }}
19
20
21
22
23
                    {% if field.errors %}
                    <span class="text-danger">
                        {{ field.errors }}
                    </span>
                    {% endif %}
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
24
25
26
                    {% if field.help_text %}
                    <p class="help">{{ field.help_text|safe }}</p>
                    {% endif %}
27
28
                </div>
            </div>
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
29
30
31
32
33
            {% endfor %}
            <div class="form-margin"></div>
            <div class="col-md-6">
                <div class="fieldWrapper">
                    <button type="submit" class="btn btn-success btn-edit" style="background-color: #615CFD; border-color: #615CFD;">Simpan</button>
34
                </div>
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
35
36
            </div>
        </form>
37
    </div>
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
38
39
</div>
{% endblock %}