blessing-skin-server/resources/views/admin/options.tpl

65 lines
2.1 KiB
PHP
Raw Normal View History

2016-07-22 19:36:24 +08:00
@extends('admin.master')
2016-09-25 10:02:40 +08:00
@section('title', trans('general.options'))
2016-07-22 19:36:24 +08:00
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
2016-09-25 10:02:40 +08:00
{{ trans('general.options') }}
2016-07-22 19:36:24 +08:00
<small>Options</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-6">
2016-11-12 23:50:41 +08:00
{!! $forms['general']->render() !!}
2016-07-22 19:36:24 +08:00
</div>
<div class="col-md-6">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">站点公告</h3>
</div><!-- /.box-header -->
2016-09-10 17:02:47 +08:00
<form method="post">
2016-07-22 19:36:24 +08:00
<input type="hidden" name="option" value="announcement">
<div class="box-body">
<?php
if (isset($_POST['option']) && ($_POST['option'] == "announcement")) {
Option::set('announcement', $_POST['announcement']);
echo '<div class="callout callout-success">设置已保存。</div>';
} ?>
2016-09-15 23:03:58 +08:00
<textarea name="announcement" class="form-control" rows="3">{{ option('announcement') }}</textarea>
2016-08-11 12:47:02 +08:00
<p class="description">站点公告内容不会被转义,因此您可以使用 HTML 进行排版</p>
2016-07-22 19:36:24 +08:00
</div><!-- /.box-body -->
<div class="box-footer">
<button type="submit" name="submit" class="btn btn-primary">提交</button>
</div>
</form>
</div>
2016-11-12 23:50:41 +08:00
{!! $forms['cache']->render() !!}
2016-07-22 19:36:24 +08:00
</div>
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
@endsection
2016-11-12 23:50:41 +08:00
@section('style')
<style type="text/css">
.box-body > textarea { height: 200px; }
.description { margin: 7px 0 0 0; color: #555; }
</style>
@endsection