-
Notifications
You must be signed in to change notification settings - Fork 34
/
add (2).html
35 lines (31 loc) · 1.35 KB
/
add (2).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
---
layout: base
title: Agregar código
slug: raw
---
<h3>Agregar código</h3>
<p>Todos los campos son obligatorios</p>
<form method="post" action="https://api.staticman.net/v2/entry/{{ site.repository }}/{{ site.staticman.branch }}/codigos">
<input name="options[redirect]" type="hidden" value="https://sidval.github.io/ABAP/add.html">
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}">
<!--<input name="options[slug]" type="hidden" value="{{ page.slug }}">-->
<label><input name="fields[titulo]" type="text">Título</label><br />
<label><textarea name="fields[descripcion]" type="text"></textarea>Descripción</label><br />
<label><input name="fields[autor]" type="text">Autor</label><br />
<!--<label><input name="fields[url]" type="URL" required aria-required="true" pattern="^(https?://)?([a-zA-Z0-9]([a-zA-ZäöüÄÖÜ0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$">URL</label><br />-->
<label><input name="fields[url]" type="URL">URL</label><br />
<label><textarea name="fields[codigo]" type="text"></textarea>Código</label><br />
<br />
<button type="submit">¡Agregar!</button>
</form>
<br />
<hr />
<br />
<h2>Carpetas disponibles</h2>
<ul>
{% for page in site.pages %}
{% if page.carpeta == true %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
</ul>