1 <%@ MasterClass="Application.Portlets.ConfigurationPanel"%>
2 <com:TContent ID="ConfigurationWindowContent">
3 <com:TActivePanel DefaultButton="Apply">
4 <h4><%[ Client name: ]%> <com:TActiveLabel ID="ClientName" /><com:TActiveLabel ID="ClientIdentifier" Visible="false" /></h4>
5 <com:TActiveLabel ID="ClientDescription" CssClass="description" />
6 <span class="text tab tab_active" rel="client_actions_tab"><%[ Actions ]%></span>
7 <span class="text tab" rel="client_console_tab"><%[ Console status ]%></span>
9 <div id="client_actions_tab">
10 <com:TValidationSummary
11 ID="ValidationSummary"
12 CssClass="validation-error-summary"
13 ValidationGroup="ClientGroup"
16 HeaderText="<%[ There is not possible to run selected action because: ]%>" />
18 <div class="text"><com:TLabel ForControl="FileRetention" Text="<%[ File retention (in days): ]%>" /></div>
20 <com:TActiveTextBox ID="FileRetention" MaxLength="14" AutoPostBack="false" CssClass="textbox-auto" Text="" />
21 <com:TActiveCustomValidator ID="FileRetentionValidator" ValidationGroup="ClientGroup" ControlToValidate="FileRetention" ErrorMessage="<%[ File retention value must be positive integer or zero. ]%>" ControlCssClass="validation-error" Display="None" OnServerValidate="fileRetentionValidator" />
25 <div class="text"><com:TLabel ForControl="JobRetention" Text="<%[ Job retention (in days): ]%>" /></div>
27 <com:TActiveTextBox ID="JobRetention" MaxLength="14" AutoPostBack="false" CssClass="textbox-auto" Text="" />
28 <com:TActiveCustomValidator ID="JobRetentionValidator" ValidationGroup="ClientGroup" ControlToValidate="JobRetention" ErrorMessage="<%[ Job retention value must be positive integer or zero. ]%>" ControlCssClass="validation-error" Display="None" OnServerValidate="jobRetentionValidator" />
32 <div class="text"><com:TLabel ForControl="AutoPrune" Text="<%[ AutoPrune: ]%>" /></div>
33 <div class="field"><com:TActiveCheckBox ID="AutoPrune" AutoPostBack="false" /></div>
35 <com:TCallback ID="ReloadClients" OnCallback="Page.ClientWindow.prepareData" ClientSide.OnComplete="SlideWindow.getObj('ClientWindow').setLoadRequest();" />
36 <script type="text/javascript">
37 var client_callback_func = function() {
38 /* If Client list window is not open or if actually toolbar is used
39 * then Client window refresh does not take place.
41 var obj = SlideWindow.getObj('ClientWindow');
42 if (obj.isWindowOpen() === false || obj.isToolbarOpen() === true) {
45 var mainForm = Prado.Validation.getForm();
46 var callback = <%=$this->ReloadClients->ActiveControl->Javascript%>;
47 if (Prado.Validation.managers[mainForm].getValidatorsWithError('ClientGroup').length == 0) {
53 <com:BActiveButton ID="Status" Text="<%[ Status ]%>" OnClick="status">
54 <prop:ClientSide.OnSuccess>
55 ConfigurationWindow.getObj('ClientWindow').progress(false);
56 ConfigurationWindow.getObj('ClientWindow').switchTab('client_console_tab');
57 </prop:ClientSide.OnSuccess>
59 <com:BActiveButton ValidationGroup="ClientGroup" OnClick="apply" CausesValidation="true" ID="Apply" Text="<%[ Apply ]%>">
60 <prop:ClientSide.OnSuccess>
61 ConfigurationWindow.getObj('ClientWindow').progress(false);
62 client_callback_func();
63 </prop:ClientSide.OnSuccess>
67 <div id="client_console_tab" style="display: none">
68 <div class="field-full">
69 <com:TActiveTextBox ID="ShowClient" TextMode="MultiLine" CssClass="textbox-auto" Style="height: 440px" ReadOnly="true" />