identity/app/views/fragments/form/switch.scala.html
@import _root_.form.IdFormHelpers.Checkbox @import views.support.fragment.Switch._ @( title: String, description: Option[String], behaviour: SwitchBehaviour, field: Field, extraFields: List[Html] = Nil, footer: Option[Html] = None, highlighted: Boolean = false, skin: Option[String] = None, boldTitle: Boolean = true, newsletterIdentityName: Option[String] = None )(implicit handler: views.html.helper.FieldConstructor, messages: play.api.i18n.Messages) @classes = @{ Map( ("manage-account__switch", true), (switchJsBehaviour(behaviour), true), ("manage-account__switch--hinted", highlighted), (s"manage-account__switch--${skin.getOrElse("")}", skin.isDefined) ) } @linkName = @{newsletterIdentityName.getOrElse(title)} @fragments.form.checkbox(field, Checkbox(field).args:_*)
@if(boldTitle) {
} else {
@title
} @if(description) {
@description.map(Html(_))
} @extraFields @if(footer.isDefined) { @footer }