Sha256: 161b6358780066fc5180bf28dd69456b5ae7582825b5a771bdc385fa20d49e17

Contents?: true

Size: 1.37 KB

Versions: 23

Compression:

Stored size: 1.37 KB

Contents



%br

%ul.nav.nav-tabs

  - groups.each_with_index do |rm, idx|
    %li{class: (idx == 0 ? 'active' : '')}
      %a{"data-toggle" => "tab", :href => "#rm_#{rm[:recapitulation_model].tableize}"}
        = rm[:recapitulation_title].presence || "#{t(rm[:recapitulation_model].tableize)}"

.tab-content

  - groups.each_with_index do |rm, idx|
    - advanced_search_attributes = rm[:advanced_search_attributes]
    .tab-pane{id: "rm_#{rm[:recapitulation_model].tableize}", class: (idx == 0 ? 'active' : '')}
      - items = []
      - recapitulation_matrix = rm[:recapitulation_matrix]
      - recapitulation_matrix.each do |item|
        - case item
        - when Hash
          - label = t(item[:label])
          - value = item[:value]
        - else
          - label_splitter = item.split('__').first.split('.')
          - label = label_splitter.pop
          - label = t([label_splitter, label].compact.join('_'))
          - value = item
        - items << [value, label]

      .well
        %h2
          = "Rekapitulasi "
          = rm[:recapitulation_title].presence || "#{t(rm[:recapitulation_model].tableize)}"
        %br

        = render "rich_table_component/rtc/recapitulation_matrix_form",  
          recapitulation_model: rm[:recapitulation_model],
          rm_operation: rm[:operation],
          items: items,
          advanced_search_attributes: advanced_search_attributes

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.29 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.28 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.27 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.26 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.24 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.22 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.21 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.18 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.17 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.16 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.15 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.14 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.13 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.10 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.9 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.8 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.7 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.6 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml
rich_table_component-0.0.5 app/views/rich_table_component/_recapitulation_matrix_groups.html.haml