@(nodeForm: Form[models.aip.AipNode], nodes: Seq[(String, String)])(implicit flash: Flash, session: Session) @import helper._ @import helper.myHelper._ @import views.html.myHelper.myCheckbox @import views.html.myHelper.myInputText @sidebar = { } @views.html.aip.main(Html(Messages("home.title")))(sidebar) {

Crear nodo

@form(action = nodeForm("id").value match{ case Some(id) if (id.size>0 && (id forall Character.isDigit)) => routes.AipController.update(id.toLong); case _ => routes.AipController.save}, 'enctype -> "multipart/form-data", 'role -> "form") { @myInputText(nodeForm("node"), '_label -> "Nombre") @myInputText(nodeForm("slug"), '_label -> Html("Nombre único")) @select(nodeForm("nodeId"), nodes, '_label ->"Padre" ,'_default -> "", '_showConstraints -> false) @helper.inputFile(nodeForm("file"), '_label -> Html("Archivo"))
WikiMarkup Syntax

@textarea(nodeForm("content"), '_label -> "Contenido", 'class -> "form-control", 'rows ->"3") @myCheckbox(nodeForm("isVisible"), '_label -> "Visible", '_showConstraints -> false, '_text -> "Visible para el público") @myCheckbox(nodeForm("isPremium"), '_label -> "Privado", '_showConstraints -> false, '_text -> "Solo visible para pilotos que pagan") }
}