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