blob: eb55102a7bc296080675d76bc0706168070f01d2 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<%@ Title="Edit Post" %>
<com:TContent ID="Main">
<h2>Update Post</h2>
<span class="input-label">Title</span>
<com:TRequiredFieldValidator
Display="Dynamic"
ControlToValidate="Title"
ErrorMessage="...is required"
ValidationGroup="post" />
<br/>
<com:TTextBox ID="Title" Columns="80" MaxLength="256" />
<br/>
<span class="input-label">Content</span>
<com:TRequiredFieldValidator
Display="Dynamic"
ControlToValidate="Content"
ErrorMessage="...is required"
ValidationGroup="post" />
<br/>
<com:THtmlArea ID="Content" Width="500px" />
<br/>
<span class="input-label">Categories</span>
<br/>
<com:TListBox
ID="Categories"
SelectionMode="Multiple"
DataTextField="Name"
DataValueField="ID" />
<br/>
<com:TCheckBox ID="DraftMode" Text="in draft mode (the post will not be published)" />
<br/>
<br/>
<com:TLinkButton
Text="Save"
OnClick="saveButtonClicked"
CssClass="link-button"
ValidationGroup="post" />
</com:TContent>
|