camilosampedro/Aton

View on GitHub
app/model/form/SSHOrderForm.scala

Summary

Maintainability
A
35 mins
Test Coverage
package model.form

import model.form.data.SSHOrderFormData
import play.api.data.Form
import play.api.data.Forms._

/**
  * @author Camilo Sampedro <camilo.sampedro@udea.edu.co>
  */
object SSHOrderForm {
  val form = Form(
    mapping(
      "sshorder.superuser" -> boolean,
      "sshorder.command" -> nonEmptyText
    )(SSHOrderFormData.apply)(SSHOrderFormData.unapply)
  )
}