No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

102 líneas
2.9 KiB

  1. {% extends "templates/web.html" %}
  2. {% block content %}
  3. <section class="section section-padding-top section-padding-bottom">
  4. <div class='container'>
  5. <div class="hero-content">
  6. <h1 class="hero-title">{{ greeting_title or _("We're here to help!") }}</h1>
  7. {% if greeting_subtitle %}
  8. <p class="hero-subtitle">{{ greeting_subtitle }}</p>
  9. {% endif %}
  10. </div>
  11. <div class="search-container">
  12. <div class="website-search" id="search-container">
  13. <div class="dropdown">
  14. <div class="search-icon">
  15. <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"
  16. fill="none"
  17. stroke="currentColor" stroke-width="2" stroke-linecap="round"
  18. stroke-linejoin="round"
  19. class="feather feather-search">
  20. <circle cx="11" cy="11" r="8"></circle>
  21. <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
  22. </svg>
  23. </div>
  24. <input type="search" class="form-control" placeholder="Search the docs (Press ? to focus)" />
  25. <div class="overflow-hidden shadow dropdown-menu w-100">
  26. </div>
  27. </div>
  28. </div>
  29. <button class="navbar-toggler" type="button"
  30. data-toggle="collapse"
  31. data-target="#navbarSupportedContent"
  32. aria-controls="navbarSupportedContent"
  33. aria-expanded="false"
  34. aria-label="Toggle navigation">
  35. <span class="navbar-toggler-icon"></span>
  36. </button>
  37. </div>
  38. </div>
  39. </section>
  40. {% if favorite_article_list %}
  41. <section class="section section-padding-top section-padding-bottom bg-light">
  42. <div class='container'>
  43. <h2>{{ _("Frequently Read Articles") }}</h2>
  44. <div class="row">
  45. {% for favorite_article in favorite_article_list %}
  46. <div class="mt-4 col-12 col-sm-6 col-lg-4">
  47. <div class="card card-md h-100 kb-card">
  48. <div class="card-body">
  49. <h6 class="card-subtitle mb-2 text-uppercase small text-muted">
  50. {{ favorite_article['category'] }}</h6>
  51. <h3 class="card-title">{{ favorite_article['title'] }}</h3>
  52. <p class="card-text">{{ favorite_article['description'] }}</p>
  53. </div>
  54. <a href="{{ favorite_article['route'] }}" class="stretched-link"></a>
  55. </div>
  56. </div>
  57. {% endfor %}
  58. </div>
  59. </div>
  60. </section>
  61. {% endif %}
  62. {% if help_article_list %}
  63. <section class="section section-padding-top section-padding-bottom">
  64. <div class='container'>
  65. <h2>{{ _("Help Articles") }}</h2>
  66. <div class="row">
  67. {% for item in help_article_list %}
  68. <div class="mt-5 col-12 col-sm-6 col-lg-4">
  69. <h5>{{ item['category'].name }}</h5>
  70. <div>
  71. {% for article in item['articles'] %}
  72. <a href="{{ article.route }}" class="mt-2 d-block">{{ article.title }}</a>
  73. {% endfor %}
  74. </div>
  75. </div>
  76. {% endfor %}
  77. </div>
  78. </div>
  79. </section>
  80. {% endif %}
  81. {% endblock %}
  82. {%- block script -%}
  83. <script>
  84. frappe.ready(() => {
  85. frappe.setup_search('#search-container', 'kb');
  86. });
  87. </script>
  88. {%- endblock -%}
  89. {%- block style -%}
  90. <style>
  91. .search-container {
  92. margin-top: 1.2rem;
  93. max-width: 500px;
  94. }
  95. </style>
  96. {%- endblock -%}