Update Icons

This commit is contained in:
Andre Beging
2024-11-07 15:25:17 +01:00
parent 6091b54b2a
commit b76dcdb746
6 changed files with 30 additions and 18 deletions

View File

@@ -10,34 +10,33 @@
<nav class="flex-column"> <nav class="flex-column">
<div class="nav-item px-3"> <div class="nav-item px-3">
<NavLink class="nav-link" href="/create" Match="NavLinkMatch.All"> <NavLink class="nav-link" href="/create" Match="NavLinkMatch.All">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-square-fill" viewBox="0 0 16 16"> <div style="width: 30px; margin-right: .5rem;" class="text-center">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0"/> <i class="fas fa-plus-square fa-xl"></i>
</svg> Neue Rechnung </div> Neue Rechnung
</NavLink> </NavLink>
</div> </div>
<div class="nav-item px-3"> <div class="nav-item px-3">
<NavLink class="nav-link" href="/" Match="NavLinkMatch.All"> <NavLink class="nav-link" href="/" Match="NavLinkMatch.All">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-receipt" viewBox="0 0 16 16"> <div style="width: 30px; margin-right: .5rem;" class="text-center">
<path d="M1.92.506a.5.5 0 0 1 .434.14L3 1.293l.646-.647a.5.5 0 0 1 .708 0L5 1.293l.646-.647a.5.5 0 0 1 .708 0L7 1.293l.646-.647a.5.5 0 0 1 .708 0L9 1.293l.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .708 0l.646.647.646-.647a.5.5 0 0 1 .801.13l.5 1A.5.5 0 0 1 15 2v12a.5.5 0 0 1-.053.224l-.5 1a.5.5 0 0 1-.8.13L13 14.707l-.646.647a.5.5 0 0 1-.708 0L11 14.707l-.646.647a.5.5 0 0 1-.708 0L9 14.707l-.646.647a.5.5 0 0 1-.708 0L7 14.707l-.646.647a.5.5 0 0 1-.708 0L5 14.707l-.646.647a.5.5 0 0 1-.708 0L3 14.707l-.646.647a.5.5 0 0 1-.801-.13l-.5-1A.5.5 0 0 1 1 14V2a.5.5 0 0 1 .053-.224l.5-1a.5.5 0 0 1 .367-.27m.217 1.338L2 2.118v11.764l.137.274.51-.51a.5.5 0 0 1 .707 0l.646.647.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.646.646.646-.646a.5.5 0 0 1 .708 0l.509.509.137-.274V2.118l-.137-.274-.51.51a.5.5 0 0 1-.707 0L12 1.707l-.646.647a.5.5 0 0 1-.708 0L10 1.707l-.646.647a.5.5 0 0 1-.708 0L8 1.707l-.646.647a.5.5 0 0 1-.708 0L6 1.707l-.646.647a.5.5 0 0 1-.708 0L4 1.707l-.646.647a.5.5 0 0 1-.708 0z"/> <i class="fas fa-file-invoice fa-xl"></i>
<path d="M3 4.5a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m8-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5"/> </div> Rechnungen
</svg> Rechnungen
</NavLink> </NavLink>
</div> </div>
<div class="nav-item px-3"> <div class="nav-item px-3">
<NavLink class="nav-link" href="customers"> <NavLink class="nav-link" href="customers">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-vcard-fill" viewBox="0 0 16 16"> <div style="width: 30px; margin-right: .5rem;" class="text-center">
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm9 1.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 0-1h-4a.5.5 0 0 0-.5.5M9 8a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 0-1h-4A.5.5 0 0 0 9 8m1 2.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 0-.5.5m-1 2C9 10.567 7.21 9 5 9c-2.086 0-3.8 1.398-3.984 3.181A1 1 0 0 0 2 13h6.96q.04-.245.04-.5M7 6a2 2 0 1 0-4 0 2 2 0 0 0 4 0"/> <i class="fas fa-address-card fa-xl"></i>
</svg> Kunden </div> Kunden
</NavLink> </NavLink>
</div> </div>
<div class="nav-item px-3"> <div class="nav-item px-3">
<NavLink class="nav-link" href="settings"> <NavLink class="nav-link" href="settings">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill" viewBox="0 0 16 16"> <div style="width: 30px; margin-right: .5rem;" class="text-center">
<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/> <i class="fas fa-cogs fa-xl"></i>
</svg> Einstellungen </div> Einstellungen
</NavLink> </NavLink>
</div> </div>
</nav> </nav>

View File

@@ -37,7 +37,7 @@
<InputText DisplayName="Phone" class="form-control" @bind-Value="@EditFormObject.Phone"></InputText> <InputText DisplayName="Phone" class="form-control" @bind-Value="@EditFormObject.Phone"></InputText>
</div> </div>
<button type="button" class="btn btn-sm btn-primary" @onclick="SaveCustomerAsync">Speichern</button> <button type="button" class="btn btn-sm btn-primary" @onclick="SaveCustomerAsync"><i class="fas fa-save"></i> Speichern</button>
<button type="button" class="btn btn-sm btn-secondary" @onclick="HideEditFormAsync">Abbrechen</button> <button type="button" class="btn btn-sm btn-secondary" @onclick="HideEditFormAsync">Abbrechen</button>
} }
else else

View File

@@ -10,8 +10,8 @@
<h1>Rechnung #@Invoice.InvoiceId</h1> <h1>Rechnung #@Invoice.InvoiceId</h1>
<button type="button" class="btn btn-primary" @onclick="SaveInvoiceAsync">Speichern</button> <button type="button" class="btn btn-primary" @onclick="SaveInvoiceAsync"><i class="fas fa-save"></i> Speichern</button>
<button type="button" class="btn btn-info" @onclick="GenerateInvoiceAsync">Generieren</button> <button type="button" class="btn btn-info" @onclick="GenerateInvoiceAsync"><i class="fas fa-file-pdf"></i> Generieren</button>
@if (!string.IsNullOrWhiteSpace(AlertMessage)) @if (!string.IsNullOrWhiteSpace(AlertMessage))
{ {

View File

@@ -5,7 +5,7 @@
<h3>Einstellungen</h3> <h3>Einstellungen</h3>
<button type="button" class="btn btn-primary" @onclick="Save">Speichern</button> <button type="button" class="btn btn-primary" @onclick="Save"><i class="fas fa-save"></i> Speichern</button>
<hr /> <hr />
@@ -72,3 +72,8 @@
<label class="form-label">BIC</label> <label class="form-label">BIC</label>
<InputText DisplayName="BIC" class="form-control" @bind-Value="@SettingsData.Instance.PaymentData.Bic"></InputText> <InputText DisplayName="BIC" class="form-control" @bind-Value="@SettingsData.Instance.PaymentData.Bic"></InputText>
</div> </div>
<div class="mb-3">
<label class="form-label">Logo Pfad</label>
<InputText class="form-control" @bind-Value="@SettingsData.Instance.Logo"></InputText>
</div>

View File

@@ -16,6 +16,8 @@ namespace Server.Data
public string? Comment { get; set; } public string? Comment { get; set; }
public string? Logo { get; set; }
#endregion #endregion

View File

@@ -3,6 +3,7 @@ using System.Net.Mime;
using QuestPDF.Fluent; using QuestPDF.Fluent;
using QuestPDF.Helpers; using QuestPDF.Helpers;
using QuestPDF.Infrastructure; using QuestPDF.Infrastructure;
using Server.Data;
namespace Server.Model namespace Server.Model
{ {
@@ -190,7 +191,12 @@ namespace Server.Model
{ {
row.RelativeItem().AlignCenter().Column(col => row.RelativeItem().AlignCenter().Column(col =>
{ {
col.Item().Height(25, Unit.Millimetre).Image("bit.bmp");
if (!string.IsNullOrWhiteSpace(SettingsData.Instance.Logo) && File.Exists(SettingsData.Instance.Logo))
col.Item().Height(25, Unit.Millimetre).Image(SettingsData.Instance.Logo);
else
col.Item().Height(25, Unit.Millimetre);
}); });
}); });