{if $action == ''}
<!doctype html>
<html lang="de">
   <head>
      <meta charset="utf-8">
      <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>
      <link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
      <script src="../jquery/jquery-3.4.1.min.js"></script>
      <!-- jQuery UI CSS
         <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
         -->
      <script src="../jquery/jquery-ui.js"></script>
      <style>
         .btn-group > .btn{
         margin-bottom:20px;
         border-radius:20px !important;
         }
      </style>
      <style type="text/css">
         .ui-sortable tr {
         cursor:pointer;
         }
         .ui-sortable tr:hover {
         background:rgba(244,251,17,0.45);
         }
      </style>
   </head>
   <!--<body onload="if(document.erfassen)document.erfassen.{$umfrageerf_focus}.focus();return false;">-->
   <body class="sb-nav-fixed">
         <main>
            <!--Anwendung-->
            <script src="../js/components/admin_rollen.js"></script>
            <p class="text-center"><b>{$rollenzuordnung_bezeichnung}</b></p>
            <div class="container-fluid">
               <div class="card">
                  <div class="card-header">
                     <i class="fas fa-table me-1"></i>
                     Nicht zugewiesene Rechte
                  </div>
                  <div class="card-body">
                        <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
                          <div class="row mt-0 mb-0">
                             <div class="d-none col-md-10 d-md-block"><b>Recht</b></div>
                             <div class="d-none col-md-2 d-md-block"><b>Aktion</b></div>
                          </div>
                          {section name=table_data loop=$table_data}
                          <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
                             <div class="col-10 col-md-10">{$table_data[table_data].headline}</div>
                             <div class="col-2 col-md-2"><a class="btn btn-success btn-rounded btn-icon btn-sm" onclick="erfzuordnung('{$table_data[table_data].meid}|{$rollen_edit}')"><i class="fa-solid fa-plus" style="width:18px;"></i></a></div>
                          </div>
                          {/section}
                        </div>
                  </div>
               </div>
               <br>
               <div class="card">
                  <div class="card-header">
                     <i class="fas fa-table me-1"></i>
                     Zugewiesene Rechte
                  </div>
                  <div class="card-body">
                        <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
                          <div class="row mt-0 mb-0">
                             <div class="d-none col-md-10 d-md-block"><b>Recht</b></div>
                             <div class="d-none col-md-2 d-md-block"><b>Aktion</b></div>
                          </div>
                          {section name=table_data1 loop=$table_data1}
                          <div class="row mt-0 mt-sm-1 mb-0 mb-sm-1">
                             <div class="col-10 col-md-10">{$table_data1[table_data1].headline}</div>
                             <div class="col-2 col-md-2"><a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delzuordnung('{$table_data1[table_data1].meid}|{$rollen_edit}')"><i class="fa-solid fa-minus" style="width:18px;"></i></a></div>
                          </div>
                          {/section}
                        </div>
                  </div>
               </div>
               <div id="msg"></div>
         </main>
      </div>
      <script src="../bootstrap/node_modules/move-js/move.js"></script>
      <link href="../bootstrap/dist/scrollable-tabs.min.css" rel="stylesheet">
      <script src="../bootstrap/dist/scrollable-tabs.min.js"></script>
   </body>
</html>
{/if}
