Scroll completion menu to top when completion list changes.
[lw2-viewer.git] / templates / conversation.html
blob8dcaa2e4730a1d4be6c6473d69b3e4ba75f9d648
1 {% if conversation %}
2 <h1 class="page-main-heading">{{ conversation.title }}</h1>
3 <div class="conversation-participants">with: <ul>
4 {% for party in conversation.participants %}<li><a href="/users/{{party.slug}}">{{ party.display-name }}</a></li>{% endfor %}
5 </ul></div>
6 {% else %}
7 <h1 class="page-main-heading">Send private message</h1>
8 {% endif %}
9 <div class="posting-controls standalone with-markdown-editor" onsubmit="disableBeforeUnload();">
10 <form method="post" id="conversation-form" class="aligned-form">
11 {% if not conversation %}<div class="post-meta-fields">
12 <label for="to">To:</label>
13 <input name="to" autocomplete="off" value="{{to}}" type="text">
14 <label for="subject">Subject:</label>
15 <input name="subject" autocomplete="off" value="{{subject}}" type="text">
16 </div>{% endif %}
17 <div class="textarea-container">
18 <textarea name="text" oninput="enableBeforeUnload();">{{ markdown-source }}</textarea>
19 <span class="markdown-reference-link">You can use <a href="http://commonmark.org/help/" target="_blank">Markdown</a> here.</span>
20 <button type="button" class="guiedit-mobile-auxiliary-button guiedit-mobile-help-button">Help</button>
21 <button type="button" class="guiedit-mobile-auxiliary-button guiedit-mobile-exit-button">Exit</button>
22 </div>
23 <div>
24 {% if post-id %}<input name="post-id" value="{{ post-id }}" type="hidden">{% endif %}
25 <input name="csrf-token" value="{{ csrf-token }}" type="hidden">
26 <input value="Submit" type="submit">
27 </div>
28 </form>
29 </div>