-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdile-ajax-form.html
72 lines (61 loc) · 1.74 KB
/
dile-ajax-form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ejemplos dile-ajax-form</title>
<style>
body {
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
</style>
</head>
<body>
<h1>Ejemplos dile-ajax-form</h1>
<dile-ajax-form
operation="insert"
endpoint="https://timer.escuelait.com/api/countries"
actionLabel="Guardar"
formIdentifier="forminsertcountry"
>
<p>Hola a todos... puedes insertar el formulario.</p>
<demo-country-form id="forminsertcountry"></demo-country-form>
</dile-ajax-form>
<dile-ajax-form
id="updateform"
operation="update"
relatedId="5"
endpoint="https://timer.escuelait.com/api/countries"
actionLabel="Actualizar este país"
formIdentifier="formupdatecountry"
loadOnInit
>
<p>Hola a todos... puedes actualizar el país.</p>
<demo-country-form id="formupdatecountry"></demo-country-form>
</dile-ajax-form>
<hr>
<h2>Tareas</h2>
<dile-ajax-form
operation="insert"
endpoint="https://todolistapi.escuelait.com/api/todos"
actionLabel="Guardar"
formIdentifier="forminserttodo"
language="es"
>
<demo-todo-form id="forminserttodo"></demo-todo-form>
</dile-ajax-form>
<dile-ajax-form
id="updateformtodo"
operation="update"
relatedId="7"
endpoint="https://todolistapi.escuelait.com/api/todos"
actionLabel="Actualizar la tarea"
formIdentifier="formupdatetodo"
language="es"
>
<demo-todo-form id="formupdatetodo"></demo-todo-form>
</dile-ajax-form>
<demo-ajax-form></demo-ajax-form>
<script type="module" src="/src/dile-ajax-form-examples.js"></script>
</body>
</html>