]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/DirectiveFileSet.tpl
baculum: Add listbox control and use it for base and device directives
[bacula/bacula] / gui / baculum / protected / Web / Portlets / DirectiveFileSet.tpl
1 <fieldset class="directive">
2         <legend><%=$this->getDirectiveName()%></legend>
3         <a href="javascript:void(0)" onmousedown="openElementOnCursor(event, '<%=$this->FileSetMenu->ClientID%>_new_fileset', 0, 20);"><img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/add.png" alt="<%[ Add ]%>" /> <%[ Add ]%></a>
4         <com:Application.Web.Portlets.NewFileSetMenu ID="FileSetMenu" />
5 <com:TActiveRepeater ID="RepeaterFileSetOptions" OnItemDataBound="createFileSetOptions">
6         <prop:HeaderTemplate>
7         <fieldset class="directive">
8                 <legend><%[ Options ]%></legend>
9         </prop:HeaderTemplate>
10         <prop:ItemTemplate>
11                 <%=($this->getItemIndex() % 31 === 0 ? '<h3 class="options">Options #' . (($this->getItemIndex()/31)+1) . '</h3><hr />' : '')%>
12                 <com:Application.Web.Portlets.BConditional BCondition="<%#($this->DataItem['field_type'] === 'ComboBox')%>">
13                         <prop:TrueTemplate>
14                                 <com:Application.Web.Portlets.DirectiveComboBox />
15                         </prop:TrueTemplate>
16                 </com:Application.Web.Portlets.BConditional>
17                 <com:Application.Web.Portlets.BConditional BCondition="<%#($this->DataItem['field_type'] === 'TextBox')%>">
18                         <prop:TrueTemplate>
19                                 <com:Application.Web.Portlets.DirectiveText />
20                         </prop:TrueTemplate>
21                 </com:Application.Web.Portlets.BConditional>
22                 <com:Application.Web.Portlets.BConditional BCondition="<%#($this->DataItem['field_type'] === 'CheckBox')%>">
23                         <prop:TrueTemplate>
24                                 <com:Application.Web.Portlets.DirectiveBoolean />
25                         </prop:TrueTemplate>
26                 </com:Application.Web.Portlets.BConditional>
27                 <com:Application.Web.Portlets.BConditional BCondition="<%#($this->DataItem['field_type'] === 'Integer')%>">
28                         <prop:TrueTemplate>
29                                 <com:Application.Web.Portlets.DirectiveInteger />
30                         </prop:TrueTemplate>
31                 </com:Application.Web.Portlets.BConditional>
32                 <com:Application.Web.Portlets.BConditional BCondition="<%#($this->DataItem['field_type'] === 'ListBox')%>">
33                         <prop:TrueTemplate>
34                                 <com:Application.Web.Portlets.DirectiveListBox />
35                         </prop:TrueTemplate>
36                 </com:Application.Web.Portlets.BConditional>
37         </prop:ItemTemplate>
38         <prop:FooterTemplate>
39         </fieldset>
40         </prop:FooterTemplate>
41 </com:TActiveRepeater>
42 <com:TActiveRepeater ID="RepeaterFileSetInclude" OnItemCreated="createFileSetIncExcElement">
43         <prop:HeaderTemplate>
44         <fieldset class="directive include_file">
45                 <legend><%[ Files ]%></legend>
46         </prop:HeaderTemplate>
47         <prop:ItemTemplate>
48                         <div class="directive_field">
49                                 <com:Application.Web.Portlets.DirectiveText />
50                         </div>
51         </prop:ItemTemplate>
52         <prop:FooterTemplate>
53         </fieldset>
54         </prop:FooterTemplate>
55 </com:TActiveRepeater>
56 <com:TActiveRepeater ID="RepeaterFileSetExclude" OnItemCreated="createFileSetIncExcElement">
57         <prop:HeaderTemplate>
58         <fieldset class="directive">
59                 <legend><%[ Files ]%></legend>
60         </prop:HeaderTemplate>
61         <prop:ItemTemplate>
62                         <div class="directive_field">
63                                 <com:Application.Web.Portlets.DirectiveText />
64                         </div>
65         </prop:ItemTemplate>
66         <prop:FooterTemplate>
67         </fieldset>
68         </prop:FooterTemplate>
69 </com:TActiveRepeater>
70 </fieldset>