fluentd-ui/app/views/fluentd/_form.html.haml
2014-10-04 15:19:14 +09:00

32 lines
1.0 KiB
Plaintext

.col-xs-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"
= f.submit btn, class: "btn btn-primary"