Sha256: 3c4655172f619b4ca6d8f767a7bdee3970a51cbf2afc6e92ff67b72254a6370d

Contents?: true

Size: 541 Bytes

Versions: 14

Compression:

Stored size: 541 Bytes

Contents

- if parameter.values.any?
  = haml :enumeration, locals: { parameter: parameter, disabled: true }
- else
  - placeholder = parameter.required ? 'required' : nil
  - if parameter.type == :array
    - name = "#{parameter.name}[]"
  - else
    - name = "#{parameter.name}[hash]"
    - placeholder = "key=value"
  %input.hidden{ disabled: true, type: 'text', name: name, placeholder: placeholder }

%input.add{ type: 'button', value: 'Add', class: parameter.type }
%input.remove.hidden{ type: 'button', value: 'Remove', class: parameter.type }

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cabbage_doc-0.1.4 web/views/array.haml
cabbage_doc-0.1.3 web/views/array.haml
cabbage_doc-0.1.2 web/views/array.haml
cabbage_doc-0.1.1 web/views/array.haml
cabbage_doc-0.1.0 web/views/array.haml
cabbage_doc-0.0.9 web/views/array.haml
cabbage_doc-0.0.8 web/views/array.haml
cabbage_doc-0.0.7 web/views/array.haml
cabbage_doc-0.0.6 web/views/array.haml
cabbage_doc-0.0.5 web/views/array.haml
cabbage_doc-0.0.4 web/views/array.haml
cabbage_doc-0.0.3 web/views/array.haml
cabbage_doc-0.0.2 web/views/array.haml
cabbage_doc-0.0.1 web/views/array.haml