Sha256: 051f9dafe7cb0ac62e39fe40420eee01c3611c403c52d9b78f7f5487a5f9b4f7

Contents?: true

Size: 1.26 KB

Versions: 23

Compression:

Stored size: 1.26 KB

Contents

= simple_form_for(resource) do |f|
  = f.error_notification

  .form-inputs
    -# - if current_user.admin? and params[:controller] =~ /service/
    -#   / %input{ name: 'parent_id', collection: policy_scope(Account), class: :validate}
    -# - else
    %input{ type: :hidden, name: 'parent', value: 'Account' }
    %input{ type: :hidden, name: 'parent_id', value: f.object.account.id }

    .row
      = f.input :printer, required: true, disabled: @disabled

    .row
      = f.input :printed_by_id, required: true, disabled: @disabled

    .row
      = f.input :printed_by_type, required: true, disabled: @disabled

    .row
      = f.input :view_template_path, required: true, disabled: @disabled

    .row
      = f.input :name, required: true, disabled: @disabled

    .row
      = f.input :printing_class, required: true, disabled: @disabled

    .row
      = f.input :print_driver, required: true, disabled: @disabled

    .row
      = f.input :print_format, required: true, disabled: @disabled

    .row
      = f.input :state, required: true, disabled: @disabled

    .row
      = f.input :paper, required: true, disabled: @disabled

    .row
      = f.input :copies, required: true, disabled: @disabled

    .row
      = f.input :print_sql, required: true, disabled: @disabled

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
oxen_printer-0.2.4 app/views/oxen/print_jobs/_form.html.haml
oxen_printer-0.2.1 app/views/oxen/print_jobs/_form.html.haml
oxen_printer-0.0.3 app/views/oxen/print_jobs/_form.html.haml