forked from laysense/laysite
Refine admin action buttons and add a system about page
This commit is contained in:
@@ -17,7 +17,9 @@ $fieldError = static function (string $name) use ($errorId, $field, $error, $e):
|
||||
<a class="back-link" href="/admin/design">返回站点设计</a>
|
||||
<header class="admin-heading">
|
||||
<h1>配色方案</h1>
|
||||
<?php if ($key !== 'new'): ?><a class="button button-outline" href="/admin/design/palette/<?= $e($key) ?>/preview" target="_blank" rel="noopener noreferrer">预览已保存的配置</a><?php endif ?>
|
||||
<?php if ($key !== 'new'): ?>
|
||||
<?= View::fragment('admin-view-link', ['href' => '/admin/design/palette/' . $key . '/preview', 'icon' => 'preview', 'label' => '预览已保存的配置']) ?>
|
||||
<?php endif ?>
|
||||
</header>
|
||||
<?= View::fragment('admin-feedback', ['error' => $field === '' ? $error : '', 'saved' => $saved]) ?>
|
||||
<form class="admin-form admin-panel" method="post" action="/admin/design/palette/<?= $e($key) ?>">
|
||||
@@ -29,5 +31,5 @@ $fieldError = static function (string $name) use ($errorId, $field, $error, $e):
|
||||
<label><?= $e($label) ?><input type="<?= $field === $color ? 'text' : 'color' ?>" name="<?= $e($color) ?>" value="<?= $e($data[$color] ?? $fallback) ?>"<?= $describe($color) ?>><?php $fieldError($color); ?></label>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<div class="form-submit"><button type="submit" class="button button-primary">保存配置</button></div>
|
||||
<div class="form-submit"><button type="submit" class="button button-primary"><?= View::fragment('studio-icon', ['icon' => 'save']) ?>保存配置</button></div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user