Sha256: 13d811c1186f079058ba7f6f2610d06181e9d166b7aaa8cea13543ab278286c7

Contents?: true

Size: 1.66 KB

Versions: 8

Compression:

Stored size: 1.66 KB

Contents

- include_javascript 'admin/ruledtable'

- @page_title = t('templates') + ' - ' + default_page_title

.outset
  = render_region :top
  %table.index#templates
    %thead
      %tr
        - render_region :thead do |thead|
          - thead.title_header do
            %th.template_name= t('template')
          - thead.parts_header do
            %th.parts= t('parts')
          - thead.actions_header do
            %th.actions{:style=>"width:9em"}= t('modify')
          - thead.order_header do
            %th.order{:style=>"width:9em"}= t('order')
    %tbody
      - if @content_templates.any?
        - @content_templates.each do |template|
          %tr[template]
            - render_region :tbody, :locals => {:template => template} do |tbody|
              - tbody.title_cell do
                %td.name{:style => "white-space: nowrap"}
                  = image('template', :alt => '')
                  = link_to template.name, edit_admin_template_url(template)
              - tbody.parts_cell do
                %td.parts
                  - template.template_parts.each do |part|
                    = part.name + ' '
              - tbody.actions_cell do
                %td.actions
                  = link_to image('minus') + ' ' + t('remove'), remove_admin_template_url(template), :class => "action"
              - tbody.order_cell do
                %td.order
                  = order_links(template)  
      - else
        %tr
          %td.empty{:colspan => admin.template.index.tbody.length}= t('no_templates')

- render_region :bottom do |bottom|
  - bottom.new_button do
    #actions
      %ul
        %li= link_to image('plus') + " " + t('new_template'), new_admin_template_url

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.7 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.6 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.5 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.4 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.3 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.2 app/views/admin/templates/index.html.haml
radiant-templates-extension-1.0.1 app/views/admin/templates/index.html.haml