diff --git a/OVERRIDES.md b/OVERRIDES.md new file mode 100644 index 0000000..335476a --- /dev/null +++ b/OVERRIDES.md @@ -0,0 +1,3 @@ +## Overriden files +- app/views/decidim/admin/scope_types/index.html.erb +(from https://github.com/decidim/decidim/blob/c91df0b7936982f2b8db6370aaf8b05c1d52a08c/decidim-admin/app/views/decidim/admin/scope_types/index.html.erb) diff --git a/app/views/decidim/admin/scope_types/index.html.erb b/app/views/decidim/admin/scope_types/index.html.erb new file mode 100644 index 0000000..c4c9e14 --- /dev/null +++ b/app/views/decidim/admin/scope_types/index.html.erb @@ -0,0 +1,42 @@ +
+
+ <% if allowed_to? :creste, :scope_type %> +

<%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), [:new, :scope_type], class: "button tiny button--title" %>

+ <% end %> +
+
+
+ + + + + + + + + + <% scope_types.each do |scope_type| %> + + + + + + <% end %> + +
<%= t("models.scope_type.fields.name", scope: "decidim.admin") %><%= t("models.scope_type.fields.plural", scope: "decidim.admin") %>
+ <%= translated_attribute(scope_type.name) %> + + <%= translated_attribute(scope_type.plural) %> + + + <% if allowed_to? :update, :scope_type, scope_type: scope_type %> + <%= icon_link_to "pencil", [:edit, scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %> + <% end %> + + <% if allowed_to? :destroy, :scope_type, scope_type: scope_type %> + <%= icon_link_to "circle-x", scope_type, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> + <% end %> +
+
+
+