ASP Classic blog framework - BrainOrdure
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

53 Zeilen
2.0KB

  1. <div class="row">
  2. <div class="col-lg-8">
  3. <div class="card shadow-sm">
  4. <div class="card-body">
  5. <h1 class="h3 mb-4">New Post</h1>
  6. <form method="post" action="<%= PostsUrl() %>">
  7. <div class="mb-3">
  8. <label class="form-label" for="Title">Title</label>
  9. <input class="form-control" type="text" id="Title" name="Title" required>
  10. </div>
  11. <div class="mb-3">
  12. <label class="form-label" for="Summary">Summary</label>
  13. <textarea class="form-control" id="Summary" name="Summary" rows="3"></textarea>
  14. </div>
  15. <div class="mb-3">
  16. <label class="form-label" for="Body">Body</label>
  17. <textarea class="form-control html-editor" id="Body" name="Body" rows="14" required></textarea>
  18. <div class="form-text">HTML is supported. Use the editor toolbar to format the post.</div>
  19. </div>
  20. <div class="mb-4">
  21. <label class="form-label" for="CategoryID">Category ID</label>
  22. <input class="form-control" type="number" id="CategoryID" name="CategoryID" min="0" value="0">
  23. </div>
  24. <div class="d-flex gap-2">
  25. <button class="btn btn-primary" type="submit">Create Post</button>
  26. <a class="btn btn-outline-secondary" href="<%= PostsUrl() %>">Cancel</a>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
  34. <script>
  35. if (window.tinymce) {
  36. tinymce.init({
  37. selector: 'textarea.html-editor',
  38. menubar: false,
  39. branding: false,
  40. height: 420,
  41. plugins: 'lists link code autoresize',
  42. toolbar: 'undo redo | blocks | bold italic underline | bullist numlist | link blockquote | removeformat | code',
  43. content_style: 'body { font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.6; }'
  44. });
  45. }
  46. </script>

Powered by TurnKey Linux.