<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="BeieliPi - Bienenstock-Monitoring">
    <meta name="author" content="Joerg Lehmann, nbit Informatik GmbH">
    <link rel="icon" href="/static/images/favicon.ico">
    <title>BeieliPi - Upload der Konfiguration</title>
    
    <link href="/static/dist/toolkit.min.css" rel="stylesheet">
    <link href="/static/css/customize.css" rel="stylesheet">

    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/dist/toolkit.min.js"></script>
  </head>

  <body>
    <div class="container">
      <div id="banner">
      </div>
      <nav class="navbar nav-pills navbar-default">
        <div class="container-fluid">
          <div class="text-center">
            <h3>BeieliPi Upload Konfiguration</h3>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
            </ul>
          </div>
        </div>
      </nav>
      <div class="jumbotron container-fluid myjumbotron">
        <div class="alert alert-danger">
          <strong>ACHTUNG</strong> - diese Operation ist potentiell gef&auml;hrlich! Wenn die Konfiguration erfolgreich hochgeladen wurde muss der BeieliPi neu gestartet werden. Am einfachsten geht das mit der URL http://beielipi.local/reboot_beielipi.
        </div>
        % if message != "":
        <div class="alert alert-{{ level }}">
          {{ message }}
        </div>
        % end
        <form action="/upload_config" method="post">
            <textarea name="config_yaml" class="form-control" rows="30"></textarea>
            <br />
            <input value="Update Konfiguration" type="submit" />
        </form>
      </div>
    </div> 
  </body>
</html>
