Commit 11472461 by Luciano Barletta

merged

2 parents e8e2302a 571bcc7d
html{
font-family: 'Montserrat', sans-serif;
}
h1,h3{
text-align: center;
}
h1{
font-size: 35px;
}
body{
background-color: whitesmoke;
}
.TabCards{
background-color: white;
box-shadow: 2px 2px 5px #575757;
margin: 2% auto;
padding: 2%;
border-radius: 2px;
}
.TabTitle{
font-size: 30px;
width: 100%;
text-align: center;
border:none;
border-bottom: 1px solid grey;
}
.InputContainer{
width: 100%;
text-align: center;
}
.Input{
border:none;
border-bottom: 1px solid grey;
width: 25%;
margin: 1%;
}
.NewTabButton, .NewInputButton, .RemoveInputButton{
text-align: center;
margin: auto;
color: whitesmoke;
border-radius: 50%;
}
.NewTabButton{
font-size:45px;
width: 10%;
height: 10%;
border: 3px solid rgb(0, 88, 170);
background-color: rgb(0, 102, 255);
}
.NewInputButton {
font-size: 25px;
width: 4.6%;
height:4.5%;
margin: 1%;
border: 3px solid rgb(1, 194, 120);
background-color: rgb(14, 211, 135);
}
.RemoveInputButton{
width: 4.1%;
height:4%;
margin: 1%;
font-size: 20px;
border: 3px solid rgb(230, 25, 25);
background-color: rgba(211, 14, 14, 0.788);
}
<html lang="en">
<head>
<script src="{{ url_for('static', filename='Scripts/construct.js') }}"></script>
<script src="{{ url_for('static', './Scripts/construct.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">
<link rel="stylesheet" href="{{ url_for('static', './Style/Templates.css') }}">
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
<title>Generador de Formularios</title>
</head>
<body>
Tabs: <br>
<div id="tabs"></div>
<button onclick="addTab(document.getElementById('tabs'))">
+
</button>
<h1> Generador de Formularios</h1>
<h3>Para comenzar por favor cree un nuevo tab</h3>
<br>
<br>
<button onclick="generate(document.getElementById('tabs'))">
Generar
</button>
<div id="tabs"></div>
<div style="text-align: center;">
<button class="NewTabButton" onclick="addTab(document.getElementById('tabs'))">
+
</button>
</div>
</body>
<!-- templates -->
<template id="tabTemplate">
<br>
-------------------
<button onclick="removeTab(this)">
x
</button>
<br>
<button onclick="addField(this)">
+
</button>
<br>
-------------------
<br>
<div class="TabCards">
<input class="TabTitle" placeholder="Titulo del Tab" type="text">
<br>
<div style="text-align: center;">
<button class="NewInputButton" onclick="addField(this)">
+
</button>
</div>
</div>
</template>
<template id="fieldTemplate">
<input type="text" placeholder="Título">
<select name="input">
<option disabled selected value="">Input</option>
<option value="text">Texto</option>
<option value="number">Numero</option>
<option value="mail">Mail</option>
<option value="password">Contraseña</option>
<option value="date">Fecha</option>
<option value="time">Hora</option>
<option value="textarea">Párrafo</option>
<option value="checkbox">Selección</option>
</select>
Obligatorio : <input type="checkbox">
<button onclick="removeField(this)">
-
</button>
<div class="InputContainer">
<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>
<option id="number" value="number">Numero</option>
<option id="mail" value="mail">Mail</option>
<option id="password" value="password">Contraseña</option>
<option id="date" value="date">Fecha</option>
<option id="time" value="time">Hora</option>
<option id="textarea" value="textarea">Párrafo</option>
<option id="checkbox" value="checkbox">Selección</option>
</select>
Obligatorio : <input type="checkbox">
<button class="RemoveInputButton" onclick="removeField(this)">
-
</button>
</div>
</template>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!