<%= message %>
<% } %>
Edit Konten Teks Website
Pilih halaman yang ingin diedit melalui tab di bawah ini. Cukup isi dalam **Bahasa Indonesia**, sistem akan otomatis menerjemahkannya ke Bahasa Inggris untuk pengunjung asing.
<%
const groups = {
'homepage': ['menu', 'homepage', 'footer'],
'profil_page': ['profil_page'],
'jurusan_page': ['jurusan_page'],
'lab_page': ['lab_page'],
'berita_page': ['berita_page', 'berita_detail'],
'ppdb_page': ['ppdb_page'],
'kontak_page': ['kontak_page']
};
function getSubMenuTitle(key, section) {
if (section === 'menu') {
if (key.startsWith('jurusan_')) return 'Sub Menu: Program Keahlian';
if (key.startsWith('lab_')) return 'Sub Menu: Fasilitas Lab';
if (key.startsWith('berita_')) return 'Sub Menu: Informasi Sekolah';
if (key.startsWith('ppdb_')) return 'Sub Menu: PPDB';
if (key.startsWith('profil_')) return 'Sub Menu: Profil';
return 'Menu Utama (Navigasi)';
}
if (section === 'footer') return 'Bagian: Footer & Hak Cipta';
if (key.startsWith('major_tjkt_')) return 'Sub Menu: Jurusan TJKT';
if (key.startsWith('major_axioo-class_')) return 'Sub Menu: Jurusan Axioo Class';
if (key.startsWith('major_akl_')) return 'Sub Menu: Jurusan AKL';
if (key.startsWith('major_mplb_')) return 'Sub Menu: Jurusan MPLB';
if (key.startsWith('lab_lab-tjkt_')) return 'Sub Menu: Lab TJKT';
if (key.startsWith('lab_lab-axioo_')) return 'Sub Menu: Lab Axioo Class';
if (key.startsWith('lab_lab-akl_')) return 'Sub Menu: Lab AKL';
if (key.startsWith('lab_lab-mplb_')) return 'Sub Menu: Lab MPLB';
const parts = key.split('_');
if (parts.length > 0) {
const prefix = parts[0];
const map = {
'hero': 'Section: Hero Banner (Atas)',
'stats': 'Section: Statistik Singkat',
'profil': 'Section: Profil Singkat / Visi Misi',
'sambutan': 'Section: Sambutan Kepala Sekolah',
'jurusan': 'Section: Program Keahlian',
'lab': 'Section: Fasilitas Laboratorium',
'review': 'Section: Ulasan Google',
'news': 'Section: Berita Terbaru',
'cta': 'Section: Panggilan Bertindak (CTA)',
'form': 'Section: Formulir Isian',
'brochure': 'Section: Brosur & Syarat',
'req': 'Section: Persyaratan',
'info': 'Section: Info Kontak',
'addr': 'Section: Alamat Sekolah',
'wa': 'Section: Kontak WhatsApp',
'tel': 'Section: Telepon',
'search': 'Section: Kolom Pencarian',
'filter': 'Section: Filter Kategori',
'no': 'Section: Pesan Data Kosong',
'back': 'Section: Navigasi Halaman',
'related': 'Section: Konten Terkait',
'read': 'Section: Tombol Baca',
'capacity': 'Section: Kapasitas Ruangan',
'conn': 'Section: Konektivitas',
'hw': 'Section: Hardware',
'sw': 'Section: Software',
'all': 'Section: Tautan Umum',
'axioo': 'Section: Kelas Industri Axioo',
'gender': 'Section: Pilihan Jenis Kelamin',
'major': 'Section: Pilihan Jurusan'
};
return map[prefix] || 'Section: ' + prefix.charAt(0).toUpperCase() + prefix.slice(1);
}
return 'Section: Umum';
}
function formatLabel(key) {
return key.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ');
}
const photoMap = {
'Section: Hero Banner (Atas)': [
{ key: 'hero_slider_1', label: 'Foto Slider 1 (Beranda)' },
{ key: 'hero_slider_2', label: 'Foto Slider 2 (Beranda)' },
{ key: 'hero_slider_3', label: 'Foto Slider 3 (Beranda)' },
{ key: 'hero_slider_4', label: 'Foto Slider 4 (Beranda)' }
],
'Section: Sambutan Kepala Sekolah': [{ key: 'profil_kepsek', label: 'Foto Kepala Sekolah' }],
'Section: Profil Singkat / Visi Misi': [{ key: 'profil_gedung', label: 'Foto Gedung/Profil' }],
'Sub Menu: Lab TJKT': [{ key: 'lab_tjkt', label: 'Foto Fasilitas Lab TJKT' }],
'Sub Menu: Lab Axioo Class': [{ key: 'lab_axioo', label: 'Foto Fasilitas Lab Axioo Class' }],
'Sub Menu: Lab AKL': [{ key: 'lab_akl', label: 'Foto Fasilitas Lab AKL' }],
'Sub Menu: Lab MPLB': [{ key: 'lab_mplb', label: 'Foto Fasilitas Lab MPLB' }]
};
%>
<% Object.keys(groups).forEach(groupId => { %>
<% }) %>