@page "/settings"

@inherits FsBase

<PageTitle>Einstellungen - @AppSettings.Terms.Title</PageTitle>

<div style="width: 100%; max-width: 500px;">
    <h2>Einstellungen</h2>

    <div class="card mt-3">
        <div class="card-header" style="padding: .5rem 0 0 1rem;"><h5>Mail Service</h5></div>
        <div class="card-body">
            <p>
                <strong>SMTP Server:</strong> @AppSettings.Mail.Host<br />
                <strong>Port:</strong> @AppSettings.Mail.Port<br />
                <strong>SSL:</strong> @(AppSettings.Mail.UseSsl ? "Ja" : "Nein")<br />
            </p>
            <hr />
            <Fields Class="my-3">
                <Field ColumnSize="ColumnSize.Is12">
                    <FieldLabel>Testmail-Empfänger</FieldLabel>
                    <FieldBody>
                        <TextEdit @bind-Text="TestMailReceiver" Placeholder="E-Mail Adresse"></TextEdit>
                    </FieldBody>
                </Field>
            </Fields>
            <Button Color="Color.Primary" Clicked="SendTestMail">Testmail senden</Button>
        </div>
    </div>
</div>