Sha256: 116bef2d4a7fab564a766f18fa0a765b48777965c44f9fbdd1db17a87d0c477a

Contents?: true

Size: 945 Bytes

Versions: 6

Compression:

Stored size: 945 Bytes

Contents

- prepare_resource_name(nested_resources, :contact)
div class="#{@resource_name.pluralize}"
  = index_header do
    div id="new-#{@resource_name}" class='hide'
    .pull-left
      = count_div "#{@resource_name.pluralize}-count" do
        = print_count nested_resources.last.contacts_count, t_contact_list
    .pull-right
      = ajax_link_to_new t(:'contact.add'), [:new, nested_resources, :contact].flatten, id: "new-#{@resource_name}-link" if can_edit?

  = hr

  = index_body do
    = table_for "#{@resource_name.pluralize}-index" do
      thead
        tr
          = th_icon 'home'
          = th t(:'contact.contact_type')
          = th t(:'contact.data')
          = th t(:'contact.details')
          = th t(:'contact.emergency')
          = th_actions 2 if can_edit?
      tbody
        = render partial: 'gaku/contacts/contact', collection: nested_resources.last.contacts, as: :contact, locals: {nested_resources: nested_resources}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/views/gaku/contacts/_contacts.html.slim
gaku-0.0.3 core/app/views/gaku/contacts/_contacts.html.slim
gaku-0.0.2 core/app/views/gaku/contacts/_contacts.html.slim
gaku_core-0.0.2 app/views/gaku/contacts/_contacts.html.slim
gaku-0.0.1 core/app/views/gaku/contacts/_contacts.html.slim
gaku_core-0.0.1 app/views/gaku/contacts/_contacts.html.slim