mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 17:55:29 +01:00
Turn it into a list for a fresh start at this
This commit is contained in:
parent
bea48d9059
commit
f9064eb15f
@ -46,10 +46,10 @@
|
||||
<small class="text-muted ml-1">
|
||||
</small> </label>
|
||||
{% if isinstance(item[1], list) %}
|
||||
<ul>
|
||||
<ul id="list-{{item[0]}}" class="list">
|
||||
{% for li in item[1] %}
|
||||
<input style="color: black;" form="config-form" class="form-control" type="text" value="{{li}}"
|
||||
name="{{item[0]}}" readonly><br />
|
||||
<li data-name="list-{{item[0]}}" style="color: white; margin-left: 20px;" selected readonly>{{li}}</li>
|
||||
<br />
|
||||
{% end %}
|
||||
</ul>
|
||||
{% elif isinstance(item[1], bool) %}
|
||||
@ -107,6 +107,15 @@
|
||||
|
||||
{% block js %}
|
||||
<script>
|
||||
$('#config-form').submit(function (e) {
|
||||
e.preventDefault();
|
||||
let lists = document.getElementsByClassName("list");
|
||||
for (i = 0; i < lists.length; i++) {
|
||||
let items = document.querySelectorAll('[data-name=${lists[i]}]');
|
||||
console.log(Array.from(items.innerHTML));
|
||||
}
|
||||
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$('[data-toggle="popover"]').popover();
|
||||
if ($(window).width() < 1000) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user