<!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, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="#" />
    <title>RestAPI - Infosys (InfoWS v3)</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">

    <!-- Bootstrap core JavaScript -->
    <script src="/static/js/jquery-3.5.1.slim.min.js"></script>
    <script src="/static/js/popper.min.js"></script>
    <script src="/static/js/bootstrap.bundle.min.js"></script>
</head>

<body>
    {% include 'header/header.html' %}
 
    <div class="row" style="padding-top: 60px;margin: auto;width: 99%;height:calc(100vh - 20px);">
        <div style="margin: auto;width: 99%; height:99%;border:1px solid rgb(50, 97, 205);padding:1%;overflow:auto;white-space: nowrap;">
            {% if running %}
            <div class="container">
                <form class="form-inline">
                    <label for="minutes"><b>Stopiraj minuta:</b></label>
                    <select class="form-select form-select-lg ml-2 mr-2" aria-label=".form-select-lg" name="minutes" id="minutes">
                      <option value="" selected>Odaberite minute</option>
                      <option value="5">5 min</option>
                      <option value="10">10 min</option>
                      <option value="15">15 min</option>
                      <option value="30">30 min</option>
                      <option value="45">45 min</option>
                      <option value="60">60 min</option>
                      <option value="90">90 min</option>
                      <option value="120">120 min</option>
                    </select>
                  <button type="submit" class="btn btn-primary ml-2 mr-2" name="action" value="stop">Stop</button>
                </form>
                <p>Stopiranje prijema zahteva na odredjeno vreme.</p>
            </div>
            {% else %}
            <div class="container">
                <form class="form-inline">
                  <div class="form-group">
                    <label for="minutes"><b>Prijem zahteva je stopiran.</b></label>
                  </div>
                  <button type="submit" class="btn btn-primary ml-2 mr-2" name="action" value="start">Start</button>
                </form>
                <p>Startuj prijem zahteva.</p>
            </div>
            {% endif %}
        </div>
    </div>

</body>

</html>