]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Portlets/ClientConfiguration.tpl
baculum: Show jobs stored on volume
[bacula/bacula] / gui / baculum / protected / Portlets / ClientConfiguration.tpl
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>
8                 <hr class="tabs" />
9                 <div id="client_actions_tab">
10                         <com:TValidationSummary
11                                 ID="ValidationSummary"
12                                 CssClass="validation-error-summary"
13                                 ValidationGroup="ClientGroup"
14                                 AutoUpdate="true"
15                                 Display="Dynamic"
16                                 HeaderText="<%[ There is not possible to run selected action because: ]%>" />
17                         <div class="line">
18                                 <div class="text"><com:TLabel ForControl="FileRetention" Text="<%[ File retention (in days): ]%>" /></div>
19                                 <div class="field">
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" />
22                                 </div>
23                         </div>
24                         <div class="line">
25                                 <div class="text"><com:TLabel ForControl="JobRetention" Text="<%[ Job retention (in days): ]%>" /></div>
26                                 <div class="field">
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" />
29                                 </div>
30                         </div>
31                         <div class="line">
32                                 <div class="text"><com:TLabel ForControl="AutoPrune" Text="<%[ AutoPrune: ]%>" /></div>
33                                 <div class="field"><com:TActiveCheckBox ID="AutoPrune" AutoPostBack="false" /></div>
34                         </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.
40                                          */
41                                         var obj = SlideWindow.getObj('ClientWindow');
42                                         if (obj.isWindowOpen() === false || obj.isToolbarOpen() === true) {
43                                                 return;
44                                         }
45                                         var mainForm = Prado.Validation.getForm();
46                                         var callback = <%=$this->ReloadClients->ActiveControl->Javascript%>;
47                                         if (Prado.Validation.managers[mainForm].getValidatorsWithError('ClientGroup').length == 0) {
48                                                 callback.dispatch();
49                                         }
50                                 }
51                         </script>
52                         <div class="button">
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>
58                                 </com:BActiveButton>
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>
64                                 </com:BActiveButton>
65                         </div>
66                 </div>
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" />
70                         </div>
71                 </div>
72         </com:TActivePanel>
73 </com:TContent>