3
1

show.php 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <div class="page-header">
  2. <h2><?= t("Project Branding Settings") ?></h2>
  3. </div>
  4. <form method="post" action="<?= $this->url->to('ProjectBrandingController', 'show', ['project_id' => $project['id'], 'plugin' => 'OMIProjectBranding']) ?>" autocomplete="off">
  5. <?= $this->form->csrf() ?>
  6. <div class="form-help">
  7. <?= t("Configure the logo and primary color for this project.") ?>
  8. </div>
  9. <?= $this->form->label(t("Enable custom branding"), "enabled") ?>
  10. <?= $this->form->checkbox("enabled", "", 1, $branding["enabled"] ?? 0) ?>
  11. <?= $this->form->label(t("Logo URL"), "logo_url") ?>
  12. <?= $this->form->text("logo_url", $branding, [], ['placeholder="https://example.com/logo.png"']) ?>
  13. <?= $this->form->label(t("Foreground Color"), "foreground_color") ?>
  14. <?= $this->form->text("foreground_color", $branding, [], ['type="color"']) ?>
  15. <?= $this->form->label(t("Background Color"), "background_color") ?>
  16. <?= $this->form->text("background_color", $branding, [], ['type="color"']) ?>
  17. <?= $this->form->label(t("Secondary Background Color"), "second_background_color") ?>
  18. <?= $this->form->text("second_background_color", $branding, [], ['type="color"']) ?>
  19. <div class="form-actions">
  20. <button type="submit" class="btn btn-blue"><?= t("Save") ?></button>
  21. </div>
  22. </form>