View file resources/views/admin/notices/create.blade.php

File size: 2.17Kb
  1. @extends('layout')
  2.  
  3. @section('title', __('admin.notices.create'))
  4.  
  5. @section('breadcrumb')
  6. <nav>
  7. <ol class="breadcrumb">
  8. <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
  9. <li class="breadcrumb-item"><a href="/admin">{{ __('index.panel') }}</a></li>
  10. <li class="breadcrumb-item"><a href="/admin/notices">{{ __('index.email_templates') }}</a></li>
  11. <li class="breadcrumb-item active">{{ __('admin.notices.create') }}</li>
  12. </ol>
  13. </nav>
  14. @stop
  15.  
  16. @section('content')
  17. <div class="section-form mb-3 shadow">
  18. <form action="/admin/notices/create" method="post">
  19. @csrf
  20. <div class="mb-3{{ hasError('type') }}">
  21. <label for="type" class="form-label">{{ __('main.type') }} (a-z0-9_-):</label>
  22. <input type="text" class="form-control" id="type" name="type" maxlength="20" value="{{ getInput('type') }}" required>
  23. <div class="invalid-feedback">{{ textError('type') }}</div>
  24. </div>
  25.  
  26. <div class="mb-3{{ hasError('name') }}">
  27. <label for="name" class="form-label">{{ __('main.title') }}:</label>
  28. <input type="text" class="form-control" id="name" name="name" maxlength="100" value="{{ getInput('name') }}" required>
  29. <div class="invalid-feedback">{{ textError('name') }}</div>
  30. </div>
  31.  
  32. <div class="mb-3{{ hasError('text') }}">
  33. <label for="text" class="form-label">{{ __('main.text') }}:</label>
  34. <textarea class="form-control markItUp" id="text" rows="15" name="text" required>{{ getInput('text') }}</textarea>
  35. <div class="invalid-feedback">{{ textError('text') }}</div>
  36. </div>
  37.  
  38. <div class="form-check">
  39. <label class="form-check-label">
  40. <input name="protect" class="form-check-input" type="checkbox" value="1"{{ getInput('protect') ? ' checked' : '' }}>
  41. {{ __('admin.notices.system_template') }}
  42. </label>
  43. </div>
  44.  
  45. <button class="btn btn-primary">{{ __('main.save') }}</button>
  46. </form>
  47. </div>
  48. @stop