<!DOCTYPE html>
<html lang="en">
<head>
  <title>Modbus simulator</title>
  <link rel="icon" type="image/x-icon" href="/favicon.ico">
  <link rel="apple-touch-icon" href="/apple60.png">
  <link rel="apple-touch-icon" sizes="76x76" href="/apple76.png">
  <link rel="apple-touch-icon" sizes="120x120" href="/apple120.png">
  <link rel="apple-touch-icon" sizes="152x152" href="/apple152.png">
  <link rel="stylesheet" type="text/css" href="/pymodbus.css">
  <!--REFRESH-->
</head>
<body>
  <h1><center>Registers</center></h1>
  <table width="80%" class="listbox">
    <thead>
      <tr>
        <th width="10%">Register</th>
        <th width="10%">Type</th>
        <th width="10%">Write</th>
        <th width="10%">Action</th>
        <th width="10%">Value</th>
        <th width="10%"># read</th>
        <th width="10%"># write</th>
      </tr>
    </thead>
    <tbody>
      <!--REGISTER_ROWS-->
    </tbody>
    <tfoot>
      <tr>
        <th colspan="7"><!--REGISTER_FOOT--></th>
      </tr>
    </tfoot>
  </table>
  <fieldset class="tools_fieldset" width="40%">
    <legend>Filter registers</legend>
    <form action="/api/registers" method="get">
      <table>
        <tr>
          <td><label>Start/end</label></td>
          <td>
            <input type="number" name="range_start" />
            <input type="number" name="range_stop" />
          </td>
        </tr>
        <tr>
          <td><label>Type</label></td>
          <td>
            <select name="type">
              <option value=-1 selected>Any</option>
              <!--REGISTER_TYPES-->
            </select>
          </td>
        </tr>
        <tr>
          <td><label>Action</label></td>
          <td>
            <select name="action">
              <option value=-1 selected>Any</option>
              <!--REGISTER_ACTIONS-->
            </select>
          </td>
        </tr>
        <tr>
          <td><label>Writeable</label></td>
          <td><input type="checkbox" name="writeable" /><br></td>
        </tr>
      </table>
      <input type="submit" value="Add" name="submit" />
      <input type="submit" value="Clear" name="submit" />
    </form>
  </fieldset>
  <fieldset class="tools_fieldset" width="20%">
    <legend>Set</legend>
    <form action="/api/registers" method="get">
      <table>
        <tr>
          <td><label>Register</label></td>
          <td><input type="number" name="register" /></td>
        </tr>
        <tr>
          <td><label>Value</label></td>
          <td><input type="text" name="value" /></td>
        </tr>

      </table>
      <input type="submit" value="Set" name="submit" />
    </form>
  </fieldset><br>
  <p>Result of last command: <!--RESULT--></p>
</body>
</html>
