package helper
Contains template helpers, for example for generating HTML forms.
- Source
- package.scala
- Alphabetic
- By Inheritance
- helper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait FieldConstructor extends AnyRef
- case class FieldElements(id: String, field: Field, input: Html, args: Map[Symbol, Any], p: MessagesProvider) extends Product with Serializable
- trait RepeatHelper extends AnyRef
Value Members
- val defaultField: (FieldElements) => play.twirl.api.HtmlFormat.Appendable
Default input structure.
Default input structure.
<dl> <dt><label for="username"></dt> <dd><input type="text" name="username" id="username"></dd> <dd class="error">This field is required!</dd> <dd class="info">Required field.</dd> </dl>
- def urlEncode(string: String)(implicit codec: Codec): String
- returns
The url-encoded value of
string
using the charset provided bycodec
- object CSPNonce
A helper that renders the CSP nonce if it is present.
A helper that renders the CSP nonce if it is present.
- object CSRF
CSRF helper for Play calls
- object FieldConstructor
- object Implicits
- object checkbox extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object defaultFieldConstructor extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template1[FieldElements, play.twirl.api.HtmlFormat.Appendable]
- object form extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template3[Call, Array[(Symbol, String)], Html, play.twirl.api.HtmlFormat.Appendable]
- object input extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template5[Field, Array[(Symbol, Any)], (String, String, Option[String], Map[Symbol, Any]) => Html, FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputCheckboxGroup extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template5[Field, Seq[(String, String)], Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputDate extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputFile extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputPassword extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputRadioGroup extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template5[Field, Seq[(String, String)], Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object inputText extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object javascriptRouter extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template3[String, Array[JavaScriptReverseRoute], RequestHeader, play.twirl.api.HtmlFormat.Appendable]
- object jsloader extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template1[RequestHeader, play.twirl.api.HtmlFormat.Appendable]
- object options
- object repeat extends RepeatHelper
- object repeatWithIndex extends RepeatHelper
- object requireJs extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template5[String, String, Boolean, String, String, play.twirl.api.HtmlFormat.Appendable]
- object script extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template3[Array[(Symbol, String)], Html, RequestHeader, play.twirl.api.HtmlFormat.Appendable]
- object select extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template5[Field, Seq[(String, String)], Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]
- object style extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template3[Array[(Symbol, String)], Html, RequestHeader, play.twirl.api.HtmlFormat.Appendable]
- object textarea extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable, Format[play.twirl.api.HtmlFormat.Appendable]] with Template4[Field, Array[(Symbol, Any)], FieldConstructor, MessagesProvider, play.twirl.api.HtmlFormat.Appendable]