blob: cea21e319c19cc49f04442ca56e1eb59facff209 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<%- include('header', { title: "Send Message" }) -%>
<style>
input, textarea { width: 100%; max-width: 45rem; }
</style>
<form action="/message/send" method="post">
<p>
To:<br>
<input id="to" type="text" name="to" size="80" maxlength="80"
onkeypress="if(event.keyCode===13){document.querySelector('#subject').focus();return false;}"
value="<%= to_name %>"
<%= (to_name === "") ? "autofocus" : "" %>
required>
<p>
Subject:
<br>
<input id="subject" type="text" name="subject" size="80" maxlength="80"
onkeypress="if(event.keyCode===13){document.querySelector('#body').focus();return false;}"
value="<%= subject %>"
<%= (to_name !== "" && subject === "") ? "autofocus" : "" %>
pattern=".*\S+.*"
required>
<p>
Body:
<br>
<textarea id="body" name="body" rows="20" cols="80" maxlength="32000"
<%= (to_name !== "" && subject !== "") ? "autofocus" : "" %>
required>
<%= body %></textarea>
<p>
<button type="submit">Send</button>
</form>
|