@import views.html.helper.CSRF @(image: BaseImage, form: Form[_], availableRoles: Seq[RoleId])(implicit request: RequestHeader, messages: play.api.i18n.Messages) @implicitFieldConstructor = @{ b3.horizontal.fieldConstructor("col-md-2", "col-md-10") } @simpleLayout("AMIgo"){ @b3.form(routes.BaseImageController.updateBaseImage(image.id)) { @CSRF.formField @b3.static("ID"){@image.id.value} @b3.text( form("amiId"), Symbol("_label") -> "AMI ID", Symbol("placeholder") -> "ami-a1b2c3d4" ) @b3.select( form("linuxDist"), models.LinuxDist.all.toList.map{ case (k,v) => k -> v.name }, Symbol("_label") -> "Linux Distribution" ) @b3.textarea( form("description"), Symbol("_label") -> "Description" ) @b3.date(form("eolDate"), Symbol("_label")-> "End of Life Date", Symbol("_help") -> Html("""Find Ubuntu support info here""")) @b3.checkbox(form("requiresXLargeBuilder"), Symbol("_label") -> "Requires XLarge builder instance", Symbol("_help") -> "XLarge instances are 8x more expensive than normal AMIgo builders. Avoid where possible.")