Sha256: 9323e98cd41fd60624cacc15cb1db59a5367a3d3ac6abd180263740fef58f1fa

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

<h2><%= t(".title") %></h2>

<div class="actions title">
  <%= link_to t("actions.new", scope: "decidim.budgets", name: t("models.project.name", scope: "decidim.budgets.admin")), new_project_path, class: 'new' if can? :manage, current_feature %>
</div>

<table class="stack">
  <thead>
    <tr>
      <th><%= t("models.project.fields.title", scope: "decidim.budgets") %></th>
      <th class="actions"><%= t("actions.title", scope: "decidim.budgets") %></th>
    </tr>
  </thead>
  <tbody>
    <% projects.each do |project| %>
      <tr data-id="<%= project.id %>">
        <td>
          <%= link_to translated_attribute(project.title), decidim_budgets.project_path(id: project, feature_id: current_feature, participatory_process_id: current_participatory_process), target: :blank %><br />
        </td>
        <td class="actions">
          <%= link_to t("actions.edit", scope: "decidim.budgets"), edit_project_path(project) if can? :update, current_feature %>
          <%= link_to t("actions.destroy", scope: "decidim.budgets"), project_path(project), method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.budgets") } if can? :destroy, current_feature %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
decidim-budgets-0.0.3 app/views/decidim/budgets/admin/projects/index.html.erb
decidim-0.0.3 decidim-budgets/app/views/decidim/budgets/admin/projects/index.html.erb