Commit 97e2ea00 by Luciano Barletta

fixed merge

1 parent 7f6606ea
......@@ -21,41 +21,44 @@
<br>
<div id="tabs"></div>
<div style="text-align: center;">
<button class="NewTabButton" onclick="addTab(document.getElementById('tabs'))">
<button class="NewTabButton"
onclick="let t = document.getElementById('tabs'); addTab(t, maxChild(t, accessNumber) + 1)">
+
</button>
</div>
<h3 id="ContinuarText">Cuando se encuentre conforme con el formulario presione Continuar</h3>
<input type="number" placeholder="Cant de Tabs" id="CantBotones">
<button id="ContinuarButton" onclick="ArmarForm()"> Continuar </button>
</section>
<button id="ContinuarButton" onclick="generate(document.getElementById('tabs'))"> Continuar </button>
</section>
<section id="BotonesContainer" style="display: none;">
</section>
<section id="TabsContainer" style="display: none;">
</section>
</body>
</body>
<!-- templates -->
<template id="tabTemplate">
<!-- templates -->
<template id="tabTemplate">
<div class="TabCards">
<input type="number" class="TabNumber">
<input type="number" class="TabNumber"
onchange="sortChildren(getAncestorByAttribute(this,'name','Tab').parentElement, accessNumber)">
<input class="TabTitle" placeholder="Titulo del Tab" type="text">
<button class="RemoveTabButton" onclick="removeTab(this)">
X
</button>
</button>
<br>
<div style="text-align: center;">
<button class="NewInputButton" onclick="addField(this)">
<button class="NewInputButton"
onclick="addField(this, maxChild(this.parentElement,accessNumber) + 1)">
+
</button>
</div>
</div>
</template>
</template>
<template id="fieldTemplate">
<template id="fieldTemplate">
<div class="InputContainer">
<input type="number" class="InputNumber">
<input type="number" class="InputNumber"
onchange="sortChildren(getAncestorByAttribute(this,'name','Field').parentElement, accessNumber)">
<input type="text" id="Titulo" class="Input" placeholder="Título">
<select name="input" class="Input">
......@@ -70,11 +73,12 @@
<option id="checkbox" value="checkbox">Selección</option>
</select>
Obligatorio : <input type="checkbox">
<button class="RemoveInputButton" onclick="removeField(this)">
<button class="RemoveInputButton"
onclick="let f = getAncestorByAttribute(this,'name','Field'); f.parentElement.removeChild(f)">
-
</button>
</div>
</template>
</template>
</html>
\ No newline at end of file
</html>
\ No newline at end of file
......@@ -2,6 +2,7 @@
<head>
<script src="{{url_for('static',filename='Scripts/construct.js')}}"></script>
<script src="{{url_for('static',filename='Scripts/ArmadoDeForm.js')}}"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!