fluentd-ui/app/views/fluentd/_form.html.haml
Kenji Okimoto c7182e0d0e
Add note to Fluentd model
Close #203

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-08-17 15:57:53 +09:00

35 lines
1.1 KiB
Plaintext

.col-xl-6
- @fluentd.errors.full_messages.each do |e|
.alert.alert-danger= e
= form_for(:fluentd, url: url, method: method) do |f|
.form-group
= f.label :variant
= f.hidden_field :variant
= @fluentd.variant
.form-group
= f.label :pid_file
- if @fluentd.td_agent?
= f.text_field :pid_file, class: "form-control", disabled: true
= f.hidden_field :pid_file
- else
= f.text_field :pid_file, class: "form-control"
.form-group
= f.label :log_file
- if @fluentd.td_agent?
= f.text_field :log_file, class: "form-control", disabled: true
= f.hidden_field :log_file
- else
= f.text_field :log_file, class: "form-control"
.form-group
= f.label :config_file
- if @fluentd.td_agent?
= f.text_field :config_file, class: "form-control", disabled: true
= f.hidden_field :config_file
- else
= f.text_field :config_file, class: "form-control"
.form-group
= f.label :note
= f.text_field :note, class: "form-control"
= f.submit btn, class: "btn btn-primary"