Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
mini-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 5673f274
authored
2019-11-26 14:54:37 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
formatted documents
1 parent
97e2ea00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
50 deletions
Geo/generate.html
Luciano/templates/generate.html
Geo/generate.html
View file @
5673f27
...
...
@@ -7,60 +7,58 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<link
rel=
"stylesheet"
href=
"./Style/Templates.css"
>
<link
rel=
"stylesheet"
href=
"./Style/ArmadoDeForm.css"
>
<script
src=
"./Scripts/ArmadoDeForm.js"
></script>
<script
src=
"./Scripts/ArmadoDeForm.js"
></script>
<link
href=
"https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel=
"stylesheet"
>
<title>
Generador de Formularios
</title>
<link
rel=
"icon"
href=
"./Assets/ICONO ANACSOFT 48 SIN TRASNSF.png"
type=
"image/png"
>
<link
rel=
"icon"
href=
"./Assets/ICONO ANACSOFT 48 SIN TRASNSF.png"
type=
"image/png"
>
</head>
<body>
<section
id=
"ArmarFormContainer"
>
<h1>
Generador de Formularios
</h1>
<h3>
Para comenzar por favor cree un nuevo tab
</h3>
<br>
<div
id=
"tabs"
></div>
<div
style=
"text-align: center;"
>
<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>
<button
id=
"ContinuarButton"
onclick=
"generate(document.getElementById('tabs'))"
>
Continuar
</button>
<section
id=
"ArmarFormContainer"
>
<h1>
Generador de Formularios
</h1>
<h3>
Para comenzar por favor cree un nuevo tab
</h3>
<br>
<div
id=
"tabs"
></div>
<div
style=
"text-align: center;"
>
<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>
<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"
onchange=
"sortChildren(getAncestorByAttribute(this,'name','Tab').parentElement, accessNumber)"
>
<input
class=
"TabTitle"
placeholder=
"Titulo del Tab"
type=
"text"
>
<button
class=
"RemoveTabButton"
onclick=
"removeTab(this)"
>
X
X
</button>
<br>
<div
style=
"text-align: center;"
>
<button
class=
"NewInputButton"
onclick=
"addField(this, maxChild(this.parentElement,accessNumber) + 1)"
>
<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"
onchange=
"sortChildren(getAncestorByAttribute(this,'name','Field').parentElement, accessNumber)"
>
<input
type=
"text"
id=
"Titulo"
class=
"Input"
placeholder=
"Título"
>
<select
name=
"input"
class=
"Input"
>
<option
disabled
selected
value=
""
>
Input
</option>
<option
id=
"text"
value=
"text"
>
Texto
</option>
...
...
@@ -73,12 +71,12 @@
<option
id=
"checkbox"
value=
"checkbox"
>
Selección
</option>
</select>
Obligatorio :
<input
type=
"checkbox"
>
<button
class=
"RemoveInputButton"
<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
Luciano/templates/generate.html
View file @
5673f27
...
...
@@ -9,24 +9,23 @@
<link
rel=
"stylesheet"
href=
"{{url_for('static',filename='Style/Templates.css')}}"
>
<link
href=
"https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel=
"stylesheet"
>
<title>
Generador de Formularios
</title>
<link
rel=
"icon"
href=
"{{url_for('static',filename='Assets/ICONO ANACSOFT 48 SIN TRASNSF.png')}}"
type=
"image/png"
>
<link
rel=
"icon"
href=
"{{url_for('static',filename='Assets/ICONO ANACSOFT 48 SIN TRASNSF.png')}}"
type=
"image/png"
>
</head>
<body>
<section
id=
"ArmarFormContainer"
>
<h1>
Generador de Formularios
</h1>
<h3>
Para comenzar por favor cree un nuevo tab
</h3>
<br>
<div
id=
"tabs"
></div>
<div
style=
"text-align: center;"
>
<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>
<button
id=
"ContinuarButton"
onclick=
"generate(document.getElementById('tabs'))"
>
Continuar
</button>
<section
id=
"ArmarFormContainer"
>
<h1>
Generador de Formularios
</h1>
<h3>
Para comenzar por favor cree un nuevo tab
</h3>
<br>
<div
id=
"tabs"
></div>
<div
style=
"text-align: center;"
>
<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>
<button
id=
"ContinuarButton"
onclick=
"generate(document.getElementById('tabs'))"
>
Continuar
</button>
</section>
<section
id=
"BotonesContainer"
style=
"display: none;"
>
</section>
...
...
@@ -41,12 +40,11 @@
onchange=
"sortChildren(getAncestorByAttribute(this,'name','Tab').parentElement, accessNumber)"
>
<input
class=
"TabTitle"
placeholder=
"Titulo del Tab"
type=
"text"
>
<button
class=
"RemoveTabButton"
onclick=
"removeTab(this)"
>
X
X
</button>
<br>
<div
style=
"text-align: center;"
>
<button
class=
"NewInputButton"
onclick=
"addField(this, maxChild(this.parentElement,accessNumber) + 1)"
>
<button
class=
"NewInputButton"
onclick=
"addField(this, maxChild(this.parentElement,accessNumber) + 1)"
>
+
</button>
</div>
...
...
@@ -55,11 +53,11 @@
<template
id=
"fieldTemplate"
>
<div
class=
"InputContainer"
>
<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"
>
<option
disabled
selected
value=
""
>
Input
</option>
<option
id=
"text"
value=
"text"
>
Texto
</option>
...
...
@@ -72,7 +70,7 @@
<option
id=
"checkbox"
value=
"checkbox"
>
Selección
</option>
</select>
Obligatorio :
<input
type=
"checkbox"
>
<button
class=
"RemoveInputButton"
<button
class=
"RemoveInputButton"
onclick=
"let f = getAncestorByAttribute(this,'name','Field'); f.parentElement.removeChild(f)"
>
-
</button>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment