<h2><%= t("admin.hidden_proposal_notifications.index.title") %></h2>
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.proposal_notifications")) %>
<p><%= t("admin.shared.moderated_content") %></p>

<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposal_notifications.index" %>

<% if @proposal_notifications.any? %>
  <h3><%= page_entries_info @proposal_notifications %></h3>

  <table>
    <thead>
      <th scope="col"><%= t("admin.shared.title") %></th>
      <th scope="col" class="small-6"><%= t("admin.shared.description") %></th>
      <th scope="col" class="small-4"><%= t("admin.shared.actions") %></th>
    </thead>
    <tbody>
    <% @proposal_notifications.each do |proposal_notification| %>
      <tr id="<%= dom_id(proposal_notification) %>">
        <td class="align-top">
          <strong><%= proposal_notification.title %></strong>
        </td>
        <td>
          <div class="moderation-description">
            <%= proposal_notification.body %>
          </div>
        </td>
        <td class="align-top">
          <%= render Admin::HiddenTableActionsComponent.new(proposal_notification) %>
        </td>
      </tr>
    <% end %>
    </tbody>
  </table>

  <%= paginate @proposal_notifications %>
<% else %>
  <div class="callout primary margin">
    <%= t("admin.hidden_proposal_notifications.index.no_hidden_proposals") %>
  </div>
<% end %>
