@(myForm: Form[controllers.spaceFormData], title:String, submitButton: Html, spaceId: Option[UUID], spaceName: Option[String])(implicit flash: play.api.mvc.Flash, user: Option[models.User]) @import play.api.i18n.Messages @import helper._ @import play.api.Play.current @import models.SpaceStatus @import api.Permission @import _root_.util.Formatters._ @implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f)} @main(title) {
@if(myForm.hasErrors) {

Please fix all errors

} @flash.get("error").map { message =>

@message

} @form(action = routes.Spaces.submit, 'enctype -> "multipart/form-data", 'class -> "form-horizontal", 'id -> "spaceForm") {
@inputText(myForm("name"), 'class -> "form-control", '_label -> "Name") @textarea(myForm("description"), 'class -> "form-control", '_label -> "Description")
@repeat(myForm("homePages"), min = 1) {externalLink => @inputText(externalLink, 'class -> "form-control", '_label -> "") @****** one too many delete buttons @if(myForm.hasErrors && myForm("homePages").indexes.length > 1) { } ******@ }
@inputText(myForm("logoUrl"),'class -> "form-control", '_label-> "Logo URL") Recommended image size is 100 x 100 @inputText(myForm("bannerUrl"),'class -> "form-control", '_label-> "Banner URL") Recommended image size is 1170 x 200
@repeat(myForm("affSpaces"), min = 1) {externalLink => @inputText(externalLink, 'class -> "form-control", '_label -> "") }
The names or IDs of other spaces whose published data should be shown on this space's Published Data page
@helper.inputRadioGroup(myForm("expiration"), options("expiretrue"->"On", "expirefalse"->"Off"), '_label -> "Expiration") @defining(myForm("isTimeToLiveEnabled")) { isTimeToLiveEnabled => } @helper.inputText(myForm("editTime"), 'class -> "form-control", '_label -> "Time to live (hours):") @*do not add class = form-control for this radio button*@ @helper.inputRadioGroup(myForm("access"), options = options(SpaceStatus.PRIVATE.toString->SpaceStatus.PRIVATE.toString,SpaceStatus.PUBLIC.toString->SpaceStatus.PUBLIC.toString), '_label -> "Access")

@Messages("crate.space.access.message", Messages("collections.title").toLowerCase(), Messages("datasets.title").toLowerCase, Messages("space.title").toLowerCase, Messages("dataset.title").toLowerCase)

@helper.input(myForm("space_id"), 'class -> "form-control", '_label ->"") {(id, name, value, args) => }
@submitButton }
}