summaryrefslogtreecommitdiff
path: root/lib/prado/framework/Wsat/pages/TWsatGenerateAR.page
blob: 53ccc16796fb40deb9243b123b33b7588d1aaf05 (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
48
49
50
51
52
53
54
55
56
<com:TContent ID="Content">
    <div class="section_title">Active Record Classes Generator</div>
    <div class="green_panel" style="text-align: left; font-size: 14px; margin: 15px 5px">
        <label>This tool generates an AR class for the specified database table.</label><br/>
        <label>Fields with <b style="color: red">*</b> are required.</label>
        <hr/>
        <div style="font-size: 12px; font-style: italic">
            <ul>
                <li>If you want to generate all AR Classes, keep the "Table Name" field as appears by default.</li>
                <li>"Output Folder" field refers to the directory that the new AR class file should be generated under... where Application refers to the protected folder of your project. You can let this default field value and PRADO will create the proper folders for you.</li>
            </ul>
        </div>        
    </div>
    
    <div style="font-size: 14px">
        <div class="form_row">
            <com:TLabel Text="Table Name:" ForControl="table_name" style="margin-right: 24px" />
            <com:TTextBox ID="table_name" Text="*" CssClass="in_text" />
            <label style="color: red">*</label>
            <com:TRequiredFieldValidator ControlToValidate="table_name" Text="Table name cannot be blank." Display="Dynamic" />
        </div>

        <div class="form_row">
            <com:TLabel Text="Output Folder:" ForControl="output_folder" style="margin-right: 8px"/>
            <com:TTextBox ID="output_folder" Text="Application.App_Data.AR_Classes" CssClass="in_text" />
            <label style="color: red">*</label>
            <com:TRequiredFieldValidator ControlToValidate="output_folder" Text="Output folder cannot be blank." Display="Dynamic" />
        </div>

        <div class="form_row">
            <com:TLabel Text="Class Prefix:" ForControl="class_prefix" style="margin-right: 25px"/>
            <com:TTextBox ID="class_prefix" Text="AR_" CssClass="in_text" />
        </div>

        <div class="form_row">
            <com:TLabel Text="Class Suffix:" ForControl="class_suffix" style="margin-right: 27px"/>
            <com:TTextBox ID="class_suffix" CssClass="in_text" />
        </div>

        <div class="form_row">
            <com:TLabel Text="Build Relations:" ForControl="build_rel"/>
            <com:TCheckBox ID="build_rel" Checked="true" />
        </div>

        <com:TPanel ID="feedback_panel" Visible="false" style="width: 400px">
            <com:TLabel ID="generation_msg" />
        </com:TPanel>

        <br/> 
        <div style="text-align: center; width: 400px">
            <com:TButton Text="Preview" OnClick="preview" Visible="false" />
            <com:TButton Text="Generate" OnClick="generate" />
        </div>        
    </div>    

</com:TContent>