@* * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. *@ @import scalaz.{\/} @(cluster: String, logkafka_id: String, log_path: String, errorOrForm: kafka.manager.ApiError \/ (Form[models.form.UpdateLogkafkaConfig], kafka.manager.model.ClusterContext) )(implicit af: features.ApplicationFeatures, messages: play.api.i18n.Messages, menus: models.navigation.Menus, request:RequestHeader) @import helper._ @import controllers.routes @theMenu = { @views.html.navigation.clusterMenu(cluster,"Logkafka","Update Config",menus.clusterMenus(cluster)( errorOrForm.toOption.map(_._2.clusterFeatures).getOrElse(kafka.manager.features.ClusterFeatures.default))) } @renderForm(updateLogkafkaConfigForm: Form[models.form.UpdateLogkafkaConfig]) = { @b4.vertical.form(routes.Logkafka.handleUpdateConfig(cluster, logkafka_id, log_path)) { implicit fc =>
Update Config |
---|
@b4.text(updateLogkafkaConfigForm("logkafka_id"), '_label -> "Logkafka Id", 'placeholder -> "", 'autofocus -> true ) @b4.text(updateLogkafkaConfigForm("log_path"), '_label -> "Log Path", 'placeholder -> "", 'autofocus -> true ) @helper.repeat(updateLogkafkaConfigForm("configs"), min = 1) { configsForm => @b4.hidden(configsForm("name").name, configsForm("name").value.getOrElse("")) @b4.text(configsForm("value"), '_label -> configsForm("name").value.getOrElse("")) } |