Sha256: 96cccad69b291a7058e77ecabe70a4755cb3ec624c94d8c93c2fd543be220412
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
- nesting = nesting + [model] # do not mutate nesting value div.flex-table / header row = form_tag(api_doc_url(nesting: nesting, api_type: type), method: :post, remote: true, class: 'flex-line row') do - headers.each.with_index do |(header, settings), index| h1.flex-item - if index.zero? span.add.ico + span.exit.ico ❌ = submit_tag '✓' = render 'shared/param_inputs', settings: settings span.title = header - rows.each do |row_name, row_values| = form_tag(api_doc_url(nesting: nesting, api_type: type), method: :put, remote: true, class: 'flex-line row') do - headers.each_value.with_index do |(header_settings), index| - param_value = header_settings[:value].call(row_name, row_values) div.flex-item[class="#{'next-is-nested' if row_values.nested?}"] - if index.zero? span.ico ✏ span.exit.ico ❌ = submit_tag '✔' = render 'shared/param_inputs', settings: header_settings, value: param_value span.title = param_value - if row_values.nested? = render 'shared/table', nesting: nesting, model: row_values[:model] || row_name, rows: row_values.nested, headers: headers, type: type
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_api_documentation-0.2.3 | app/views/shared/_table.slim |