summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/NewPost.page
blob: 15071e3a33467fd9e7db25dcd2c71d50c8beaf96 (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
<%@ Title="Write New Post" %>

<com:TContent ID="Main">

<h2>Write New 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>