2024-01-25 20:40:43 +03:30
|
|
|
@page
|
2023-06-02 15:26:29 +03:30
|
|
|
@using MTWireGuard.Application.Models.Mikrotik
|
2023-03-03 23:24:18 +03:30
|
|
|
@model SettingsModel
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "System Settings";
|
|
|
|
}
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="row g-2">
|
|
|
|
<div class="col-sm-12 col-md-6">
|
|
|
|
<div class="d-flex flex-column">
|
|
|
|
<!-- DNS Settings -->
|
|
|
|
<div class="card mb-2" style="max-height: 400px;">
|
|
|
|
<div class="card-header">
|
|
|
|
<h5 class="card-title"><i class="bi bi-globe"></i> DNS</h5>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="card-body overflow-x-auto">
|
|
|
|
<form id="dnsForm" onsubmit="return false">
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label class="form-label d-flex align-items-center justify-content-between" for="servers">
|
|
|
|
Servers
|
|
|
|
<button type="button" id="addServerBtn" class="btn btn-success rounded-1">
|
|
|
|
<i class="bx bx-plus"></i>
|
|
|
|
</button>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="form-group" id="serversGroup"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<label class="mt-2" for="dynamicServersGroup">Dynamic Servers</label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="form-group" id="dynamicServersGroup"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<button type="submit" class="btn btn-primary rounded-2">Submit</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<!-- Settings -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h5 class="card-title"><i class="bi bi-ui-radios-grid"></i> Client Panel</h5>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="card-body">
|
|
|
|
<form onsubmit="return false">
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="user-register-request" disabled>
|
|
|
|
<label class="form-check-label" for="user-register-request">Registration Request</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="user-get-config" disabled>
|
|
|
|
<label class="form-check-label" for="user-get-config">Get Config (QR-code or .conf file)</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="user-view-usage" disabled>
|
|
|
|
<label class="form-check-label" for="user-view-usage">View Traffic Usage</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" id="user-change-password" disabled>
|
|
|
|
<label class="form-check-label" for="user-change-password">Can Change Password</label>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<button type="submit" class="btn btn-primary rounded-2">Save</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="col-sm-12 col-md-6">
|
|
|
|
<div class="d-flex flex-column">
|
|
|
|
<!-- Identity Settings -->
|
|
|
|
<div class="card mb-2">
|
|
|
|
<div class="card-header">
|
|
|
|
<h5 class="card-title"><i class="bi bi-person-vcard"></i> Identity</h5>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="card-body">
|
|
|
|
<form id="identityForm" onsubmit="return false">
|
|
|
|
<div class="form-floating mb-3">
|
|
|
|
<input type="text" class="form-control" id="identityName" name="Name" placeholder="srv-main">
|
|
|
|
<label for="identityName">Identity</label>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<button type="submit" class="btn btn-primary rounded-2">Save</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
</div>
|
|
|
|
<!-- Status -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h5 class="card-title"><i class="bi bi-info-lg"></i> Status</h5>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
2024-01-25 20:40:43 +03:30
|
|
|
<div class="card-body">
|
|
|
|
<div class="row gy-2">
|
|
|
|
<div class="col-xs-6 col-sm-4 col-lg-4">
|
|
|
|
<div class="card text-white bg-primary" id="hdd-box">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="fs-4 fw-semibold">0MB</div>
|
|
|
|
<div>Free Disk Space</div>
|
|
|
|
<div class="progress progress-white progress-thin my-2">
|
|
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
|
|
|
|
</div>
|
|
|
|
<small class="text-medium-emphasis-inverse">Used 0MB of 0MB</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 col-sm-4 col-lg-4">
|
|
|
|
<div class="card text-white bg-success" id="ram-box">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="fs-4 fw-semibold">0MB</div>
|
|
|
|
<div>Free RAM Space</div>
|
|
|
|
<div class="progress progress-white progress-thin my-2">
|
|
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
|
|
|
|
</div>
|
|
|
|
<small class="text-medium-emphasis-inverse">Used 0MB of 0MB</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 col-sm-4 col-lg-4">
|
|
|
|
<div class="card text-white bg-danger" id="uptime-box">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="text-medium-emphasis-inverse fs-5 mb-1">
|
|
|
|
<i class="bi bi-speedometer"></i>
|
|
|
|
<div class="vr"></div>
|
|
|
|
<small class="fs-5 fw-lighter">CPU: 0%</small>
|
|
|
|
</div>
|
|
|
|
<div class="fs-4 fw-semibold">00:00:00</div>
|
|
|
|
<small class="text-medium-emphasis-inverse text-uppercase fw-semibold">UPTime</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-03 23:24:18 +03:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-01-25 20:40:43 +03:30
|
|
|
@section Modals {
|
|
|
|
<!-- Toasts -->
|
|
|
|
<component type="typeof(Components.ToastContainer)" render-mode="Static" />
|
|
|
|
}
|
|
|
|
|
2023-03-03 23:24:18 +03:30
|
|
|
@section Scripts {
|
2024-01-25 20:40:43 +03:30
|
|
|
<script src="js/helper.js"></script>
|
|
|
|
<script src="js/page-settings.js"></script>
|
2023-03-03 23:24:18 +03:30
|
|
|
}
|