added company info to header
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "common/base.html" %}
|
||||
{% from "components/header.html" import header %}
|
||||
{% from "settings/tabs/colors.html" import colors_tab %}
|
||||
{% from "settings/tabs/general.html" import general_tab %}
|
||||
{% from "settings/tabs/company_info.html" import company_info_tab %}
|
||||
{% from "settings/tabs/security.html" import security_tab %}
|
||||
{% from "settings/components/reset_colors_modal.html" import reset_colors_modal %}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<button class="nav-link {% if active_tab == 'general' %}active{% endif %}" id="general-tab" data-bs-toggle="tab" data-bs-target="#general" type="button" role="tab" aria-controls="general" aria-selected="{{ 'true' if active_tab == 'general' else 'false' }}">
|
||||
<i class="fas fa-sliders me-2"></i>General
|
||||
<i class="fas fa-building me-2"></i>Company Info
|
||||
</button>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
@@ -49,9 +49,9 @@
|
||||
{{ colors_tab(primary_color, secondary_color, csrf_token) }}
|
||||
</div>
|
||||
|
||||
<!-- General Tab -->
|
||||
<!-- Company Info Tab -->
|
||||
<div class="tab-pane fade {% if active_tab == 'general' %}show active{% endif %}" id="general" role="tabpanel" aria-labelledby="general-tab">
|
||||
{{ general_tab(site_settings, csrf_token) }}
|
||||
{{ company_info_tab(site_settings, csrf_token) }}
|
||||
</div>
|
||||
|
||||
<!-- Security Tab -->
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
{% macro general_tab(site_settings, csrf_token) %}
|
||||
{% macro company_info_tab(site_settings, csrf_token) %}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<!-- Company Settings Section -->
|
||||
<div class="card mb-4">
|
||||
<div class="card-header bg-white">
|
||||
<h5 class="card-title mb-0">
|
||||
<i class="fas fa-building me-2"></i>Company Settings
|
||||
</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ url_for('main.update_company_settings') }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
Reference in New Issue
Block a user