commit 0b434236419aa955a0291104593e12ac1c78cad3
Author: Vojtěch Danišík <32537562+danisik@users.noreply.github.com>
Date:   Fri Apr 17 09:58:33 2020 +0200

    re #7871 Added edit formula for every assembly.

diff --git a/src/main/java/vldc/aswi/web/controller/AssemblyController.java b/src/main/java/vldc/aswi/web/controller/AssemblyController.java
index e1d0bc5e..0a854e53 100644
--- a/src/main/java/vldc/aswi/web/controller/AssemblyController.java
+++ b/src/main/java/vldc/aswi/web/controller/AssemblyController.java
@@ -56,4 +56,18 @@ System.out.println(assemblyID);
 
         return modelAndView;
     }
+
+    @GetMapping("/assembly_edit")
+    public ModelAndView assemblyEditIndex(@Valid @ModelAttribute("assemblyID") String id) {
+        ModelAndView modelAndView = new ModelAndView("assembly_edit");
+
+        ModelMap modelMap = modelAndView.getModelMap();
+
+        Assembly assembly = assemblyManager.getAssemblyById(Long.parseLong(id));
+
+        modelMap.addAttribute("assemblies", assemblyManager.getAssemblies());
+        modelMap.addAttribute("assembly", assembly);
+
+        return modelAndView;
+    }
 }
diff --git a/src/main/webapp/WEB-INF/templates/assembly_edit.html b/src/main/webapp/WEB-INF/templates/assembly_edit.html
new file mode 100644
index 00000000..046ad871
--- /dev/null
+++ b/src/main/webapp/WEB-INF/templates/assembly_edit.html
@@ -0,0 +1,429 @@
+<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+    <meta name="description" content="">
+    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
+    <meta name="generator" content="Jekyll v3.8.6">
+    <title>Album example · Bootstrap</title>
+    <link rel="canonical" href="https://getbootstrap.com/docs/4.4/examples/album/">
+
+    <!-- Bootstrap core CSS -->
+<link href="css/bootstrap.min.css" rel="stylesheet">
+
+<link href="css/bootstrap-select.min.css" rel="stylesheet">
+<link href="css/fontawesome.min.css" rel="stylesheet">
+<link href="css/style.css" rel="stylesheet">
+
+<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
+<script type="text/javascript" src="js/jquery.js"></script>
+<script type="text/javascript" src="js/bootstrap.min.js"></script>
+<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
+</head>
+<body>
+<div id="test"></div>
+<main role="main">
+
+  <div class="container">
+    <h1>
+      Editace - Studenti - studijní programy
+    </h1>
+  </div>
+
+<form>
+  <div class="container box">
+    <div class="col-md-12">
+    <div class="form-group row">
+      <label for="name" class="col-sm-2 col-form-label">Název sestavy:</label>
+      <div class="col-sm-10">
+        <input type="text" class="form-control" id="name" th:value="${assembly.name}">
+      </div>
+    </div>
+    <div class="form-group row">
+      <label for="sql_query" class="col-sm-2 col-form-label">SQL dotaz:</label>
+      <div class="col-sm-10">
+        <textarea class="form-control" id="sql_query" rows="6" th:text="${assembly.SQLQuery}"></textarea>
+      </div>
+    </div>
+    <div class="form-group row">
+      <label class="form-check-label col-sm-2" for="defaultCheck1">Veřejný:</label>
+      <div class="col-sm-10">
+        <div class="form-check">
+          <input th:if="${assembly.isPublic == 0}" class="form-check-input" type="checkbox" value="" id="defaultCheck1">
+          <input th:unless="${assembly.isPublic == 0}" class="form-check-input" type="checkbox" value="" id="defaultCheck1" checked="true">
+        </div>
+      </div>
+    </div>
+</div>
+  </div>
+</div>
+
+  <div class="container box">
+    <div class="col-md-12">
+    <div class="box-header">
+      <h3 class="box-title">Parametry</h3>
+      <button type="button" class="btn btn-success"><i class="fas fa-plus"></i> Přidat parametr</button>
+    </div>
+
+    <div class="panel-group" id="accordion">
+      <div class="panel panel-default">
+
+        <div class="panel-heading">
+          <a data-toggle="collapse" data-parent="#accordion" href="#collapse1">
+            <span class="panel-title">
+                <i class="fas fa-angle-right"></i> Akademický rok
+            </span>
+          </a>
+
+          <span class="align-right collapse-actions">
+            <span class="action-padding input-action-margin-collapse sort-icon">
+              <i class="fas fa-sort"></i>
+            </span>
+            <span class="action-padding action-button input-action-margin-collapse">
+              <a href=# class="action-link far fa-trash-alt"></a>
+            </span>
+          </span>
+
+        </div>
+        <div id="collapse1" class="panel-collapse collapse in">
+          <div class="panel-body">
+            <div class="form-group row">
+              <label for="name" class="col-sm-2 col-form-label">Název:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="name" class="col-md-2 col-form-label">V&nbsp;SQL:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Typ:</label>
+              <div class="col-sm-10">
+                <select class="form-control" id="exampleFormControlSelect1">
+                  <option>Text</option>
+                  <option>Datum</option>
+                  <option>Výčet</option>
+                </select>
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Sloupec:</label>
+              <div class="col-sm-10">
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
+                  <label class="form-check-label" for="inlineCheckbox1">Sloupec</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option2">
+                  <label class="form-check-label" for="inlineCheckbox2">Řádek</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option3">
+                  <label class="form-check-label" for="inlineCheckbox3">Hodnota</label>
+                </div>
+              </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Funkce:</label>
+                <div class="col-sm-10">
+                  <select class="selectpicker" multiple data-live-search="true">
+                    <option>SUM</option>
+                    <option>AVG</option>
+                    <option>MAX</option>
+                    <option>MIN</option>
+                  </select>
+                </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Operátory:</label>
+                <div class="col-sm-10">
+                  <select class="selectpicker" multiple data-live-search="true">
+                    <option>LIKE</option>
+                    <option>BETWEEN</option>
+                    <option>EQUAL</option>
+                    <option>LESS</option>
+                  </select>
+                </div>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="panel panel-default">
+        <div class="panel-heading">
+          <span class="panel-title">
+            <a data-toggle="collapse" data-parent="#accordion" href="#collapse2">
+              <i class="fas fa-angle-right"></i> Typ studia
+            </a>
+
+            <span class="align-right collapse-actions">
+              <span class="action-padding input-action-margin-collapse sort-icon">
+                <i class="fas fa-sort"></i>
+              </span>
+              <span class="action-padding action-button input-action-margin-collapse">
+                <a href=# class="action-link far fa-trash-alt"></a>
+              </span>
+            </span>
+          </span>
+        </div>
+        <div id="collapse2" class="panel-collapse collapse">
+          <div class="panel-body">
+            <div class="form-group row">
+              <label for="name" class="col-sm-2 col-form-label">Název:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="name" class="col-sm-2 col-form-label">V&nbsp;SQL:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Typ:</label>
+              <div class="col-sm-10">
+                <select class="form-control" id="exampleFormControlSelect1">
+                  <option>Text</option>
+                  <option>Datum</option>
+                  <option>Výčet</option>
+                </select>
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Sloupec:</label>
+              <div class="col-sm-10">
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
+                  <label class="form-check-label" for="inlineCheckbox1">Sloupec</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option2">
+                  <label class="form-check-label" for="inlineCheckbox2">Řádek</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option3">
+                  <label class="form-check-label" for="inlineCheckbox3">Hodnota</label>
+                </div>
+              </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Funkce:</label>
+                <div class="col-sm-10">
+                  <select class="selectpicker" multiple data-live-search="true">
+                    <option>SUM</option>
+                    <option>AVG</option>
+                    <option>MAX</option>
+                    <option>MIN</option>
+                  </select>
+                </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Operátory:</label>
+                <div class="col-sm-10">
+                  <select class="selectpicker" multiple data-live-search="true">
+                    <option>LIKE</option>
+                    <option>BETWEEN</option>
+                    <option>EQUAL</option>
+                    <option>LESS</option>
+                  </select>
+                </div>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="panel panel-default">
+        <div class="panel-heading">
+          <span class="panel-title">
+            <a data-toggle="collapse" data-parent="#accordion" href="#collapse3">
+              <i class="fas fa-angle-right"></i> Fakulta
+            </a>
+            <span class="align-right collapse-actions">
+              <span class="action-padding input-action-margin-collapse sort-icon">
+                <i class="fas fa-sort"></i>
+              </span>
+              <span class="action-padding action-button input-action-margin-collapse">
+                <a href=# class="action-link far fa-trash-alt"></a>
+              </span>
+            </span>
+          </span>
+        </div>
+        <div id="collapse3" class="panel-collapse collapse">
+          <div class="panel-body">
+            <div class="form-group row">
+              <label for="name" class="col-sm-2 col-form-label">Název:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="name" class="col-sm-2 col-form-label">V&nbsp;SQL:</label>
+              <div class="col-sm-10">
+                <input type="text" class="form-control" id="name">
+              </div>
+            </div>
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Typ:</label>
+              <div class="col-sm-10">
+                <select class="form-control" id="exampleFormControlSelect1">
+                  <option>Text</option>
+                  <option>Datum</option>
+                  <option>Výčet</option>
+                </select>
+              </div>
+            </div>
+
+            <div class="enum_box">
+              Hodnoty:
+              <div class="enum_values col-md-8">
+                <div class="input-action-box input-border-bottom">
+                  <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Doktorský">
+
+                  <span class="action-padding input-action-margin sort-icon">
+                    <i class="fas fa-sort"></i>
+                  </span>
+                  <span class="action-padding action-button input-action-margin">
+                    <a href=# class="action-link far fa-trash-alt"></a>
+                  </span>
+                </div>
+                <div class="input-action-box input-border-bottom">
+                  <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Navazující">
+
+                  <span class="action-padding input-action-margin sort-icon">
+                    <i class="fas fa-sort"></i>
+                  </span>
+                  <span class="action-padding action-button input-action-margin">
+                    <a href=# class="action-link far fa-trash-alt"></a>
+                  </span>
+
+                </div>
+                <div class="input-action-box input-border-bottom">
+                  <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Bakalářský">
+
+                  <span class="action-padding input-action-margin sort-icon">
+                    <i class="fas fa-sort"></i>
+                  </span>
+                  <span class="action-padding action-button input-action-margin">
+                    <a href=# class="action-link far fa-trash-alt"></a>
+                  </span>
+                </div>
+
+                <div class="form-group row form-add-item">
+                  <div class="col-md-9">
+                    <input type="text" class="form-control" id="name">
+                  </div>
+                  <button type="submit" class="btn btn-primary mb-2">Přidat</button>
+                </div>
+
+
+
+
+              </div>
+            </div>
+
+            <div class="form-group row">
+              <label for="exampleFormControlSelect1" class="col-sm-2">Sloupec:</label>
+              <div class="col-sm-10">
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
+                  <label class="form-check-label" for="inlineCheckbox1">Sloupec</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option2">
+                  <label class="form-check-label" for="inlineCheckbox2">Řádek</label>
+                </div>
+                <div class="form-check form-check-inline">
+                  <input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option3">
+                  <label class="form-check-label" for="inlineCheckbox3">Hodnota</label>
+                </div>
+              </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Funkce:</label>
+                <div class="col-sm-10">
+                  <select class="mbSelect selectpicker" multiple data-live-search="true">
+                    <option>SUM</option>
+                    <option>AVG</option>
+                    <option>MAX</option>
+                    <option>MIN</option>
+                  </select>
+                </div>
+            </div>
+            <div class="form-group row">
+                <label for="exampleFormControlSelect1" class="col-sm-2">Operátory:</label>
+                <div class="col-sm-10">
+                  <select class="mbSelect selectpicker" multiple data-live-search="true">
+                    <option>LIKE</option>
+                    <option>BETWEEN</option>
+                    <option>EQUAL</option>
+                    <option>LESS</option>
+                  </select>
+                </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+</div>
+
+  <div class="container box">
+    <div class="col-md-4">
+    <div class="box-header">
+      <h3 class="box-title">Oprávnění</h3>
+    </div>
+    <div class="input-action-box input-border-bottom">
+      <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Rektor">
+
+      <span class="action-padding input-action-margin sort-icon">
+        <i class="fas fa-sort"></i>
+      </span>
+      <span class="action-padding action-button input-action-margin">
+        <a href=# class="action-link far fa-trash-alt"></a>
+      </span>
+    </div>
+    <div class="input-action-box input-border-bottom">
+      <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="Referentka">
+
+      <span class="action-padding input-action-margin sort-icon">
+        <i class="fas fa-sort"></i>
+      </span>
+      <span class="action-padding action-button input-action-margin">
+        <a href=# class="action-link far fa-trash-alt"></a>
+      </span>
+    </div>
+
+    <div class="form-group row form-add-item">
+      <div class="col-md-9">
+        <select class="form-control " id="exampleFormControlSelect1">
+          <option>Rektor</option>
+          <option>Studijní oddělení</option>
+          <option>Strudenti</option>
+        </select>
+      </div>
+      <button type="submit" class="btn btn-primary mb-2">Přidat</button>
+    </div>
+  </div>
+</div>
+  <div class="submit_center_button">
+      <button type="submit" class="btn btn-success mb-2">Uložit</button>
+  </div>
+
+</form>
+
+
+</main>
+
+<footer class="text-muted">
+  <div class="container">
+
+  </div>
+</footer>
+
+<script type="text/javascript" src="js/app.js"></script>
+</body>
+</html>
+<script type="text/javascript">
+$("select").selectpicker();
+</script>
diff --git a/src/main/webapp/WEB-INF/templates/index.html b/src/main/webapp/WEB-INF/templates/index.html
index 09d7a103..037ca4e2 100644
--- a/src/main/webapp/WEB-INF/templates/index.html
+++ b/src/main/webapp/WEB-INF/templates/index.html
@@ -76,7 +76,7 @@
 							<td>Akademický rok, Fakulta, Typ strudia, Ročník, ...</td>
 							<td class="center-cell">
 								<span class="action-button">
-								  <a href=# class="action-link far fa-edit"></a>
+								  <a th:href="@{/assembly_edit(assemblyID=${iassembly.id})}" class="action-link far fa-edit"></a>
 								</span>
 								<span class="action-button">
 								  <a href=# class="action-link far fa-trash-alt"></a>
