<div class="modal dark fade" id="monitorStates" role="dialog" aria-labelledby="monitorStatesLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <form class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" id="monitorStatesLabel"><i class="fa fa-align-right"></i> &nbsp; <%-lang['Monitor States']%></h4>
      </div>
      <div class="modal-body">
          <div class="form-group">
              <label>
                  <div><select class="form-control" id="monitorStatesSelector">
                      <option value=""><%-lang['Add New']%></option>
                      <optgroup label="<%-lang['Saved Presets']%>"></optgroup>
                    </select></div>
              </label>
          </div>
          <div class="form-group-group green">
              <h4><%- lang['Preset'] %>
                <div class="pull-right">
                    <a class="btn btn-danger btn-xs delete" style="display:none">&nbsp;<i class="fa fa-trash-o"></i>&nbsp;</a>
                </div>
              </h4>
              <div class="form-group">
                <label><div><span><%-lang['Name']%></span></div>
                    <div><input class="form-control" name="name"></div>
                </label>
              </div>
          </div>
        <div class="form-group-group blue">
            <h4><%- lang['Monitors'] %>
              <div class="pull-right">
                  <a class="btn btn-success btn-xs add-monitor">&nbsp;<i class="fa fa-plus"></i>&nbsp;</a>
              </div>
            </h4>
            <div id="monitorStatesMonitors"></div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><i class="fa fa-times"></i> <%-lang.Close%></button>
        <button type="button" class="btn btn-default" data-toggle="modal" data-target="#schedules"><i class="fa fa-clock-o"></i> <%-lang.Schedules%></button>
        <button type="submit" class="btn btn-success"><i class="fa fa-check"></i> <%-lang.Save%></button>
      </div>
    </form>
  </div>
</div>
<script src="<%-window.libURL%>libs/js/dash2.monitorStates.js"></script>
