<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/header.php');
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . '/Auth/nav.php');
?>
<form name="create" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<div class="container">
  <input type="hidden" name="uuid" value="<?php echo createUUID(); ?>">
  <input type="hidden" name="site" value="<?php echo $site; ?>">

  <div class="card border-primary mb-3">
    <div class="card-header">
      <div class="row">
        <div class="form-group col-sm-1">
        </div>
        <div class="form-group col-sm-7">
          <?php echo $headline; ?>
        </div>
        <div class="form-group col-sm-4">
          <?php echo $linkNew; ?>
        </div>
      </div>
    </div>
    <div class="card-body">
  
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="firma">Firma </label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="firma" class="form-control" id="firma" value="" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="email">Email (Login)</label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="email" class="form-control" id="email" value="" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="name">Name </label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="name" class="form-control" id="name" value="" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>

      <div class="row">
        <div class="form-group col-sm-2">
          <label for="adresse">Adresse </label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="adresse" class="form-control" id="adresse" value="" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="tel">Telefon </label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="tel" class="form-control" id="tel" value="" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="password">Passwort </label>
        </div>
        <div class="form-group col-sm-4">
          <input type="text" name="password" class="form-control" id="password" value="<?php echo $client->generatePw(8); ?>" required>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="zugehoerigkeit">Zugehörigkeit </label>
        </div>
        <div class="form-group col-sm-4">
          <select name="zugehoerigkeit" id="zugehoerigkeit" class="form-control" required>
            <?php
            foreach ($dropdownZugehoerigkeit as $key => $value) {
              echo '<option value="' . $value . '">' . $key . '</option>';
            }
            ?>
          </select>
        </div>
        <div class="form-group col-sm-6">
        </div>
      </div>
      
      <div class="row">
        <div class="form-group col-sm-2">
          <label for="uebergreifende_notizen">Übergreifende Notizen </label>
        </div>
        <div class="form-group col-sm-8">
          <textarea name="uebergreifende_notizen" rows="4" id="uebergreifende_notizen" class="form-control"></textarea>
        </div>
        <div class="form-group col-sm-2">
        </div>
      </div>
      
    </div>
  </div>
  
  <?php 
    include ($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/forms/footer.create.php');
  ?>
  
</div>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
<?php
include($_SERVER['DOCUMENT_ROOT'] . HOME_DIR . TEMPLATE_DIR . '/footer.php');
?>


</body>
</html>

