Prateeksha Singh | b44ea4c | 2018-05-22 11:57:21 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
| 2 | |
| 3 | {% block title %} {{ _("Help") }} {% endblock %} |
| 4 | |
| 5 | {% block header %}<h1>{{ _("Help") }}</h1> |
| 6 | |
| 7 | <div style="margin-bottom: 20px;"> |
| 8 | <form action='/search_help'> |
| 9 | <input name='q' class='form-control' type='text' |
| 10 | style='max-width: 400px; display: inline-block; margin-right: 10px;' |
| 11 | value='{{ frappe.form_dict.q or ''}}' |
| 12 | {% if not frappe.form_dict.q%}placeholder="{{ _("What do you need help with?") }}"{% endif %}> |
| 13 | <input type='submit' |
Prateeksha Singh | 8d58429 | 2018-06-12 17:39:12 +0530 | [diff] [blame^] | 14 | class='btn btn-sm btn-default btn-search' value="{{ _("Search") }}"> |
Prateeksha Singh | b44ea4c | 2018-05-22 11:57:21 +0530 | [diff] [blame] | 15 | </form> |
| 16 | </div> |
| 17 | |
| 18 | {% for section in get_started_sections %} |
| 19 | <div style="margin-bottom: 30px;"> |
| 20 | <h2>{{ section["name"] }}</h2> |
| 21 | {% for item in section["items"] %} |
| 22 | <div style="margin: 20px 0;"> |
| 23 | <a href="{{ item.link }}"><b>{{ item.title }}</b></a> |
| 24 | {% if item.description -%} |
| 25 | <p>{{ item.description }}</p> |
| 26 | {%- endif %} |
| 27 | </div> |
| 28 | {% endfor %} |
| 29 | <p><a href="/kb/support">{{ _("See All Articles") }}</a></p> |
| 30 | <hr> |
| 31 | </div> |
| 32 | {% endfor %} |
| 33 | |
| 34 | <div style="margin-bottom: 30px;"> |
| 35 | <h2>{{ _("Forum Activity") }}</h2> |
| 36 | {% for topic in topics %} |
| 37 | <div style="margin: 20px 0;"> |
| 38 | <a href="{{ topic[post_params.link] }}"> |
| 39 | <b>{{ topic[post_params.title] }}</b> |
| 40 | </a> |
| 41 | {% if topic[post_params.description] -%} |
| 42 | <p>{{ topic[post_params.description] }}</p> |
| 43 | {%- endif %} |
| 44 | </div> |
| 45 | {% endfor %} |
| 46 | <p><a href="{{ forum_url }}">{{ _("Visit the forums") }}</a></p> |
| 47 | <hr> |
| 48 | </div> |
| 49 | |
Prateeksha Singh | 8d58429 | 2018-06-12 17:39:12 +0530 | [diff] [blame^] | 50 | {% if issues | len > 0 -%} |
Prateeksha Singh | b44ea4c | 2018-05-22 11:57:21 +0530 | [diff] [blame] | 51 | <div style="margin-bottom: 20px;"> |
| 52 | <h2>{{ _("Your tickets") }}</h2> |
| 53 | {% for doc in issues %} |
| 54 | {% include "templates/includes/issue_row.html" %} |
| 55 | {% endfor %} |
| 56 | <p><a href="/issues">{{ _("See all open tickets") }}</a></p> |
| 57 | </div> |
| 58 | |
Prateeksha Singh | 8d58429 | 2018-06-12 17:39:12 +0530 | [diff] [blame^] | 59 | <a href="/issues?new=1" class="btn btn-primary btn-new btn-sm"> |
Prateeksha Singh | b44ea4c | 2018-05-22 11:57:21 +0530 | [diff] [blame] | 60 | {{ _("Open a new ticket") }} |
| 61 | </a> |
Prateeksha Singh | 8d58429 | 2018-06-12 17:39:12 +0530 | [diff] [blame^] | 62 | {%- endif %} |
Prateeksha Singh | b44ea4c | 2018-05-22 11:57:21 +0530 | [diff] [blame] | 63 | |
| 64 | {% endblock %} |