From 8b7f158951d016d8e2908a6318dd467399687f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 25 Oct 2023 15:02:17 +0200 Subject: [PATCH] Easy icons --- app/views/dmsf/copymove.html.erb | 4 ++-- app/views/dmsf_context_menus/_file.html.erb | 2 +- app/views/dmsf_files/_file_new_revision.html.erb | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/dmsf/copymove.html.erb b/app/views/dmsf/copymove.html.erb index 7bc43864..f9ff5c78 100644 --- a/app/views/dmsf/copymove.html.erb +++ b/app/views/dmsf/copymove.html.erb @@ -48,11 +48,11 @@

- <%= submit_tag l(:button_copy), id: 'copy_button' %> + <%= submit_tag l(:button_copy), id: 'copy_button', data: { cy: "button__copy--dmsf" } %> <%# TODO: Lock and proper permissions %> <% if User.current.allowed_to?(:folder_manipulation, @project) && User.current.allowed_to?(:file_manipulation, @project)%> - <%= submit_tag l(:button_move), id: 'move_button' %> + <%= submit_tag l(:button_move), id: 'move_button', data: { cy: "button__move--dmsf" } %> <% end %>

<% end %> diff --git a/app/views/dmsf_context_menus/_file.html.erb b/app/views/dmsf_context_menus/_file.html.erb index f3db389e..06b31972 100644 --- a/app/views/dmsf_context_menus/_file.html.erb +++ b/app/views/dmsf_context_menus/_file.html.erb @@ -76,7 +76,7 @@
  • <%= context_menu_link l(:field_mail), entries_operations_dmsf_path(id: project, folder_id: folder, ids: params[:ids], email_entries: true, back_url: back_url), method: :post, class: 'icon icon-email', - disabled: !email_allowed %> + data: { cy: "icon__email--dmsf_file_#{dmsf_file.id}" }, disabled: !email_allowed %>
  • <% if Setting.plugin_redmine_dmsf['dmsf_webdav'].present? %>
  • diff --git a/app/views/dmsf_files/_file_new_revision.html.erb b/app/views/dmsf_files/_file_new_revision.html.erb index 5d4947ec..238a8e36 100644 --- a/app/views/dmsf_files/_file_new_revision.html.erb +++ b/app/views/dmsf_files/_file_new_revision.html.erb @@ -21,7 +21,9 @@ %>
    - <%= l(:heading_new_revision) %> [+] + <%= l(:heading_new_revision) %> + [+] +
    <% if @file.locked_for_user? %>

    <%= l(:info_file_locked) %>

    @@ -75,7 +77,7 @@ <%= f.text_area :comment, rows: 2, label: l(:label_comment), class: 'wiki-edit dmsf-description' %>

    - <%= f.submit l(:button_create), class: 'button-positive' %> + <%= f.submit l(:button_create), class: 'button-positive', data: { cy: "button__submit--file_dmsf"} %>
    <% end %> <% end %>