custom.blade.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @extends('admin/public/layout')
  2. @section('title')功能定制@endsection
  3. @section('content')
  4. <section class="content-header">
  5. <h1>功能定制</h1>
  6. </section>
  7. <section class="content">
  8. <div class="row">
  9. <div class="col-xs-12">
  10. <div class="box box-default">
  11. <div class="box-header"><h3 class="box-title">问答功能设置</h3></div>
  12. <form role="form" name="addForm" method="POST" action="{{ route('admin.setting.custom') }}">
  13. <input type="hidden" name="_token" id="editor_token" value="{{ csrf_token() }}">
  14. <div class="box-body">
  15. <div class="form-group">
  16. <label for="answer_adopt_period">问题自动采纳时长(天)</label>
  17. <span class="text-muted">(在限定时长内,如果问题没有采纳回答,则有程序按照默认策略进行采纳,0为不自动采纳,单位是天)</span>
  18. <input type="text" name="answer_adopt_period" class="form-control" value="{{ Setting()->get('answer_adopt_period',0) }}" placeholder="问题自动采纳回答时长" />
  19. </div>
  20. <div class="form-group">
  21. <label for="answer_adopt_period">热门内容最大时长(天)</label>
  22. <span class="text-muted">(根据配置动态筛选时长以内的热门问题、文章,避免长期显示相同内容)</span>
  23. <input type="text" name="hot_content_period" class="form-control" value="{{ Setting()->get('hot_content_period',365) }}" placeholder="热门内容最大时长" />
  24. </div>
  25. <div class="form-group">
  26. <label for="website_url">开启自问自答</label>
  27. <span class="text-muted">(开启后自己可以回答自己的问题)</span>
  28. <div class="radio">
  29. <label><input type="radio" name="open_self_answer" value="1" @if(Setting()->get('open_self_answer','0') == 1) checked @endif > 开启 </label>
  30. <label class="ml-20"><input type="radio" name="open_self_answer" value="0" @if(Setting()->get('open_self_answer','0') != 1) checked @endif > 关闭 </label>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="website_url">开启讨论模式</label>
  35. <span class="text-muted">(开启后已解决问题也可以被回答)</span>
  36. <div class="radio">
  37. <label><input type="radio" name="open_question_discuss" value="1" @if(Setting()->get('open_question_discuss','0') == 1) checked @endif > 开启 </label>
  38. <label class="ml-20"><input type="radio" name="open_question_discuss" value="0" @if(Setting()->get('open_question_discuss','0') != 1) checked @endif > 关闭 </label>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label for="open_user_sign">开启签到功能</label>
  43. <span class="text-muted">(开启后配合积分策略可以实现签到功能,首页会显示签到按钮)</span>
  44. <div class="radio">
  45. <label><input type="radio" name="open_user_sign" value="1" @if(Setting()->get('open_user_sign','0') == 1) checked @endif > 开启 </label>
  46. <label class="ml-20"><input type="radio" name="open_user_sign" value="0" @if(Setting()->get('open_user_sign','0') != 1) checked @endif > 关闭 </label>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="box-footer">
  51. <button type="submit" class="btn btn-primary">保存</button>
  52. </div>
  53. </form>
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58. @endsection
  59. @section('script')
  60. <script type="text/javascript">
  61. $(function(){
  62. set_active_menu('global',"{{ route('admin.setting.custom') }}");
  63. });
  64. </script>
  65. @endsection