templates/blog_edit/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.                             <!-- PAGE-HEADER -->
  4.                             <div class="page-header">
  5.                                 <div>
  6.                                     <h1 class="page-title">Edit Post</h1>
  7.                                 </div>
  8.                                 <div class="ms-auto pageheader-btn">
  9.                                     <ol class="breadcrumb">
  10.                                         <li class="breadcrumb-item">Pages</li>
  11.                                         <li class="breadcrumb-item"><a href="javascript:void(0);">Blog</a></li>
  12.                                         <li class="breadcrumb-item active" aria-current="page">Edit Post</li>
  13.                                     </ol>
  14.                                 </div>
  15.                             </div>
  16.                             <!-- PAGE-HEADER END -->
  17.                             <!-- ROW -->
  18.                             <div class="row">
  19.                                 <div class="col-lg-12 col-md-12 col-md-12">
  20.                                     <div class="card ">
  21.                                         <div class="card-header border-bottom">
  22.                                             <h3 class="card-title">Edit Post</h3>
  23.                                         </div>
  24.                                         <div class="card-body">
  25.                                             <div class="form-group">
  26.                                                 <label for="blogTitle" class="form-label text-dark">Title</label>
  27.                                                 <input type="text" class="form-control" id="blogTitle" value="Best place for vacation">
  28.                                             </div>
  29.                                             <div class="form-group">
  30.                                                 <label for="category" class="form-label text-dark">Category</label>
  31.                                                 <select class="form-control select2 form-select" id="category" data-placeholder="Select">
  32.                                                     <option label="default">Select</option>
  33.                                                     <option value="1" selected>IT</option>
  34.                                                     <option value="2">Language</option>
  35.                                                     <option value="3">Science</option>
  36.                                                     <option value="4">Health</option>
  37.                                                     <option value="5">Humanities</option>
  38.                                                     <option value="6">Business</option>
  39.                                                     <option value="7">Maths</option>
  40.                                                     <option value="8">Marketing</option>
  41.                                                 </select>
  42.                                             </div>
  43.                                             <div class="form-group">
  44.                                                 <label class="form-label text-dark" for="instructor">Instructor</label>
  45.                                                 <select class="form-control select2 form-select" id="instructor" data-placeholder="Select">
  46.                                                     <option label="default">Select</option>
  47.                                                     <option value="1" selected>Pedro Cox</option>
  48.                                                     <option value="2">Vera Guzman</option>
  49.                                                     <option value="3">Glenda Long</option>
  50.                                                     <option value="4">Joel Anderson</option>
  51.                                                     <option value="5">Blanche Henderson</option>
  52.                                                 </select>
  53.                                             </div>
  54.                                             <div class="form-group">
  55.                                                 <label class="form-label text-dark">Type of mode</label>
  56.                                                 <div class="d-md-flex ad-post-details">
  57.                                                     <label class="custom-control custom-radio mb-2 me-4">
  58.                                                         <input type="radio" class="custom-control-input" name="radios2" value="option1" checked>
  59.                                                         <span class="custom-control-label"><a href="javascript:void(0)">Online </a></span>
  60.                                                     </label>
  61.                                                     <label class="custom-control custom-radio  mb-2">
  62.                                                         <input type="radio" class="custom-control-input" name="radios2" value="option2" >
  63.                                                         <span class="custom-control-label"><a href="javascript:void(0)">Offline</a></span>
  64.                                                     </label>
  65.                                                 </div>
  66.                                             </div>
  67.                                             <div class="ql-wrapper ql-wrapper-demo mb-4">
  68.                                                 <div id="quillEditor">
  69.                                                     <p><strong>Quill</strong> is a free, open source <a href="https://github.com/quilljs/quill/">WYSIWYG editor</a> built for the modern web. With its <a href="https://quilljs.com/docs/modules/">modular architecture</a> and expressive API, it is completely customizable to fit any need.</p><br>
  70.                                                     <p>The icons use here as a replacement to default svg icons are from <a href="https://icons8.com/line-awesome">Line Awesome Icons</a>.</p>
  71.                                                 </div>
  72.                                             </div>
  73.                                             <div class="form-group">
  74.                                                 <label class="form-label text-dark">Course Type</label>
  75.                                                 <div class="d-md-flex ad-post-details">
  76.                                                     <label class="custom-control custom-radio mb-2 me-4">
  77.                                                         <input type="radio" class="custom-control-input" name="radios12" value="option1" checked>
  78.                                                         <span class="custom-control-label"><a href="javascript:void(0)">Free </a></span>
  79.                                                     </label>
  80.                                                     <label class="custom-control custom-radio  mb-2">
  81.                                                         <input type="radio" class="custom-control-input" name="radios12" value="option2" >
  82.                                                         <span class="custom-control-label"><a href="javascript:void(0)">Paid</a></span>
  83.                                                     </label>
  84.                                                 </div>
  85.                                             </div>
  86.                                             <div class="p-4 border mb-4 form-group">
  87.                                                 <div>
  88.                                                     <input id="demo" type="file" name="files" accept=" image/jpeg, image/png, text/html, application/zip, text/css, text/js" multiple />
  89.                                                 </div>
  90.                                             </div>
  91.                                             <div class="form-group">
  92.                                                 <label class="form-label" for="videoUrl">Upload Video URL</label>
  93.                                                 <input type="text" class="form-control" id="videoUrl" placeholder="https://videos.com" value="https://www.youtube.com/embed/tMWkeBIohBs">
  94.                                             </div>
  95.                                             <div class="control-group form-group  mb-0">
  96.                                                 <label class="form-label text-dark">Course Post Package</label>
  97.                                                 <div class=" border p-3 br-7">
  98.                                                     <div class="d-md-flex ad-post-details">
  99.                                                         <label class="custom-control custom-radio mb-0 me-5">
  100.                                                             <input type="radio" class="custom-control-input" name="radios1" value="option7">
  101.                                                             <span class="custom-control-label">30 Days Free</span>
  102.                                                         </label>
  103.                                                         <label class="custom-control custom-radio  mb-0 me-4">
  104.                                                             <input type="radio" class="custom-control-input" name="radios1" value="option8" checked>
  105.                                                             <span class="custom-control-label">60 days / <span class="font-weight-bold">$20</span></span>
  106.                                                         </label>
  107.                                                         <label class="custom-control custom-radio  mb-0 me-4">
  108.                                                             <input type="radio" class="custom-control-input" name="radios1" value="option9">
  109.                                                             <span class="custom-control-label">6months /<span class="font-weight-bold">$50</span></span>
  110.                                                         </label>
  111.                                                         <label class="custom-control custom-radio  mb-0">
  112.                                                             <input type="radio" class="custom-control-input" name="radios1" value="option10">
  113.                                                             <span class="custom-control-label">1 year / <span class="font-weight-bold">$80</span></span>
  114.                                                         </label>
  115.                                                     </div>
  116.                                                 </div>
  117.                                             </div>
  118.                                         </div>
  119.                                         <div class="card-footer">
  120.                                             <a href="javascript:void(0)" class="btn btn-primary float-end mb-1 mb-sm-0">Publish Now</a>
  121.                                             <a href="javascript:void(0)" class="btn btn-secondary float-end me-2 mb-1 mb-sm-0">Save to Draft</a>
  122.                                         </div>
  123.                                     </div>
  124.                                 </div>
  125.                             </div>
  126.                             <!-- /ROW -->
  127. {% endblock %}
  128. {% block javascripts %}
  129.    {{parent()}} 
  130.         <!-- FORMEDITOR JS -->
  131.         <script src="{{absolute_url(asset('build/plugins/quill/quill.min.js'))}}"></script>
  132.         <!--Internal Fancy uploader js-->
  133.         <script src="{{absolute_url(asset('build/plugins/fancyuploder/jquery.ui.widget.js'))}}"></script>
  134.         <script src="{{absolute_url(asset('build/plugins/fancyuploder/jquery.fileupload.js'))}}"></script>
  135.         <script src="{{absolute_url(asset('build/plugins/fancyuploder/jquery.iframe-transport.js'))}}"></script>
  136.         <script src="{{absolute_url(asset('build/plugins/fancyuploder/jquery.fancy-fileupload.js'))}}"></script>
  137.         <script src="{{absolute_url(asset('build/plugins/fancyuploder/fancy-uploader.js'))}}"></script>
  138.         <!-- SELECT2 JS -->
  139.         <script src="{{absolute_url(asset('build/plugins/select2/select2.full.min.js'))}}"></script>
  140.         <!-- BLOG-EDIT JS-->
  141.         {{ encore_entry_script_tags('js/blog-edit') }}
  142. {% endblock %}