Sha256: e9cf8556df6892acd87e91418f74bcc79eeaf5ffd09b8034bcb2c8fd33869a80

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

.row.col-sm-12
  =form_for @check, html: { class: 'form-horizontal' } do |f|

    .form-group
      =f.label :group_id, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.select :group_id, options_for_select( @groups.map{|g| [g.name, g.id]}, @check.group_id ), class: 'form-control'

    .form-group
      =f.label :host, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :host, class: 'form-control'

    .form-group
      =f.label :user, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :user, class: 'form-control'

    .form-group
      =f.label :pem_key, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :pem_key, class: 'form-control'

    .form-group
      =f.label :description, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :description, class: 'form-control'

    .form-group
      =f.label :interval, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :interval, class: 'form-control'

    .form-group
      =f.label :command, class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :command, class: 'form-control'

    .form-group
      =f.label :additional_command, 'Additional command (runs if command is fail)', class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :additional_command, class: 'form-control'

    .form-group
      =f.label :regexp, 'Critical if match:', class: 'col-sm-1 control-label'
      .col-sm-10
        =f.text_field :regexp, class: 'form-control'

    .form-group
      .col-sm-10.col-sm-offset-1
        =f.submit

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
my_nagios-0.0.17 app/views/my_nagios/checks/_form.haml
my_nagios-0.0.16 app/views/my_nagios/checks/_form.haml
my_nagios-0.0.15 app/views/my_nagios/checks/_form.haml
my_nagios-0.0.14 app/views/my_nagios/checks/_form.haml