checkpoint

This commit is contained in:
Timur Gordon
2025-06-30 15:49:32 +02:00
parent fdbb4b84c3
commit 1c96fa4087
12 changed files with 856 additions and 262 deletions

View File

@@ -164,6 +164,7 @@ impl Component for CompaniesView {
<ViewComponent
title={Some("Registration Successful".to_string())}
description={Some("Your company registration has been completed successfully".to_string())}
use_modern_header={true}
>
<RegistrationWizard
on_registration_complete={link.callback(CompaniesViewMsg::RegistrationComplete)}
@@ -182,6 +183,7 @@ impl Component for CompaniesView {
<ViewComponent
title={Some("Register New Company".to_string())}
description={Some("Complete the registration process to create your new company".to_string())}
use_modern_header={true}
>
<RegistrationWizard
on_registration_complete={link.callback(CompaniesViewMsg::RegistrationComplete)}
@@ -200,6 +202,7 @@ impl Component for CompaniesView {
<ViewComponent
title={Some("Companies".to_string())}
description={Some("Manage your companies and registrations".to_string())}
use_modern_header={true}
>
{self.render_companies_content(ctx)}
</ViewComponent>
@@ -258,24 +261,27 @@ impl CompaniesView {
let link = ctx.link();
html! {
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<div>
<h5 class="mb-0">
<i class="bi bi-building me-2"></i>{"Companies & Registrations"}
</h5>
<small class="text-muted">
{format!("{} companies, {} pending registrations", self.companies.len(), self.registrations.len())}
</small>
<div class="card border-0 shadow-sm">
<div class="card-body p-4">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="d-flex align-items-center">
<div class="bg-primary bg-opacity-10 rounded-3 p-2 me-3">
<i class="bi bi-building text-primary fs-5"></i>
</div>
<div>
<h5 class="mb-0">{"Companies & Registrations"}</h5>
<small class="text-muted">
{format!("{} companies, {} pending registrations", self.companies.len(), self.registrations.len())}
</small>
</div>
</div>
<button
class="btn btn-success"
onclick={link.callback(|_| CompaniesViewMsg::StartNewRegistration)}
>
<i class="bi bi-plus-circle me-2"></i>{"New Registration"}
</button>
</div>
<button
class="btn btn-success"
onclick={link.callback(|_| CompaniesViewMsg::StartNewRegistration)}
>
<i class="bi bi-plus-circle me-2"></i>{"New Registration"}
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="table-light">