feat(branding): nama PT dapat diatur di Pengaturan
All checks were successful
CI / test (push) Successful in 1m36s

- field company_subheader di Info Aplikasi
- dipakai sebagai kop invoice/PDF (sudah ada) dan menggantikan baris footer bila diisi
- default kosong: footer tetap 'Made with <heart> from Oxpoe in INA.'
This commit is contained in:
oxpoe
2026-11-05 06:53:53 +07:00
parent eef690b809
commit 7d77dd1424
4 changed files with 8 additions and 2 deletions

View File

@@ -293,6 +293,7 @@ function ensureDefaultSettings() {
custom_ai_base_url: '', custom_ai_base_url: '',
custom_ai_model: 'llama3', custom_ai_model: 'llama3',
ai_self_healing_enabled: false, ai_self_healing_enabled: false,
company_subheader: '',
update_base_url: 'https://gitea.oxpoe.xyz', update_base_url: 'https://gitea.oxpoe.xyz',
update_repo: 'oxpoe/open-isp', update_repo: 'oxpoe/open-isp',
// RADIUS Server settings (ditambahkan untuk update dari Gitea) // RADIUS Server settings (ditambahkan untuk update dari Gitea)

View File

@@ -269,6 +269,11 @@
<label class="fl"><%= t('admin.settings.company_name', 'Nama Aplikasi / Perusahaan') %></label> <label class="fl"><%= t('admin.settings.company_name', 'Nama Aplikasi / Perusahaan') %></label>
<input class="fc" name="company_header" value="<%= settings.company_header || '' %>"> <input class="fc" name="company_header" value="<%= settings.company_header || '' %>">
</div> </div>
<div class="fg">
<label class="fl">Nama PT / Sub-header (kop invoice &amp; PDF)</label>
<input class="fc" name="company_subheader" value="<%= settings.company_subheader || '' %>" placeholder="Contoh: PT Nama Perusahaan">
<div style="font-size:10px;color:var(--muted);margin-top:4px">Dipakai pada kop invoice/PDF. Bisa berbeda tiap instalasi.</div>
</div>
<div class="fg"> <div class="fg">
<label class="fl"><%= t('admin.set.public_url','URL Publik Aplikasi (Public Base URL)') %></label> <label class="fl"><%= t('admin.set.public_url','URL Publik Aplikasi (Public Base URL)') %></label>
<input class="fc" name="public_base_url" value="<%= settings.public_base_url || '' %>" placeholder="https://portal.domain-anda.com"> <input class="fc" name="public_base_url" value="<%= settings.public_base_url || '' %>" placeholder="https://portal.domain-anda.com">

View File

@@ -315,7 +315,7 @@
</a> </a>
<p class="muted" style="font-size:14px;max-width:40ch"><%= t('landing.footer.tagline','Micro Internet Provider dan Server Platform.') %></p> <p class="muted" style="font-size:14px;max-width:40ch"><%= t('landing.footer.tagline','Micro Internet Provider dan Server Platform.') %></p>
<p class="muted" style="font-size:13px;margin-top:8px;max-width:40ch">Internet Freedom — We Are Open-Source.</p> <p class="muted" style="font-size:13px;margin-top:8px;max-width:40ch">Internet Freedom — We Are Open-Source.</p>
<p class="muted" style="font-size:12.5px;margin-top:12px">Made with <i class="bi bi-heart-fill" style="color:#e5484d"></i> from Oxpoe in INA.</p> <p class="muted" style="font-size:12.5px;margin-top:12px"><% if (typeof settings !== 'undefined' && settings && settings.company_subheader) { %><%= settings.company_subheader %><% } else { %>Made with <i class="bi bi-heart-fill" style="color:#e5484d"></i> from Oxpoe in INA.<% } %></p>
</div> </div>
<div> <div>
<h4><%= t('landing.footer.nav','Navigasi') %></h4> <h4><%= t('landing.footer.nav','Navigasi') %></h4>

View File

@@ -205,7 +205,7 @@
</a> </a>
<p class="muted" style="font-size:14px;max-width:40ch">Micro Internet Provider dan Server Platform.</p> <p class="muted" style="font-size:14px;max-width:40ch">Micro Internet Provider dan Server Platform.</p>
<p class="muted" style="font-size:13px;margin-top:8px">Internet Freedom — We Are Open-Source.</p> <p class="muted" style="font-size:13px;margin-top:8px">Internet Freedom — We Are Open-Source.</p>
<p class="muted" style="font-size:12.5px;margin-top:12px">Made with <i class="bi bi-heart-fill" style="color:#e5484d"></i> from Oxpoe in INA.</p> <p class="muted" style="font-size:12.5px;margin-top:12px"><% if (typeof settings !== 'undefined' && settings && settings.company_subheader) { %><%= settings.company_subheader %><% } else { %>Made with <i class="bi bi-heart-fill" style="color:#e5484d"></i> from Oxpoe in INA.<% } %></p>
</div> </div>
<div> <div>
<h4>Portal</h4> <h4>Portal</h4>