<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, user-scalable=no" />
    <title>Monitoring Widget Listbox</title>

    <!-- renderjs -->
    <script src="rsvp.js" type="text/javascript"></script>
    <script src="renderjs.js" type="text/javascript"></script>
    <script src="handlebars.js"></script>

    <script id="overview-widget-listview" type="text/x-handlebars-template">
      <div class="ui-listview-container">
        <table class="ui-responsive ui-body-c ui-table-inset instance-overview">
          <thead class="ui-bar-inherit">
            <tr>
              {{#each column_list}}
                <th>{{title}}</th>
              {{/each}}
            </tr>
          </thead>
          <tbody>
          {{#each row_list}}
            <tr rel="{{index}}">
              <td class="ui-text-center"><a class="ui-link" href="{{href}}">
                <span class="label label-{{status}}">{{status}}</span></a></td>
              <td><a class="ui-link" href="{{href}}">{{value}}</a></td>
              <td><a class="ui-link" href="{{href}}">{{hosting_value}}</a></td>
              <td><a class="ui-link" href="{{href}}">{{date}}</a></td>
            </tr>
          {{/each}}
          </tbody>
          <tfoot class="ui-bar-inherit"></tfoot>
        </table>
      </div>
    </script>

    <script id="header-widget-overview" type="text/x-handlebars-template">
      <div class="header-form-overview">
        <form class='search'>
          <div class="ui-grid-a ui-responsive">
            <div class="ui-block-a">
              <div class="ui-field-contain">
                <div class="ui-input-text ui-body-{{widget_theme}} ui-corner-all ui-shadow-inset ui-input-has-clear {{widget_status_class}}" style="border-color: #D6D8E0;">
                  <input type="text" data-enhanced="true" value="{{search}}" name="search" {{widget_status_attribute}} />
                  <div class="ui-btn ui-input-clear ui-input-btn ui-corner-all ui-icon-search ui-btn-icon-notext" data-i18n="[node]header-submit">
                    Submit<input data-enhanced="true" type="submit" data-i18n="[value]header-submit" value="Submit" {{widget_status_attribute}} />
                  </div>
                </div>
              </div>
            </div>
            <div class="ui-block-b">
              <div class="ui-field-contain">
                <div data-role="controlgroup" data-type="horizontal">
                  <a href="#" class="ui-shadow ui-btn ui-corner-all listview-refresh"><i class="fa fa-refresh"></i></a>
                  <a href="#" class="ui-shadow ui-btn ui-corner-all listview-filter"><i class="fa fa-cog"></i></a>
                </div>
              </div>
            </div>
          </div>
        </form>
      </div>
    </script>

    <!-- custom script -->
    <script src="gadget_monitoring_widget_instance_list.js" type="text/javascript"></script>

    </head>
  <body>
    <div data-gadget-url="gadget_monitoring_jio.html" data-gadget-scope="jio_gadget" data-gadget-sandbox="public"></div>
    <div class="overview-filter-panel">
      <form class='filter'>
      	<h2>Configure Displayed Result</h2>
      	<fieldset data-role="controlgroup">
          <h3>Status contain:</h3>
          <input type="checkbox" id="monitor-promise-success" name="monitor-filter-status" value="success" checked="checked">
          <label for="monitor-promise-success">Success</label>
          <input type="checkbox" id="monitor-promise-error" name="monitor-filter-status" value="error" checked="checked">
          <label for="monitor-promise-error">Error</label>
          <input type="checkbox" id="monitor-promise-warning" name="monitor-filter-status" value="warning" checked="checked">
          <label for="monitor-promise-warning">Warning</label>
        </fieldset>
        <div class="ui-grid-a">
          <input data-enhanced="true" type="submit" data-rel="close" class="ui-btn ui-shadow ui-corner-all ui-btn-inline ui-mini pvalidate" value="Validate" />
	      </div>
      </form>
    </div>
    
    <div class="ui-grid-solo ui-responsive custom-listbox">
      <div class="ui-panel-overview" style="min-height: 450px;">
        <div class="overview-header">
          <div class='content-title ui-instance-title'>
            <div class="overview-title">
              <i class="fa fa-desktop"></i><span>Software Instances List</span>
            </div>
            <div class="commands">
            </div>
          </div>
        </div>
        <div class="overview-content">
        </div>
      </div>
    </div>
  </body>
</html>
