{if $action == ''}
<!DOCTYPE html>
<html lang="de">
   <head>
     <title>JU & MI Passwort</title>
      <link rel="stylesheet" href="../jquery/jquery-ui.css">
      <link rel="stylesheet" href="../jquery/jquery.timepicker.min.css">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link href="../bootstrap/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
      <script src="../bootstrap/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
      <!-- nochmals bootstrap.css mit Erweiterungen vom Dashboard -->
      <link href="css/styles.css" rel="stylesheet" />
      <!-- icons in nav-->
      <script src="js/all.js" crossorigin="anonymous"></script>
      <script src="../jquery/jquery-3.4.1.min.js"></script>
      <link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
      <script src="../js/lottie_bodymovin/lottie.min.js"></script>
      <style type="text/css">
         .lottie-container {
         justify-content: center;
         top:  40px;
         left:  0;
         right:  0;
         bottom:  20px;
         height: 180px;
         pointer-events: none;
         }
      </style>
   </head>
   <body>
      <div id="navtop"></div>
      {literal}
      <script>
        $(function() {
         $("#password_new1").focus();
        });

         $(function(){
           $("#footer").load("footer.php");
         });
      </script>
      {/literal}
      <div id="layoutAuthentication">
         <div id="layoutAuthentication_content">
            <main>
            <!--Anwendung-->
            <script src="../js/components/admin_login.js"></script>
               <div class="lottie-container" id="lottie-container"></div>
               <div class="container">
                  <div class="row justify-content-center">
                     <div class="col-lg-5">
                        <div class="card shadow-lg border-0 rounded-lg mt-5">
                           <div class="card-header">
                              <h3 class="text-center font-weight-light my-4">Passwort vergeben</h3>
                           </div>
                           <div class="card-body">
                           <div class="row">
                             <div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
                                <div class="col-12 col-md-6">Neues Passwort:</div>
                                <div class="col-12 col-md-6">
                                    <input type="password" id="password_new1"  class="form-control rounded-right" required onkeydown="keysave(this)">
                                    <input type="hidden" id="code" value="{$code}">
                                    <input type="hidden" id="uid" value="{$uid}">
                                </div>
                             </div>
                             <div class="row mt-0 mt-sm-4 mb-0 mb-sm-4">
                                <div class="col-12 col-md-6">Passwortwiederholung:</div>
                                <div class="col-12 col-md-6">
                                    <input type="password" id="password_new2"  class="form-control rounded-right" required onkeydown="keysave(this)">
                                </div>
                             </div>
                           </div>
                           </div>
                           <input type='submit' class="btn btn-primary" onclick="resetpasswort();" name='senden' value="Neues Passwort">
                        </div>
                        <div id="msg"></div>
                        {if $error == 1}
                          <div id="msg1">{$error_text}</div>
                        {/if}
                     </div>
                  </div>
               </div>
              <div class="lottie-container" id="lottie-container"></div>
               <script type="text/javascript">
                  var item = bodymovin.loadAnimation({
                  wrapper: document.getElementById('lottie-container'),
                  animType: 'svg',
                  loop: true,
                  autoplay: true,
                  path: '../media/data.json'
                  });
               </script>
            </main>
			      {literal}
                  <script type="text/javascript">
			         function keysave(ele) {
			         if(event.key === 'Enter') {
			         resetpasswort();
			         }
			         }
			       </script>
			      {/literal}
         </div>
         <div id="layoutAuthentication_footer">
            <!-- footer -->
            <div id="footer"></div>
         </div>
      </div>
   </body>
</html>
{/if}
