summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/NewCategory.page
blob: 43dba79be7daf8876aa7dca6801cae9104568c09 (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
<%@ Title="Create New Category" %>

<com:TContent ID="Main">

<h2>New Post Category</h2>

<span class="input-label">Category name</span>
<com:TRequiredFieldValidator
	Display="Dynamic"
	ControlToValidate="CategoryName"
	ErrorMessage="...is required"
	ValidationGroup="category" />
<com:TCustomValidator
	ControlToValidate="CategoryName"
	ValidationGroup="category"
	Display="Dynamic"
	OnServerValidate="checkCategoryName"
	Text="...must be unique"
	ControlCssClass="input-error1" />
<br/>
<com:TTextBox ID="CategoryName" Columns="50" MaxLength="128" />
<br/>

<span class="input-label">Description</span>
<br/>
<com:TTextBox
	ID="CategoryDescription"
	TextMode="MultiLine"
	Columns="50"
	Rows="5" />
<br/>
<br/>
<com:TLinkButton
	Text="Save"
	OnClick="saveButtonClicked"
	CssClass="link-button"
	ValidationGroup="category" />

</com:TContent>