Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / utils / tab-datatable / table.hbs @ 30584056

History | View | Annotate | Download (3.05 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2015, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16

    
17
<div id="{{dataTableId}}Container">
18
  {{! TODO: show also refresh and search box when {info: true} is used in panels}}
19
  {{#if conf.select}}
20
  <div class="row">
21
    <div class="large-8 small-2 columns">
22
      <a id="refresh_button_{{dataTableId}}" href="#" class="button small radius secondary"> <i class="fa fa-refresh" /></a>
23
    </div>
24
    <div class="large-4 small-10 columns">
25
      <input id="{{dataTableId}}_search" class="search" type="search" placeholder="{{tr "Search"}}"/>
26
    </div>
27
  </div>
28
  {{/if}}
29
  <table id="{{dataTableId}}" class="hover">
30
    <thead>
31
      <tr>
32
        <th class="check">
33
          <input type="checkbox" class="check_all" value=""/>
34
        </th>
35
        {{#each columns}}
36
        <th>{{this}}</th>
37
        {{/each}}
38
      </tr>
39
    </thead>
40
    <tbody></tbody>
41
  </table>
42
  {{#if conf.select}}
43
  <div class="row">
44
    <div class="large-12 columns" id="selected_ids_row_{{dataTableId}}">
45
      <label for="selected_resource_id_{{dataTableId}}" id="select_resource_{{dataTableId}}" class="radius secondary label">{{selectOptions.select_resource}}</label>
46
      <span id="selected_resource_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.you_selected}}</span>
47
      <span id="select_resource_multiple_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.select_resource_multiple}}</span>
48
      <span id="selected_resource_multiple_{{dataTableId}}" class="radius secondary label" style="display: none;">{{selectOptions.you_selected_multiple}}</span>
49
      <span id="selected_resource_name_{{dataTableId}}" class="radius label" type="text"></span>
50
      <input id="selected_resource_id_{{dataTableId}}" type="text" style="visibility: hidden; width:0px !important; height:0px !important;padding: 0px !important;margin: 0px !important;display: inline;"/>
51
    </div>
52
  </div>
53
  {{/if}}
54
</div>