- Menu "RPS" di bilah navigasi landing (tetap tampil di ponsel) ke /publik/rps: daftar RPS berstatus "selesai" tanpa login (cari + saring semester), halaman baca RPS lengkap, unduh .docx (PDF bila LibreOffice ada, ditembolok per versi). Draf & MK tanpa RPS dialihkan; form RPS dan halaman lain tetap wajib login. - Tahun aktif didahulukan; bila belum ada, RPS selesai terbaru dari tahun lain. - Nav/kepala/kaki publik dipisah ke partial bersama (landing & RPS publik). - "Ketua Program Studi" menjadi "Koordinator Program Studi" di form RPS, .docx RPS (sel "Ka Prodi" template resmi), .docx portofolio, halaman publik, dan setup. - Env KOORPRODI (bawaan: Eva Faja Ripanti, S.Kom., MMSI., Ph.D.) mengisi form RPS baru dan menjadi cadangan di dokumen bila kosong. - Uji: RPS publik terbuka untuk anonim, draf dialihkan, /rps tetap wajib login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
80 lines
4.4 KiB
HTML
80 lines
4.4 KiB
HTML
{% extends "base_polos.html" %}
|
|
{% block judul %}{{ 'Penyiapan Awal' if mode == 'setup' else 'Masuk' }} — RPS & Portofolio UNTAN{% endblock %}
|
|
{% block isi %}
|
|
<div class="card">
|
|
<div class="card-body p-6 p-sm-8">
|
|
<div class="d-flex align-items-center gap-3 mb-6">
|
|
<img src="/static/logo-untan.png" alt="Logo Universitas Tanjungpura" class="auth-logo">
|
|
<div class="lh-sm">
|
|
<div class="fw-bold text-heading fs-5">RPS & Portofolio</div>
|
|
<small class="text-body-secondary">Program Studi Informatika · Universitas Tanjungpura</small>
|
|
</div>
|
|
</div>
|
|
|
|
{% if mode == 'setup' %}
|
|
<h4 class="mb-1">Penyiapan Awal</h4>
|
|
<p class="mb-6 text-body-secondary">Belum ada akun. Buat akun <b>Koordinator Program Studi</b>
|
|
terlebih dahulu. Akun ini yang nanti membuat akun para dosen.</p>
|
|
{% else %}
|
|
<h4 class="mb-1">Selamat datang</h4>
|
|
<p class="mb-6 text-body-secondary">Halaman ini memuat data nilai mahasiswa, jadi
|
|
akses memerlukan akun. Hubungi kaprodi bila belum punya.</p>
|
|
{% endif %}
|
|
|
|
{% if info == 'hubung' %}
|
|
<div class="alert alert-info mb-6" role="status">
|
|
<div class="d-flex align-items-center gap-2 fw-medium mb-2"><i class="icon-base ti tabler-brand-google icon-md"></i>Akun Google belum terhubung</div>
|
|
{% if pesan %}<p class="small mb-2">{{ pesan }}</p>{% endif %}
|
|
<ol class="small ps-3 mb-0">
|
|
<li>Masuk sekali dengan <b>NIP/NPM dan password</b> di bawah.</li>
|
|
<li>Buka <b>Pengaturan</b> — klik foto/inisial Anda di pojok kanan atas → <b>Pengaturan</b>. (Setelah masuk dari halaman ini, Anda langsung dibawa ke sana.)</li>
|
|
<li>Pada kartu <b>Akun Google</b>, klik <b>Hubungkan akun Google</b>. Berikutnya cukup <b>Masuk dengan Google UNTAN</b>.</li>
|
|
</ol>
|
|
</div>
|
|
{% elif pesan %}
|
|
<div class="alert alert-danger d-flex align-items-center gap-2 py-2" role="alert">
|
|
<i class="icon-base ti tabler-alert-triangle icon-md"></i>{{ pesan }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="post" action="{{ '/setup' if mode == 'setup' else '/login' }}">
|
|
{% if info == 'hubung' %}<input type="hidden" name="lanjut" value="pengaturan">{% endif %}
|
|
{% if mode == 'setup' %}
|
|
<div class="mb-4">
|
|
<label class="form-label" for="nama">Nama lengkap (dengan gelar)</label>
|
|
<input class="form-control" type="text" id="nama" name="nama" required autofocus>
|
|
</div>
|
|
<div class="mb-6">
|
|
<label class="form-label" for="nip">NIP</label>
|
|
<input class="form-control" type="text" id="nip" name="nip" autocomplete="username" required>
|
|
<div class="form-text">NIP menjadi username sekaligus password awal.</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="mb-4">
|
|
<label class="form-label" for="nip">NIP</label>
|
|
<input class="form-control" type="text" id="nip" name="nip" autocomplete="username" required autofocus>
|
|
</div>
|
|
<div class="mb-6">
|
|
<label class="form-label" for="password">Password <span class="text-body-secondary fw-normal">(awal: NIP Anda)</span></label>
|
|
<input class="form-control" type="password" id="password" name="password" autocomplete="current-password" required>
|
|
</div>
|
|
{% endif %}
|
|
<button class="btn btn-primary d-grid w-100" type="submit">
|
|
{{ 'Buat Akun Kaprodi & Masuk' if mode == 'setup' else 'Masuk' }}
|
|
</button>
|
|
</form>
|
|
{% if mode == 'login' and google_aktif() %}
|
|
<div class="divider my-5"><div class="divider-text">atau</div></div>
|
|
<a class="btn btn-label-secondary d-flex align-items-center justify-content-center gap-2 w-100" href="/auth/google">
|
|
<i class="icon-base ti tabler-brand-google icon-md"></i>Masuk dengan Google UNTAN</a>
|
|
<div class="form-text text-center mt-2">Akun Google kampus yang sudah dihubungkan di menu <b>Pengaturan</b>, atau yang emailnya terdaftar di aplikasi.</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="text-center mt-4">
|
|
<button type="button" class="btn btn-sm btn-text-secondary" data-ganti-tema>
|
|
<i class="icon-base ti tabler-moon icon-sm me-1 tema-ikon-gelap"></i><i class="icon-base ti tabler-sun icon-sm me-1 tema-ikon-terang"></i>Mode terang / gelap
|
|
</button>
|
|
</div>
|
|
{% endblock %}
|