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