{% extends "layout-private.html" %} {% block title %} Materi - {{ parent() }} {% endblock %} {% block content %}
| Mapel |
|
|---|---|
| Kelas |
|
| Tipe |
|
| Judul | |
| Konten | |
| Pembuat | |
| Status |
|
| ID | Informasi Materi | |
|---|---|---|
| {{ m.id }} |
{{ m.judul }} |
{% if m.file is not empty %}
{% set url_type = 'file' %}
{% else %}
{% set url_type = 'tertulis' %}
{% endif %}
{{ anchor('materi/detail/' ~ m.id, ' Detail', {'class' : 'btn btn-default btn-small', 'target' : '_tab'})|raw }}
{% if action_edit == true %}
{{ anchor('materi/edit/' ~ url_type ~ '/' ~ m.id ~ '/' ~ enurl_redirect(current_url()), ' Edit', {'class' : 'btn btn-default btn-small'})|raw }}
{% endif %}
{% if action_delete == true %}
{{ anchor('materi/delete/' ~ m.id ~ '/' ~ enurl_redirect(current_url()), ' Hapus', {'class' : 'btn btn-default btn-small', 'onclick' : "return confirm('Anda yakin ingin menghapus?')"})|raw }}
{% endif %}
|