Diferencia entre revisiones de «Formulario:Test»

De CNB
Ir a la navegación Ir a la búsqueda
Busca en cnbGuatemala con Google

 
(No se muestran 53 ediciones intermedias de 2 usuarios)
Línea 6: Línea 6:
  
 
{{{for template|Test}}}
 
{{{for template|Test}}}
 +
=Tree field=
 +
{{{field|test-field|input type=tree|top category=A
 +
}}}
  
{|
+
=Author stuff=
! I'm from Guatemala:
+
{| class="formtable"
| {{{field|Country|input type=checkbox|show on select=department}}}
+
! I'm the author (or I know the username of the author):  
 +
| {{{field|istheauthor|input type=checkbox|show on select=author-section}}}
 
|}
 
|}
  
<div id="department">
+
{| class="formtable" id = "author-section"
{|
+
! Author username:
! Department:
+
| {{{field|authorusername|input type = text|default=current user}}}
| {{{field|department|input type=dropdown|values=Department1,Department2,Department3|show on select=Department1=>department1;Department2=>department2;Department3=>department3}}}
 
 
|}
 
|}
</div>
 
 
<div id="department1">
 
{|
 
! Cities for Department1:
 
| {{{field|city|input type=dropdown|values=City1,City2,City3}}}
 
|}
 
</div>
 
<div id="department2">
 
{|
 
! Cities for Department2:
 
| {{{field|city|input type=dropdown|values=City4,City5,City6}}}
 
|}
 
</div>
 
<div id="department3">
 
{|
 
! Cities for Department3:
 
| {{{field|city|input type=dropdown|values=City7,City8,City9}}}
 
|}
 
</div>
 
  
 
{{{end template}}}
 
{{{end template}}}
Línea 42: Línea 25:
 
{{{standard input|save}}} {{{standard input|cancel}}}
 
{{{standard input|save}}} {{{standard input|cancel}}}
 
</includeonly>
 
</includeonly>
 +
[[category:test]]

Revisión actual del 00:06 14 ago 2016