mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-06 14:19:21 +02:00

More flexibility and additions on the dashboard modules. -Statistics: Accounts, Players, Monsters, Guilds, Houses -Website Status: Maintenance -Server Status: name, client, map, monsters loaded, MOTD, default: 'admin_panel_modules' => 'statistics,web_status,server_status,lastlogin,created,points,coins,balance',
27 lines
1.3 KiB
Twig
27 lines
1.3 KiB
Twig
<div class="col-12 col-md-6">
|
|
<div class="card card-warning card-outline">
|
|
<form action="?p=dashboard&maintenance" method="post" class="form-horizontal">
|
|
<div class="card-header">
|
|
<span class="m-0">Website Status<span class="float-right">
|
|
<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
|
|
<input type="checkbox" class="custom-control-input" name="status" id="status" value="true" {% if not is_closed %} checked{% endif %}>
|
|
<label class="custom-control-label" for="status"> {% if is_closed %}Closed{% else %}Open{% endif %}</label>
|
|
</div></span>
|
|
</span>
|
|
</div>
|
|
<div class="card-body p-2">
|
|
<div class="col-sm-12">
|
|
<label for="message" class="col-form-label">Maintenance Message</label>
|
|
<textarea name="message" class="form-control" cols="40" rows="3" maxlength="255" placeholder="Enter ...">{{ closed_message }}</textarea>
|
|
<small>(only visible if closed)</small>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" class="btn btn-info"><i class="far fa-update"></i> Update</button>
|
|
<a href="?p=dashboard&clear_cache" onclick="return confirm('Are you sure?');" class="float-right">
|
|
<span class="btn btn-danger"><i class="fas fa-clear"></i>Clear cache</span>
|
|
</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div> |