Sha256: fbe0bb9c4039111803ec7ee4d71aa9370715bd9cb341511bcb619a270c19bb86

Contents?: true

Size: 983 Bytes

Versions: 1

Compression:

Stored size: 983 Bytes

Contents

<td>
  <%= model.name %>
  <% if model.name_short.present? %>
    (<%= model.name_short %>)
  <% end %>
</td>
<td><%= image_tag model.logo.variant(resize_to_limit: [30, 30]) if model.logo.attached? %></td>
<td><%= simple_format model.domains %></td>
<td>
  <p><%= model.area&.full_name %></p>
  <p><%= model.address %></p>
</td>
<td>
  <%= form_with theme: nil, model: model, url: { action: 'update', id: model.id }, data: { controller: 'input' } do |f| %>
    <%= f.check_box :official, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
    <label data-action="click->input#check"></label>
  <% end %>
</td>
<td>
  <div>
    <% model.roles.pluck(:name).each do |role| %>
      <span><%= role %></span>
    <% end %>
    <%= link_to({ controller: 'roled/admin/who_roles', action: 'edit', who_type: 'Organ', who_id: model.id }, aria: { label: t('role.admin.who_roles.edit.title') }) do %>
      <i class="fas fa-user-shield"></i>
    <% end %>
  </div>
</td>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/views/org/panel/organs/_index_tbody.html.erb