Commit 1731a4fd authored by Jasin's avatar Jasin

add datasets button, closed #2

parent 93be7ec0
<!-- Modal -->
<div class="modal fade" id="AddLine" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Linie hinzufügen</h5>
</div>
<div class="modal-body">
<div class="form-group">
<label for="exampleInputEmail1">Linienname</label>
<small id="emailHelp" class="form-text text-muted">Beispielsweise: 4A oder 34</small>
<input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="4A">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
<button type="button" id="addBtn" class="btn btn-primary" data-dismiss="modal">Hinzufügen</button>
</div>
</div>
</div>
</div>
<script>
$( document ).ready(function()
{
$("#addBtn").click(function ()
{
let inputLineLabel = $("#exampleInputEmail1").val();
$("#exampleInputEmail1").val(""); //Clear the inputfield
dataLoader(inputLineLabel, findGetParameter("amount"), false);
});
});
</script>
\ No newline at end of file
......@@ -20,7 +20,7 @@
<small id="methodInfo"></small>
</div>
<div class="row">
<button class="button">Weitere Daten hinzufügen</button>
<button type="button" data-toggle="modal" data-target="#AddLine" class="button">Weitere Daten hinzufügen</button>
</div>
</div>
</div>
......@@ -34,8 +34,8 @@
{
dataLoader(null, null, true);
});
//TODO: add button "add line"
</script>
<?php require_once ("Views/AddLineModal.php");?>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment