]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/BaculaHosts.tpl
baculum: Add link to go back from job configuration window
[bacula/bacula] / gui / baculum / protected / Web / Portlets / BaculaHosts.tpl
1 <a class="big" href="javascript:void(0)" onclick="$('#new_host').slideToggle()"><img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/add.png" alt="<%[ Add ]%>" /> <%[ Add API host]%></a>
2 <com:Application.Common.Portlets.NewHost ID="AddNewHost" APIRequired="config" ClientMode="true" OnCallback="loadConfig" />
3 <div class="config_hosts">
4         <com:TActiveRepeater ID="RepeaterHosts" OnItemCreated="createHostListElement">
5                 <prop:ItemTemplate>
6                         <com:TPanel ID="HostBox" CssClass="config_host">
7                                 <table class="host" onmousedown="$('div.config_host').removeClass('host_selected');(event.target||event.srcElement).id != '<%=$this->Host->ClientID%>' && (event.target||event.srcElement).id != '<%=$this->RemoveHost->ClientID%>' ? $('#<%=$this->Host->ClientID%>').trigger('click') : '';">
8                                         <tr onmouseover="$(this).find('a.action_link').addClass('host_selected');" onmouseout="$(this).find('a.action_link').removeClass('host_selected');">
9                                                 <td><%[ Host: ]%> <com:TActiveLinkButton
10                                                         ID="Host"
11                                                         ActiveControl.EnableUpdate="false"
12                                                         OnCommand="SourceTemplateControl.getComponents"
13                                                         ClientSide.OnLoading="BaculaConfig.loader_start(sender.options.ID);"
14                                                         ClientSide.OnComplete="BaculaConfig.set_config_items(sender.options.ID);"
15                                                         ClientSide.OnSuccess="$('#<%=$this->HostBox->ClientID%>').addClass('host_selected');"
16                                                         Attributes.onclick="return BaculaConfig.unset_config_items(this.id);"
17                                                         CssClass="bold"
18                                                         Text="<%=$this->DataItem%>"
19                                                 />
20                                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/ajax-loader-arrows.gif" alt="" style="display: none" />
21                                                 </td>
22                                                 <td><%[ IP Address/Hostname: ]%><span class="bold"> <%=$this->getParent()->getParent()->config[$this->DataItem]['address']%></span></td>
23                                                 <td><%[ Port: ]%><span class="bold"> <%=$this->getParent()->getParent()->config[$this->DataItem]['port']%></span>
24                                                 </td>
25                                                 <td class="right"><com:TActiveLinkButton
26                                                         ID="RemoveHost"
27                                                         OnCommand="SourceTemplateControl.removeHost"
28                                                         CssClass="action_link"
29                                                 >
30                                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_err.png" alt="<%[ Remove ]%>" /> <%[ Remove ]%>
31                                                 </com:TActiveLinkButton>
32                                                 </td>
33
34                                         </tr>
35                                 </table>
36                                 <com:Application.Web.Portlets.BaculaConfigComponents />
37                         </com:TPanel>
38                 </prop:ItemTemplate>
39         </com:TActiveRepeater>
40 </div>