]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/BaculaConfigComponents.tpl
baculum: Fix redundant loading users portlet
[bacula/bacula] / gui / baculum / protected / Web / Portlets / BaculaConfigComponents.tpl
1 <div class="config_components" style="display: none">
2         <com:TActiveRepeater ID="RepeaterComponents" OnItemCreated="createComponentListElement">
3                 <prop:ItemTemplate>
4                         <com:TPanel>
5                                 <table class="component">
6                                         <tr>
7                                                 <td onmousedown="(event.target||event.srcElement).id != '<%=$this->Component->ClientID%>' ? $('#<%=$this->Component->ClientID%>').trigger('click') : '';" style="width: 900px" ><com:TActiveLinkButton
8                                                         ID="Component"
9                                                         ActiveControl.EnableUpdate="false"
10                                                         OnCommand="SourceTemplateControl.getResources"
11                                                         ClientSide.OnLoading="BaculaConfig.loader_start(sender.options.ID);"
12                                                         ClientSide.OnComplete="BaculaConfig.set_config_items(sender.options.ID);"
13                                                         Attributes.onclick="return BaculaConfig.unset_config_items(this.id);"
14                                                         Text="<strong><%=$this->DataItem['label']%></strong>: <%=$this->DataItem['component_name']%>"
15                                                 />
16                                                         <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/ajax-loader-arrows.gif" alt="" style="display: none" />
17                                                 </td>
18                                                 <td class="right">
19                                                         <a href="javascript:void(0)" onmousedown="openElementOnCursor(event, '<%=$this->ResourcesMenu->ClientID%>_new_resource', -80, 20);"><img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/add.png" alt="<%[ Add ]%>" /> <%[ Add ]%></a>
20                                                         <com:Application.Web.Portlets.NewResourceMenu ID="ResourcesMenu" />
21                                                 </td>
22                                         </tr>
23                                 </table>
24                                 <com:Application.Web.Portlets.BaculaConfigResources />
25                         </com:TPanel>
26                 </prop:ItemTemplate>
27         </com:TActiveRepeater>
28 </div>
29         <com:TActiveLabel ID="ErrorMsg" Display="None" />
30 <div class="config_directives new_resource" rel="<%=$this->getHost()%>new_resource" style="display: none">
31         <h2 rel="<%[ Add new %resource_type resource on %component_name (%component_type) ]%>"></h2>
32         <hr />
33         <com:Application.Web.Portlets.BaculaConfigDirectives ID="NewResource" LoadValues="<%=false%>" />
34 </div>