concat inferno

This commit is contained in:
mynah
2018-07-20 05:16:47 -05:00
parent e25fc46010
commit ef16d6f7b5
19 changed files with 518 additions and 423 deletions

View File

@@ -12,139 +12,134 @@
</article>
<article class="edit">
<!-- Evento ======================================================= -->
<div class="ehide" id="event"> <form action=" #nav admine" method="POST">
<!-- Evento ============================================================== -->
<div class="ehide" id="event"> <form action="/admin/eventos/e" method="POST">
<div class="flex field">
<label>Curso</label>
<select id="ecourse" name="ecourse">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('ecourse')}) %><% if defined(stash('ecourse')); %>
<% } %><% (@{stash('courses')}) %><% if defined(stash('courses')); %>
</select>
</div>
<div class="flex field">
<label>Lugar</label> <!-- dropdown -->
<select id="eplace" name="eplace"> <!-- a#dropvar -->
<label>Lugar</label>
<select id="eplace" name="eplace">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eplace')}) %><% if defined(stash('eplace')); %>
<% } %><% (@{stash('places')}) %><% if defined(stash('places')); %>
</select>
</div>
<div class="flex field">
<label>Fecha inicio</label> <!-- dropdown -->
<input id="dini" type="number" min="1" max="31" name="dini" value="1"/> <!-- a#dropvar -->
<select id="mini" name="mini"> <!-- a#dropvar -->
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('emini')}) %><% if defined(stash('emini')); %>
<input id="dini" type="number" min="1" max="31" name="dini" value="1"/>
<select id="mini" name="mini">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('months')}) %><% if defined(stash('months')); %>
</select>
<input id="yini" type="number" min="2017" max="2050" name="yini" value="2017"/> <!-- a#dropvar -->
<input id="yini" type="number" min="2017" max="2050" name="yini" value="2017"/>
</div>
<div class="flex field">
<label>Fecha fin</label> <!-- dropdown -->
<input id="dend" type="number" min="1" max="31" name="dend" value="1"/> <!-- a#dropvar -->
<select id="mend" name="mend"> <!-- a#dropvar -->
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('emini')}) %><% if defined(stash('emini')); %>
<!-- ##emini -->
<label>Fecha fin</label>
<input id="dend" type="number" min="1" max="31" name="dend" value="1"/>
<select id="mend" name="mend">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('months')}) %><% if defined(stash('months')); %>
</select>
<input id="yend" type="number" min="2017" max="2050" name="yend" value="2017"/> <!-- a#dropvar -->
<input id="yend" type="number" min="2017" max="2050" name="yend" value="2017"/>
</div>
<div class="flex field">
<label>Costo</label> <input id="cost" type="text" name="cost"/> <!-- a#dropvar -->
<label>Costo</label> <input id="cost" type="text" name="cost"/>
</div>
<div class="flex field">
<label>Promoción</label><input id="promo" type="text" name="promo"/> <!-- a#dropvar -->
<label>Habilitar</label><input type="checkbox" checked="checked" id="pen" name="pen"/> <!-- a#dropvar -->
<label>Promoción</label><input id="promo" type="text" name="promo"/>
<label>Habilitar</label><input type="checkbox" checked="checked" id="pen" name="pen"/>
</div>
<div class="flex field">
<label>Imagen</label> <!-- dropdown -->
<select id="eimg" name="eimg"> <!-- a#dropvar -->
<label>Imagen</label>
<select id="eimg" name="eimg">
<option value="0" selected> -- Elegir imagen -- </option>
<% map{ %>
<% map{ %>
<option value="<%= $_ %>"><%= $_ %></option>
<% } %><% (@{stash('ilist')}) %><% if defined(stash('ilist')); %>
<% } %><% (@{stash('img')}) %><% if defined(stash('img')); %>
</select>
<div id=esimg></div>
</div>
<div class="flex field">
<label>Existente</label>
<select id="eprev" name="eprev"> <!-- a#dropvar -->
<select id="eprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eprev')}) %><% if defined(stash('eprev')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('events')}) %><% if defined(stash('events')); %>
</select>
</div>
<div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="eup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="edel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input id="een" type="checkbox" checked="checked" name="een" > <!-- a#dropvar -->
<input id="een" type="checkbox" checked="checked" name="een" >
</div>
</form> </div>
<!-- Curso ====================================================== -->
<div class="ehide" id="course"><form id="fcourse" action="/admin/event"
method="POST">
<!-- Curso ================================================================ -->
<div class="ehide" id="course"> <form id="fcourse" action="/admin/eventos/c" method="POST">
<div class="flex field">
<label>Nombre</label>
<input id="cname" type="text" name="cname"/> <!-- a#dropvar -->
<input id="cname" type="text" name="cname"/>
</div> <div class="flex field">
<label>Temario</label>
<textarea form="fcourse" id="csubjects" name="csubjects"></textarea> <!-- a#dropvar -->
<textarea form="fcourse" id="csubjects" name="csubjects"></textarea>
</div> <div class="flex field">
<label>Servicios</label>
<textarea form="fcourse" id="cservices" name="cservices"></textarea> <!-- a#dropvar -->
<textarea form="fcourse" id="cservices" name="cservices"></textarea>
</div> <div class="flex field">
<label>Existente</label>
<select id="cprev" name="cprev"> <!-- a#dropvar -->
<select id="cprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('ecourse')}) %><% if defined(stash('ecourse')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('courses')}) %><% if defined(stash('courses')); %>
</select>
</div> <div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="cup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="cdel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input type="checkbox" checked="checked" id="cen" name="cen" > <!-- a#dropvar -->
<input type="checkbox" checked="checked" id="cen" name="cen" >
</div>
</form> </div>
<!-- Lugar ====================================================== -->
<div class="ehide" id="place"><form action="/admin/event" method="POST">
<!-- Lugar ================================================================ -->
<div class="ehide" id="place"><form action="/admin/eventos/p" method="POST">
<div class="flex field">
<label>Nombre</label><input type="text" id= "pname" name="pname"> <!-- a#dropvar -->
<label>Nombre</label><input type="text" id= "pname" name="pname">
</div> <div class="flex field">
<label>Direccion</label> <input type="text" id="paddr" name="paddr"> <!-- a#dropvar -->
<label>Direccion</label> <input type="text" id="paddr" name="paddr">
</div> <div class="flex field">
<label>Observación</label> <input type="text" id="pobs" name="pobs"> <!-- a#dropvar -->
<label>Observación</label> <input type="text" id="pobs" name="pobs">
</div> <div class="flex field">
<label>Municipio</label> <input type="text" id="pto" name="pto"> <!-- a#dropvar -->
<label>Municipio</label> <input type="text" id="pto" name="pto">
</div> <div class="flex field">
<label>Entidad</label> <input type="text" id="pst" name="pst"> <!-- a#dropvar -->
<label>Entidad</label> <input type="text" id="pst" name="pst">
</div> <div class="flex field">
<label>País</label> <input type="text" id="pco" name="pco"> <!-- a#dropvar -->
<label>País</label> <input type="text" id="pco" name="pco">
</div> <div class="flex field">
<label>Latitud</label> <input type="text"id="plat" name="plat"> <!-- a#dropvar -->
<label>Latitud</label> <input type="text"id="plat" name="plat">
</div> <div class="flex field">
<label>Longitud</label> <input type="text" id="plng" name="plng"> <!-- a#dropvar -->
<label>Longitud</label> <input type="text" id="plng" name="plng">
</div> <div class="flex field">
<label>Existente</label>
<select id="pprev" name="pprev"> <!-- a#dropvar -->
<select id="pprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eplace')}) %><% if defined(stash('eplace')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('places')}) %><% if defined(stash('places')); %>
</select>
</div> <div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="pup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="pdel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input id="pen" type="checkbox" checked="checked" name="pen" > <!-- a#dropvar -->
<input id="pen" type="checkbox" checked="checked" name="pen" >
</div>
</form> <div class="mapa"></div>
</article>