Sha256: c2fad630861c8ff6307ef424ad261ffcef2677d3b2aeda9154283f0b908034d3

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

= form_tag commands_path, method: 'POST', class: 'form-horizontal' do
  = hidden_field_tag :redirect_to, request.fullpath
  .form-group
    = label_tag :image, 'Image', class: 'col-sm-3 control-label'
    .col-sm-9
      = text_field_tag :image, Rhea.configuration.default_image, class: 'form-control', style: 'width: 100%;', placeholder: Rhea.configuration.default_image
  .form-group
    = label_tag :command_type_key, 'Type', class: 'col-sm-3 control-label'
    .col-sm-9
      = select_tag :command_type_key, options_for_select(Rhea::CommandType.options_for_select, Rhea.configuration.default_command_type_key), class: 'form-control', style: 'width: 90px;', required: 'required'
  .form-group
    = label_tag :command_syntax, 'Command', class: 'col-sm-3 control-label', style: 'font-weight: normal;'
    .col-sm-9
      %pre.command-syntax{style: 'font-size: 12px;'}
        = Rhea::CommandType.find(Rhea.configuration.default_command_type_key).displayed_format
  .form-group
    = label_tag :command_type_input, '$input', class: 'col-sm-3 control-label'
    .col-sm-9
      = text_field_tag :command_type_input, nil, class: 'form-control', style: 'width: 100%;'
  .form-group
    = label_tag :process_count, 'Processes', class: 'col-sm-3 control-label'
    .col-sm-9
      = text_field_tag :process_count, 1, class: 'form-control', style: 'width: 50px;', placeholder: 1
  .form-group
    .col-sm-3
    .col-sm-9
      = submit_tag 'Create', class: 'btn btn-success'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhea-0.2.0 app/views/rhea/commands/_form.html.haml