Diferencia entre revisiones de «Usuario:Juanda/phonegap/jquerymobile»
De WikiEducator
(→Formularios) |
(→Formularios) |
||
| Línea 314: | Línea 314: | ||
</body> | </body> | ||
</html> | </html> | ||
| + | |||
| + | </source> | ||
| + | |||
| + | </div> | ||
| + | <div class="slide"> | ||
| + | *[http://www.media.formandome.es/phonegap/ejemplo3.html Otro ejemplo] de formulario: | ||
| + | <source lang="html4strict"> | ||
| + | <!DOCTYPE html> | ||
| + | <html> | ||
| + | <head> | ||
| + | <meta charset="utf-8"> | ||
| + | <title>jQuery Mobile Demo</title> | ||
| + | <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" /> | ||
| + | <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | ||
| + | <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script> | ||
| + | </head> | ||
| + | <body> | ||
| + | <!-- Main Page--> | ||
| + | <div data-role="page" id="main"> | ||
| + | <div data-role="header"> | ||
| + | <a href="index.html" data-icon="delete">Cancelar</a> | ||
| + | <h1> | ||
| + | Pedir pizza | ||
| + | </h1> | ||
| + | <a href="index.html" data-icon="check">Guardar</a> | ||
| + | </div> | ||
| + | <div data-role="content"> | ||
| + | <form action="#" method="get"> | ||
| + | <h2> | ||
| + | Formulario para pedir una pizza: | ||
| + | </h2> | ||
| + | <div data-role="fieldcontain"> | ||
| + | <fieldset data-role="controlgroup"> | ||
| + | <legend> | ||
| + | Escoje la base: | ||
| + | </legend> | ||
| + | <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" /> | ||
| + | <label for="radio-choice-1"> | ||
| + | Fina y crujiente | ||
| + | </label> | ||
| + | <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2" /> | ||
| + | <label for="radio-choice-2"> | ||
| + | Queso gratinado | ||
| + | </label> | ||
| + | <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3" /> | ||
| + | <label for="radio-choice-3"> | ||
| + | Gorda y esponjosa | ||
| + | </label> | ||
| + | </fieldset> | ||
| + | </div> | ||
| + | <div data-role="fieldcontain"> | ||
| + | <fieldset data-role="controlgroup"> | ||
| + | <legend> | ||
| + | Elige los ingredientes de la pizza: | ||
| + | </legend> | ||
| + | <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" /> | ||
| + | <label for="checkbox-1a"> | ||
| + | Champiñones | ||
| + | </label> | ||
| + | <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" /> | ||
| + | <label for="checkbox-2a"> | ||
| + | Aceitunas negras | ||
| + | </label> | ||
| + | <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" /> | ||
| + | <label for="checkbox-3a"> | ||
| + | Pimientos | ||
| + | </label> | ||
| + | <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" /> | ||
| + | <label for="checkbox-4a"> | ||
| + | Cebolla | ||
| + | </label> | ||
| + | </fieldset> | ||
| + | </div> | ||
| + | <div data-role="fieldcontain"> | ||
| + | <fieldset data-role="controlgroup" data-type="horizontal"> | ||
| + | <legend> | ||
| + | Ingredientes para no vegetarianos: | ||
| + | </legend> | ||
| + | <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" /> | ||
| + | <label for="checkbox-6"> | ||
| + | Chorizo | ||
| + | </label> | ||
| + | <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" /> | ||
| + | <label for="checkbox-7"> | ||
| + | Jamón Serrano | ||
| + | </label> | ||
| + | <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" /> | ||
| + | <label for="checkbox-8"> | ||
| + | Carne picada | ||
| + | </label> | ||
| + | </fieldset> | ||
| + | </div> | ||
| + | <div data-role="fieldcontain"> | ||
| + | <fieldset data-role="controlgroup" data-type="horizontal"> | ||
| + | <legend> | ||
| + | Forma de pago: | ||
| + | </legend> | ||
| + | <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" /> | ||
| + | <label for="radio-choice-c"> | ||
| + | Metálico | ||
| + | </label> | ||
| + | <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" /> | ||
| + | <label for="radio-choice-d"> | ||
| + | Cupón | ||
| + | </label> | ||
| + | <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other"/> | ||
| + | <label for="radio-choice-e"> | ||
| + | Tarjeta crédito | ||
| + | </label> | ||
| + | </fieldset> | ||
| + | </div> | ||
| + | </form> | ||
| + | </div> | ||
| + | <div data-role="footer" > | ||
| + | <p>Pizzeria CPIFP Los Enlaces </p> | ||
| + | </div> | ||
| + | </div> | ||
| + | |||
| + | </body> | ||
| + | </html> | ||
| + | |||
</source> | </source> | ||
</div> | </div> | ||
Revisión de 18:25 28 may 2013
| Trabajo en proceso, espera cambios frecuentes. Tu ayuda y retroalimentación son bienvenidos. Ver página de charlas. |