{% extends "layout.html" %} {% load common %} {% load static %} {% block layout_script %} {% endblock %} {% block layout_content %} {% include 'extra/base_messages.html' %}
List Surat {{ surat_type|lower }} tambah surat {{surat_type}}
{% if display == 'col' %}
{% for i in list %} {% if i.thumbnail and i.banyak_berkas > 1 %}
{{ i.nomor|truncatechars:100 }}
{% if surat_type == 'MASUK' %}Penerima : {{ i.pengirim_nama|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Penerima :{{ i.penerima_nama|truncatechars:70 }}{% endif %}
{% if surat_type == 'MASUK' %}Pengirim :{{ i.pengirim_instansi|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Pengirim :{{ i.penerima_instansi|truncatechars:70 }}{% endif %}
Perihal : {{ i.perihal|truncatewords:10|linebreaksbr }}
{{ i.tanggal }}
( {% if i.banyak_berkas %} Ada {{ i.banyak_berkas }} Berkas {% else %} Tidak Ada Berkas {% endif %} )
{{ i.jenis }}

{% include "surat/list_comp_action.html" %}
{% elif i.thumbnail and i.banyak_berkas <= 1 %}
{% for thumb in i.thumbnail %} {% endfor %}
{{ i.nomor|truncatechars:100 }}
{% if surat_type == 'MASUK' %}Pengirim : {{ i.pengirim_nama|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Pengirim : {{ i.penerima_nama|truncatechars:70 }}{% endif %}
{% if surat_type == 'MASUK' %}Penerima : {{ i.pengirim_instansi|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Penerima : {{ i.penerima_instansi|truncatechars:70 }}{% endif %}
Perihal : {{ i.perihal|truncatewords:10|linebreaksbr }}
{{ i.tanggal }}
( {% if i.banyak_berkas %} Ada {{ i.banyak_berkas }} Berkas {% else %} Tidak Ada Berkas {% endif %} )
{{ i.jenis }}

{% include "surat/list_comp_action.html" %}
{% else %}
{{ i.nomor|truncatechars:100 }}
{% if surat_type == 'MASUK' %}Pengirim : {{ i.pengirim_nama|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Pengirim : {{ i.penerima_nama|truncatechars:70 }}{% endif %}
{% if surat_type == 'MASUK' %}Penerima : {{ i.pengirim_instansi|truncatechars:70 }}{% endif %} {% if surat_type == 'KELUAR' %}Penerima : {{ i.penerima_instansi|truncatechars:70 }}{% endif %}
Perihal : {{ i.perihal|truncatewords:10|linebreaksbr }}
{{ i.tanggal }}
( {% if i.banyak_berkas %} Ada {{ i.banyak_berkas }} Berkas {% else %} Tidak Ada Berkas {% endif %} )
{{ i.jenis }}

{% include "surat/list_comp_action.html" %}
{% endif %} {% empty %}
(kosong)
{% endfor %}
{% elif display == 'list' %}
{% for i in paging %} {% empty %} {% endfor %}
Nomor Tanggal {% if surat_type == 'MASUK' %}Nama Pengirim{% endif %} {% if surat_type == 'KELUAR' %}Nama Penerima{% endif %} {% if surat_type == 'MASUK' %}Instansi Pengirim{% endif %} {% if surat_type == 'KELUAR' %}Instansi Penerima{% endif %} Jenis Sifat Perihal Status
{{ i.nomor|truncatechars:64 }} {{ i.tanggal }} {% if surat_type == 'MASUK' %}{{ i.pengirim_nama|truncatechars:64 }}{% endif %} {% if surat_type == 'KELUAR' %}{{ i.penerima_nama|truncatechars:64 }}{% endif %} {% if surat_type == 'MASUK' %}{{ i.pengirim_instansi|truncatechars:64 }}{% endif %} {% if surat_type == 'KELUAR' %}{{ i.penerima_instansi|truncatechars:64 }}{% endif %} {{ i.jenis }} {{ i.sifat }}
{{ i.perihal|truncatewords:10|linebreaksbr }}
( {% if i.banyak_berkas %} Ada {{ i.banyak_berkas }} Berkas {% else %} Tidak Ada Berkas {% endif %} )
{% if i.status_surat == 'public' %} Public {% elif i.status_surat == 'private' %} Private {% else %} Unknown {% endif %} {% include "surat/list_comp_action.html" %}
(kosong)
{% endif %}
{% endblock %}