]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/protected/Web/Portlets/DirectiveFileSet.tpl
548fbb0c8c298869b650d5bf72d4601dffdd21eb
[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         </prop:ItemTemplate>
33         <prop:FooterTemplate>
34         </fieldset>
35         </prop:FooterTemplate>
36 </com:TActiveRepeater>
37 <com:TActiveRepeater ID="RepeaterFileSetInclude" OnItemCreated="createFileSetIncExcElement">
38         <prop:HeaderTemplate>
39         <fieldset class="directive include_file">
40                 <legend><%[ Files ]%></legend>
41         </prop:HeaderTemplate>
42         <prop:ItemTemplate>
43                         <div class="directive_field">
44                                 <com:Application.Web.Portlets.DirectiveText />
45                         </div>
46         </prop:ItemTemplate>
47         <prop:FooterTemplate>
48         </fieldset>
49         </prop:FooterTemplate>
50 </com:TActiveRepeater>
51 <com:TActiveRepeater ID="RepeaterFileSetExclude" OnItemCreated="createFileSetIncExcElement">
52         <prop:HeaderTemplate>
53         <fieldset class="directive">
54                 <legend><%[ Files ]%></legend>
55         </prop:HeaderTemplate>
56         <prop:ItemTemplate>
57                         <div class="directive_field">
58                                 <com:Application.Web.Portlets.DirectiveText />
59                         </div>
60         </prop:ItemTemplate>
61         <prop:FooterTemplate>
62         </fieldset>
63         </prop:FooterTemplate>
64 </com:TActiveRepeater>
65 </fieldset>