<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, user-scalable=no" />
    <title>OfficeJS 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="listbox-widget-table" type="text/x-handlebars-template">
      <form><div class="center">
        <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}}">
            <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></form>
      <table class="ui-responsive ui-body-c ui-table-inset custom-force-list">
        <thead class="ui-bar-inherit">
          <tr>
            {{#each column_list}}
              <th>{{this}}</th>
            {{/each}}
          </tr>
        </thead>
        {{> listbox-widget-table-partial}}
        <tfoot class="ui-bar-inherit"></tfoot>
      </table>
    </script>

    <script id="listbox-widget-table-partial" type="text/x-handlebars-template">
      <tbody>
      {{#each row_list}}
        <tr>
        {{#each cell_list}}
          <td><a class="ui-link" href="{{href}}">{{value}}</a></td>
        {{/each}}
        </tr>
      {{/each}}
      </tbody>
    </script>

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

    </head>
  <body>
    <div class="custom-grid-wrap">
      <div class="custom-grid ui-corner-all ui-body-inherit ui-shadow ui-corner-all">
        <div class="ui-body-c ui-corner-all"></div>
      </div>
    </div>
  </body>
</html>