<%= t("models.budget.fields.name", scope: "decidim.budgets") %> | +<%= t("models.budget.fields.total_budget", scope: "decidim.budgets") %> | +<%= t("models.budget.fields.projects_count", scope: "decidim.budgets") %> | + <%= th_resource_scope_label %> +<%= t("actions.title", scope: "decidim.budgets") %> | +||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ <% if allowed_to? :update, :budget, budget: budget %>
+ <%= link_to translated_attribute(budget.title), budget_projects_path(budget) %> + <% else %> + <%= translated_attribute(budget.title) %> + <% end %> + |
+ + <%= number_to_currency budget.total_budget, unit: Decidim.currency_unit, precision: 0 %> + | ++ <%= link_to budget.projects.count, budget_projects_path(budget) %> + | + <%= td_resource_scope_for(budget.scope) %> +
+ <% if allowed_to? :update, :budget, budget: budget %>
+ <%= icon_link_to "pencil-line", edit_budget_path(budget), t("actions.edit", scope: "decidim.budgets"), class: "action-icon--edit" %>
+ <% else %>
+ <%= icon "pencil-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.edit", scope: "decidim.budgets") %>
+ <% end %>
-
-
-
+ <% if allowed_to? :delete, :budget, budget: budget %>
+ <%= icon_link_to "delete-bin-line", budget_path(budget), 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 %>
+
|
+
<%= t ".selected_help" %>
+ <%= form.categories_select :decidim_category_id, current_participatory_space.categories, include_blank: true, disable_parents: false %><%= t ".selected_help" %>
+<%= t("models.project.fields.title", scope: "decidim.budgets") %> | -<%= t("index.confirmed_orders_count") %> | -<%= t(".selected") %> | - <% if component_settings.geocoding_enabled? %> -<%= t("models.project.fields.address", scope: "decidim.budgets") %> | - <% end %> - <%= th_resource_scope_label %> -<%= t("actions.title", scope: "decidim.budgets") %> | -||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+
+
+ <% 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 %>
+
|
+
- <%= icon "information", role: "img", "aria-hidden": true %> + <%= icon "information-line", role: "img", "aria-hidden": true %> <%= t(".error.#{@error_reason}.title") %>
<%= t(".error.#{@error_reason}.description") %>
diff --git a/app/views/decidim/budgets/orders/index.html.erb b/app/views/decidim/budgets/orders/index.html.erb index 276c414..facaa3b 100644 --- a/app/views/decidim/budgets/orders/index.html.erb +++ b/app/views/decidim/budgets/orders/index.html.erb @@ -28,7 +28,7 @@
<%= t("decidim.shared.share_modal.share") %>:
- -<%= t("decidim.shared.share_modal.share") %>:
+<%= t("decidim.shared.share_modal.share_link") %>:
- + +<%= t("decidim.shared.share_modal.share_link") %>:
+" if idx > 0 %> <%= link_to provider.root_path, class: "button button--icon button--#{normalize_provider_name(provider)}" do %> <%= authorization_provider_name(provider.key) %> - <%= icon("arrow-right", role: "img", "aria-hidden": true) %> + <%= icon("arrow-right-line", role: "img", "aria-hidden": true) %> <% end %> <% end %> <% end %> @@ -50,7 +50,7 @@ <%== "
" if idx > 0 %> <%= link_to decidim.send("user_#{provider}_omniauth_authorize_path", redirect_url: vote_path), class: "button button--icon button--#{normalize_provider_name(provider)}", method: :post do %> <%= identity_provider_name(provider) %> - <%= icon("arrow-right", role: "img", "aria-hidden": true) %> + <%= icon("arrow-right-line", role: "img", "aria-hidden": true) %> <% end %> <% end %> <% end %> diff --git a/app/views/decidim/budgets/votes/_landing.html.erb b/app/views/decidim/budgets/votes/_landing.html.erb index 4636758..d834d35 100644 --- a/app/views/decidim/budgets/votes/_landing.html.erb +++ b/app/views/decidim/budgets/votes/_landing.html.erb @@ -9,7 +9,7 @@ <% if user_authorized? %> <%= link_to vote_path, class: "button button--icon" do %> <%= t(".start_voting") %> - <%= icon("arrow-right", role: "img", "aria-hidden": true) %> + <%= icon("arrow-right-line", role: "img", "aria-hidden": true) %> <% end %> <% else %> <%= render partial: "decidim/budgets/votes/identify_user" %> @@ -26,7 +26,7 @@
<%= icon("circle-check", role: "img", "aria-hidden": true, class: "icon--notify") %>
+<%= icon("checkbox-circle-line", role: "img", "aria-hidden": true, class: "icon--notify") %>
<%= render partial: "decidim/budgets/votes/finished_content" %>- <%= icon "information", role: "img", "aria-hidden": true %> + <%= icon "information-line", role: "img", "aria-hidden": true %> <%= t(".empty_vote.title") %>
<%= t(".empty_vote.description") %>
@@ -73,7 +73,7 @@ <%= link_to projects_vote_path, class: "button primary hollow icon-before", aria: { label: t("decidim.budgets.votes.general.move_to_prev_step", name: t(".actions.previous")) } do %> - <%= icon "chevron-left", role: "img", "aria-hidden": true %> + <%= icon "arrow-left-s-line", role: "img", "aria-hidden": true %> <%= t(".actions.previous") %> <% end %> <%= button_to vote_path, class: "button primary icon-after", role: "link" do %> diff --git a/app/views/decidim/budgets/votes/show.html.erb b/app/views/decidim/budgets/votes/show.html.erb index 5ad74f1..8e24aff 100644 --- a/app/views/decidim/budgets/votes/show.html.erb +++ b/app/views/decidim/budgets/votes/show.html.erb @@ -9,7 +9,7 @@- <%= icon "information", role: "img", "aria-hidden": true %> + <%= icon "information-line", role: "img", "aria-hidden": true %> <%== invalid_authorization_title %>
<%== invalid_authorization_content %> diff --git a/lib/decidim/budgeting_pipeline/engine.rb b/lib/decidim/budgeting_pipeline/engine.rb index 5b15d90..a692f58 100644 --- a/lib/decidim/budgeting_pipeline/engine.rb +++ b/lib/decidim/budgeting_pipeline/engine.rb @@ -218,6 +218,11 @@ class Engine < ::Rails::Engine ) end end + + initializer "decidim_budgeting_pipeline.register_icons" do + Decidim.icons.register(name: "printer-line", icon: "printer-line", category: "system", description: "Block user icon", engine: :admin) + Decidim.icons.register(name: "checkbox-blank-circle-line", icon: "checkbox-blank-circle-line", category: "system", description: "Block user icon", engine: :admin) + end end end end