@{
    ViewData["Title"] = "Accounts Settings";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

@model EForT.Models.StartupSettingsModel

    <div class="app-content container center-layout py-3">
        <div class="content-header row">
            <div class="content-header-left col-12 mb-2">
                <h1 class="content-header-title mb-0">Startup Settings</h1>
                <div class="row breadcrumbs-top">
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item">
                                <a href="@Url.Action("AdminAccount", "UserManagement")">Administrator Home</a>
                            </li>
                            <li class="breadcrumb-item active">
                                Settings
                            </li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-wrapper">
            <div class="content-body">
                <div class="row">
                    <div class="col-12 col-sm-12 col-md-8 col-lg-6 col-xl-6">
                        <div class="card">
                            <div class="card-header pb-0">
                                <div class="font-medium-2 bottom-border">
                                    <p>Account Details</p>
                                </div>
                            </div>
                            <div class="card-content">
                                <div class="card-body">
                                    <form id="editSettingsForm" asp-action="EditSettings" asp-controller="StartupSettings" method="post">
                                        <input type="hidden" asp-for="StartupSettings.Id" id="hdnAdminSettingsID" />
                                        <div class="modal-body">

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="PlaidEndpoint">PlaidEndpoint: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.PlaidEndpoint" id="PlaidEndpoint" value="@Model.StartupSettings.PlaidEndpoint" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="PlaidClientId">PlaidClientId: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.PlaidClientId" id="PlaidClientId" value="@Model.StartupSettings.PlaidClientId" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="PlaidPublicKey">PlaidPublicKey: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.PlaidPublicKey" id="PlaidPublicKey" value="@Model.StartupSettings.PlaidPublicKey" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="PlaidSecret">PlaidSecret: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.PlaidSecret" id="PlaidSecret" value="@Model.StartupSettings.PlaidSecret" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="ProductionMode">ProductionMode: <i class="warning">*</i></label>
                                                <select class="form-control" asp-for="StartupSettings.ProductionMode" id="ProductionMode" required>
                                                    <option value="true">Live</option>
                                                    <option value="false">Test</option>
                                                </select>
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="StripeClientId">StripeClientId: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.StripeClientId" id="StripeClientId" value="@Model.StartupSettings.StripeClientId" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="StripeOAuthToken">StripeOAuthToken: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.StripeOAuthToken" id="StripeOAuthToken" value="@Model.StartupSettings.StripeOAuthToken" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="StripePublishableKey">StripePublishableKey: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.StripePublishableKey" id="StripePublishableKey" value="@Model.StartupSettings.StripePublishableKey" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="StripeSecretKey">StripeSecretKey: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.StripeSecretKey" id="StripeSecretKey" value="@Model.StartupSettings.StripeSecretKey" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="SubscriptionPlanId">SubscriptionPlanId: <i class="warning">*</i></label>
                                                <input type="text" class="form-control" asp-for="StartupSettings.SubscriptionPlanId" id="SubscriptionPlanId" value="@Model.StartupSettings.SubscriptionPlanId" required />
                                            </fieldset>

                                            <fieldset class="form-group floating-label-form-group">
                                                <label for="SubscriptionAmount">SubscriptionAmount: <i class="warning">*</i></label>
                                                <input type="number" min="0" class="form-control" asp-for="StartupSettings.SubscriptionAmount" id="SubscriptionAmount" value="@Model.StartupSettings.SubscriptionAmount" required />
                                            </fieldset>


                                        </div>
                                        <div class="modal-footer">
                                            <input id="btn-edit-settings" type="submit" class="btn btn-primary" value="Save Changes">
                                            <input type="reset" class="btn btn-secondary" onclick="location.href='@Url.Action("ResetSettings")'" value="Reset To Default">
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>