<%= check_box_tag "project_ids_s[]", project.id, false, class: "js-check-all-resources js-project-list-check js-resource-id-#{project.id}" %>
|
<%= project.id %>
|
<% if allowed_to? :update, :project, project: project %>
<%= link_to translated_attribute(project.title), resource_locator([budget, project]).edit %>
<% else %>
<%= translated_attribute(project.title) %>
<% end %>
|
<% if project.category %>
<%= translated_attribute project.category.name %>
<% end %>
|
<% if current_component.has_subscopes? %>
<%= td_resource_scope_for(project.scope) %>
<% end %>
<%= project.confirmed_orders_count %>
|
<% if project.selected? %>
<%= content_tag :strong, t("yes", scope: "decidim.budgets.admin.projects.index.selected_options"), class: "label success" %>
<% else %>
<%= content_tag :strong, t("no", scope: "decidim.budgets.admin.projects.index.selected_options"), class: "label" %>
<% end %>
|
<% if maps_enabled? && Decidim::Map.available?(:static, :geocoding) %>
<%= static_map_link(project, {}, { class: "static-map__admin" }) %>
|
<% end %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "pencil-line", resource_locator([budget, project]).edit, t("actions.edit", scope: "decidim.budgets"), class: "action-icon--edit" %>
<% end %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "folder-line", project_attachment_collections_path(project), t("actions.attachment_collections", scope: "decidim.budgets"), class: "action-icon--attachment_collections" %>
<% end %>
<% if allowed_to? :update, :project, project: project %>
<%= icon_link_to "attachment-line", project_attachments_path(project), t("actions.attachments", scope: "decidim.budgets"), class: "action-icon--attachments" %>
<% end %>
<%= icon_link_to "eye-line", resource_locator([budget, project]).path, t("actions.preview", scope: "decidim.budgets"), target: :blank, class: "action-icon--preview", data: { "external-link": false } %>
<%= resource_permissions_link(project) %>
<% if allowed_to? :destroy, :project, project: project %>
<%= icon_link_to "delete-bin-line", resource_locator([budget, project]).show, t("actions.destroy", scope: "decidim.budgets"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.budgets") } %>
<% else %>
<%= icon "delete-bin-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.budgets") %>
<% end %>
|