mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
erb_lint auto fix quoted symbol
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
concat(
|
||||
render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do
|
||||
concat(render(Primer::ButtonComponent.new(data: { 'close-dialog-id': dialog_id })) { cancel_button_text })
|
||||
concat(render(Primer::ButtonComponent.new(data: { "close-dialog-id": dialog_id })) { cancel_button_text })
|
||||
concat(render(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) { submit_button_text })
|
||||
end
|
||||
)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%=
|
||||
grid_layout("op-ee-banner", **@system_arguments) do |grid|
|
||||
grid.with_area(:'icon-container') do
|
||||
grid.with_area(:"icon-container") do
|
||||
content_tag :div, class: "op-ee-banner--shield" do
|
||||
render(
|
||||
Primer::Beta::Octicon.new(
|
||||
@@ -11,9 +11,9 @@
|
||||
)
|
||||
end
|
||||
end
|
||||
grid.with_area(:'title-container') { render(Primer::Beta::Text.new) { title } }
|
||||
grid.with_area(:'description-container') { render(Primer::Beta::Text.new) { description } }
|
||||
grid.with_area(:'link-container') do
|
||||
grid.with_area(:"title-container") { render(Primer::Beta::Text.new) { title } }
|
||||
grid.with_area(:"description-container") { render(Primer::Beta::Text.new) { description } }
|
||||
grid.with_area(:"link-container") do
|
||||
render(Primer::Beta::Link.new(href: href)) do |link|
|
||||
link.with_trailing_visual_icon(icon: "link-external")
|
||||
link_title
|
||||
|
||||
@@ -44,7 +44,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= select_tag "status",
|
||||
user_status_options,
|
||||
class: "simple-filters--filter-value",
|
||||
'data-members-form-target': "statusSelect" %>
|
||||
"data-members-form-target": "statusSelect" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if has_groups? %>
|
||||
|
||||
@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
collection.with_component(Primer::Alpha::Dialog::Footer.new) do
|
||||
component_collection do |footer|
|
||||
footer.with_component(Primer::ButtonComponent.new(data: { 'close-dialog-id': "new-access-token-dialog" })) do
|
||||
footer.with_component(Primer::ButtonComponent.new(data: { "close-dialog-id": "new-access-token-dialog" })) do
|
||||
I18n.t("button_cancel")
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
size: :medium,
|
||||
aria: { label: I18n.t("js.notifications.center.mark_all_read") }
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: :'op-read-all')
|
||||
button.with_leading_visual_icon(icon: :"op-read-all")
|
||||
I18n.t("js.notifications.center.mark_all_read")
|
||||
end
|
||||
end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%=
|
||||
component_wrapper(data: { 'test-selector': "op-admin-oauth--application" }) do
|
||||
component_wrapper(data: { "test-selector": "op-admin-oauth--application" }) do
|
||||
flex_layout(align_items: :center, justify_content: :space_between) do |oauth_application_container|
|
||||
oauth_application_container.with_column(flex_layout: true) do |application_information|
|
||||
application_information.with_column(mr: 2) do
|
||||
@@ -35,7 +35,7 @@
|
||||
csrf_token: form_authenticity_token,
|
||||
checked: @application.enabled?,
|
||||
data: {
|
||||
'test-selector': "op-admin-oauth--application-enabled-toggle-switch"
|
||||
"test-selector": "op-admin-oauth--application-enabled-toggle-switch"
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
render(
|
||||
border_box_container(
|
||||
mb: 4, data: {
|
||||
'test-selector': "op-admin-oauth--built-in-applications"
|
||||
"test-selector": "op-admin-oauth--built-in-applications"
|
||||
}
|
||||
)
|
||||
) do |component|
|
||||
@@ -21,7 +21,7 @@
|
||||
render(
|
||||
Primer::Beta::Text.new(
|
||||
data: {
|
||||
'test-selector': "op-admin-oauth--built-in-applications-placeholder"
|
||||
"test-selector": "op-admin-oauth--built-in-applications-placeholder"
|
||||
}
|
||||
)
|
||||
) do
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
if @other_applications.empty?
|
||||
component.with_row do
|
||||
render(Primer::Beta::Text.new(data: { 'test-selector': "op-admin-oauth--applications-placeholder" })) do
|
||||
render(Primer::Beta::Text.new(data: { "test-selector": "op-admin-oauth--applications-placeholder" })) do
|
||||
t("oauth.empty_application_lists")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
color: text_color,
|
||||
style: "max-height: #{max_height};",
|
||||
data: {
|
||||
'attribute-target': "descriptionText"
|
||||
"attribute-target": "descriptionText"
|
||||
}
|
||||
)
|
||||
) { short_text } %>
|
||||
@@ -21,7 +21,7 @@
|
||||
tag: :div,
|
||||
display: display_expand_button_value,
|
||||
classes: "op-long-text-attribute--text-hider",
|
||||
data: { 'attribute-target': "textHider" }
|
||||
data: { "attribute-target": "textHider" }
|
||||
)
|
||||
) %>
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
"aria-label": I18n.t("label_attribute_expand_text", attribute: name),
|
||||
display: display_expand_button_value,
|
||||
data: {
|
||||
'attribute-target': "expandButton",
|
||||
'test-selector': "expand-button"
|
||||
"attribute-target": "expandButton",
|
||||
"test-selector": "expand-button"
|
||||
},
|
||||
button_arguments: { 'data-show-dialog-id': id },
|
||||
button_arguments: { "data-show-dialog-id": id },
|
||||
classes: "op-long-text-attribute--text-expander"
|
||||
)
|
||||
) %>
|
||||
@@ -43,7 +43,7 @@
|
||||
Primer::Alpha::Dialog.new(
|
||||
id: id,
|
||||
data: {
|
||||
'test-selector': "attribute-dialog"
|
||||
"test-selector": "attribute-dialog"
|
||||
},
|
||||
title: name,
|
||||
size: :large
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= render(
|
||||
Primer::Alpha::Dialog.new(
|
||||
title: t(:'queries.configure_view.heading'),
|
||||
title: t(:"queries.configure_view.heading"),
|
||||
size: :large,
|
||||
id: MODAL_ID,
|
||||
# Hack to give the draggable autcompleter (ng-select) bound to the dialog
|
||||
@@ -33,9 +33,9 @@
|
||||
id: COLUMN_HTML_ID,
|
||||
dragAreaName: "#{COLUMN_HTML_ID}_dragarea",
|
||||
formControlId: "#{COLUMN_HTML_ID}_autocompleter",
|
||||
inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
|
||||
inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
|
||||
dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label'),
|
||||
inputLabel: I18n.t(:"queries.configure_view.columns.input_label"),
|
||||
inputPlaceholder: I18n.t(:"queries.configure_view.columns.input_placeholder"),
|
||||
dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label"),
|
||||
appendToComponent: true
|
||||
} %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<%= render(
|
||||
Primer::Alpha::Dialog.new(
|
||||
title: t(:'projects.lists.delete_modal.title'),
|
||||
title: t(:"projects.lists.delete_modal.title"),
|
||||
size: :large,
|
||||
id: MODAL_ID,
|
||||
data: { 'test-selector': MODAL_ID }
|
||||
data: { "test-selector": MODAL_ID }
|
||||
)
|
||||
) do |d| %>
|
||||
<% d.with_header(variant: :large) %>
|
||||
<% d.with_body { t(:'projects.lists.delete_modal.text') } %>
|
||||
<% d.with_body { t(:"projects.lists.delete_modal.text") } %>
|
||||
<% d.with_footer do %>
|
||||
<%= render(Primer::Beta::Button.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %>
|
||||
<%= form_with(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%= component_wrapper(tag: "turbo-frame") do %>
|
||||
<%=
|
||||
render(Primer::OpenProject::PageHeader.new(state: @state)) do |header|
|
||||
header.with_title(data: { 'test-selector': "project-query-name" }) do |title|
|
||||
header.with_title(data: { "test-selector": "project-query-name" }) do |title|
|
||||
title.with_editable_form(
|
||||
model: query,
|
||||
update_path: @query.new_record? ? project_queries_path(projects_query_params) : project_query_path(@query, projects_query_params),
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
menu.with_item(
|
||||
tag: :a,
|
||||
label: t(:'queries.configure_view.heading'),
|
||||
label: t(:"queries.configure_view.heading"),
|
||||
href: configure_view_modal_project_queries_path(projects_query_params),
|
||||
content_arguments: { data: { controller: "async-dialog" } }
|
||||
) do |item|
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
disabled: @disable_buttons,
|
||||
size: :medium,
|
||||
aria: { label: I18n.t(:label_project_new) },
|
||||
data: { 'test-selector': "project-new-button" }
|
||||
data: { "test-selector": "project-new-button" }
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: :plus)
|
||||
Project.model_name.human
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
end
|
||||
end
|
||||
header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
|
||||
actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
|
||||
actions_container.with_column(data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }) do
|
||||
render(
|
||||
Primer::Beta::Button.new(
|
||||
tag: :a,
|
||||
@@ -41,15 +41,15 @@
|
||||
scheme: :invisible,
|
||||
font_weight: :bold,
|
||||
color: :subtle,
|
||||
'aria-label': t("projects.settings.actions.label_enable_all"),
|
||||
data: { 'turbo-method': :post, test_selector: "enable-all-life-cycle-steps" }
|
||||
"aria-label": t("projects.settings.actions.label_enable_all"),
|
||||
data: { "turbo-method": :post, test_selector: "enable-all-life-cycle-steps" }
|
||||
)
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: "check-circle", color: :subtle)
|
||||
t("projects.settings.actions.label_enable_all")
|
||||
end
|
||||
end
|
||||
actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
|
||||
actions_container.with_column(data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }) do
|
||||
render(
|
||||
Primer::Beta::Button.new(
|
||||
tag: :a,
|
||||
@@ -57,8 +57,8 @@
|
||||
scheme: :invisible,
|
||||
font_weight: :bold,
|
||||
color: :subtle,
|
||||
'aria-label': t("projects.settings.actions.label_disable_all"),
|
||||
data: { 'turbo-method': :post, test_selector: "disable-all-life-cycle-steps" }
|
||||
"aria-label": t("projects.settings.actions.label_disable_all"),
|
||||
data: { "turbo-method": :post, test_selector: "disable-all-life-cycle-steps" }
|
||||
)
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: "x-circle", color: :subtle)
|
||||
@@ -75,7 +75,7 @@
|
||||
else
|
||||
life_cycle_definitions_and_step_active.each do |definition, active|
|
||||
component.with_row(
|
||||
data: { 'projects--settings--border-box-filter-target': "searchItem" },
|
||||
data: { "projects--settings--border-box-filter-target": "searchItem" },
|
||||
test_selector: "project-life-cycle-step-#{definition.id}"
|
||||
) do
|
||||
render(Projects::Settings::LifeCycleSteps::StepComponent.new(definition:, active?: active))
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
}
|
||||
),
|
||||
csrf_token: form_authenticity_token,
|
||||
data: { 'turbo-method': :put, 'turbo-stream': true,
|
||||
data: { "turbo-method": :put, "turbo-stream": true,
|
||||
test_selector: "toggle-project-custom-field-mapping-#{@project_custom_field.id}" },
|
||||
checked: active_in_project?,
|
||||
enabled: !@project_custom_field.required?, # required fields cannot be disabled
|
||||
|
||||
+7
-7
@@ -17,7 +17,7 @@
|
||||
end
|
||||
end
|
||||
section_header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
|
||||
actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
|
||||
actions_container.with_column(data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }) do
|
||||
render(
|
||||
Primer::Beta::Button.new(
|
||||
tag: :a,
|
||||
@@ -30,15 +30,15 @@
|
||||
scheme: :invisible,
|
||||
font_weight: :bold,
|
||||
color: :subtle,
|
||||
'aria-label': t("projects.settings.actions.label_enable_all"),
|
||||
data: { 'turbo-method': :put, 'turbo-stream': true, test_selector: "enable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
|
||||
"aria-label": t("projects.settings.actions.label_enable_all"),
|
||||
data: { "turbo-method": :put, "turbo-stream": true, test_selector: "enable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
|
||||
)
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: "check-circle", color: :subtle)
|
||||
t("projects.settings.actions.label_enable_all")
|
||||
end
|
||||
end
|
||||
actions_container.with_column(data: { 'projects--settings--border-box-filter-target': "hideWhenFiltering" }) do
|
||||
actions_container.with_column(data: { "projects--settings--border-box-filter-target": "hideWhenFiltering" }) do
|
||||
render(
|
||||
Primer::Beta::Button.new(
|
||||
tag: :a,
|
||||
@@ -51,8 +51,8 @@
|
||||
scheme: :invisible,
|
||||
font_weight: :bold,
|
||||
color: :subtle,
|
||||
'aria-label': t("projects.settings.actions.label_disable_all"),
|
||||
data: { 'turbo-method': :put, 'turbo-stream': true, test_selector: "disable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
|
||||
"aria-label": t("projects.settings.actions.label_disable_all"),
|
||||
data: { "turbo-method": :put, "turbo-stream": true, test_selector: "disable-all-project-custom-field-mappings-#{@project_custom_field_section.id}" }
|
||||
)
|
||||
) do |button|
|
||||
button.with_leading_visual_icon(icon: "x-circle", color: :subtle)
|
||||
@@ -68,7 +68,7 @@
|
||||
end
|
||||
else
|
||||
@project_custom_fields.each do |project_custom_field|
|
||||
component.with_row(data: { 'projects--settings--border-box-filter-target': "searchItem" }) do
|
||||
component.with_row(data: { "projects--settings--border-box-filter-target": "searchItem" }) do
|
||||
render(
|
||||
Projects::Settings::ProjectCustomFieldSections::CustomFieldRowComponent.new(
|
||||
project: @project,
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
end
|
||||
main_container.with_column do
|
||||
render(Primer::Alpha::ActionMenu.new(data: { test_selector: "project-custom-field-action-menu" })) do |menu|
|
||||
menu.with_show_button(icon: "kebab-horizontal", 'aria-label': t("settings.project_attributes.label_project_custom_field_actions"), scheme: :invisible)
|
||||
menu.with_show_button(icon: "kebab-horizontal", "aria-label": t("settings.project_attributes.label_project_custom_field_actions"), scheme: :invisible)
|
||||
edit_action_item(menu)
|
||||
move_actions(menu)
|
||||
delete_action_item(menu)
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
|
||||
collection.with_component(Primer::Alpha::Dialog::Footer.new) do
|
||||
component_collection do |modal_footer|
|
||||
modal_footer.with_component(Primer::ButtonComponent.new(data: { 'close-dialog-id': "project-custom-field-section-dialog#{@project_custom_field_section.id}" })) do
|
||||
modal_footer.with_component(Primer::ButtonComponent.new(data: { "close-dialog-id": "project-custom-field-section-dialog#{@project_custom_field_section.id}" })) do
|
||||
t("button_cancel")
|
||||
end
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%=
|
||||
component_wrapper(data: wrapper_data_attributes) do
|
||||
if @project_custom_field_sections.any?
|
||||
flex_layout(classes: "dragula-container", data: { 'allowed-drop-type': "section" }.merge(drop_target_config)) do |flex|
|
||||
flex_layout(classes: "dragula-container", data: { "allowed-drop-type": "section" }.merge(drop_target_config)) do |flex|
|
||||
@project_custom_field_sections.each do |section|
|
||||
flex.with_row(
|
||||
data: draggable_item_config(section)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
section_header_container.with_column(flex_layout: true, justify_content: :flex_end) do |actions_container|
|
||||
actions_container.with_column do
|
||||
render(Primer::Alpha::ActionMenu.new(data: { test_selector: "project-custom-field-section-action-menu" })) do |menu|
|
||||
menu.with_show_button(icon: "kebab-horizontal", 'aria-label': t("settings.project_attributes.label_section_actions"), scheme: :invisible)
|
||||
menu.with_show_button(icon: "kebab-horizontal", "aria-label": t("settings.project_attributes.label_section_actions"), scheme: :invisible)
|
||||
edit_action_item(menu)
|
||||
move_actions(menu)
|
||||
if @project_custom_fields.empty?
|
||||
@@ -40,7 +40,7 @@
|
||||
end
|
||||
end
|
||||
if @project_custom_fields.empty?
|
||||
component.with_row(data: { 'empty-list-item': true }) do
|
||||
component.with_row(data: { "empty-list-item": true }) do
|
||||
flex_layout(align_items: :center, justify_content: :space_between) do |empty_list_container|
|
||||
empty_list_container.with_column(ml: 4, mr: 2) do
|
||||
render(Primer::Beta::Text.new(color: :subtle)) { t("settings.project_attributes.label_no_project_custom_fields") }
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
render Primer::OpenProject::SubHeader.new do |subheader|
|
||||
subheader.with_action_component do
|
||||
render(Primer::Alpha::Dialog.new(id: "project-custom-field-section-dialog", title: t("settings.project_attributes.label_new_section"), size: :medium_portrait)) do |dialog|
|
||||
dialog.with_show_button('aria-label': t("settings.project_attributes.label_new_section")) do |button|
|
||||
dialog.with_show_button("aria-label": t("settings.project_attributes.label_new_section")) do |button|
|
||||
button.with_leading_visual_icon(icon: :plus)
|
||||
t("settings.project_attributes.label_new_section")
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
data: { test_selector: "op-share-dialog-bulk-update-role" }
|
||||
)
|
||||
) do |menu|
|
||||
menu.with_show_button(scheme: :invisible, color: :subtle, data: { 'shares--bulk-selection-target': "bulkUpdateRoleLabel" }) do |button|
|
||||
menu.with_show_button(scheme: :invisible, color: :subtle, data: { "shares--bulk-selection-target": "bulkUpdateRoleLabel" }) do |button|
|
||||
button.with_trailing_action_icon(icon: "triangle-down")
|
||||
"Placeholder"
|
||||
end
|
||||
@@ -23,9 +23,9 @@
|
||||
method: :patch,
|
||||
name: "role_ids[]",
|
||||
value: role_hash[:value],
|
||||
data: { 'shares--bulk-selection-target': "bulkForm bulkUpdateRoleForm",
|
||||
'role-name': role_hash[:label],
|
||||
'test-selector': "op-share-dialog-bulk-update-role-permission-#{role_hash[:label]}" }
|
||||
data: { "shares--bulk-selection-target": "bulkForm bulkUpdateRoleForm",
|
||||
"role-name": role_hash[:label],
|
||||
"test-selector": "op-share-dialog-bulk-update-role-permission-#{role_hash[:label]}" }
|
||||
}
|
||||
) do |item|
|
||||
item.with_description.with_content(role_hash[:description])
|
||||
|
||||
@@ -6,20 +6,20 @@
|
||||
value: nil,
|
||||
label: I18n.t("sharing.label_toggle_all"),
|
||||
visually_hide_label: true,
|
||||
data: { 'shares--bulk-selection-target': "toggleAll",
|
||||
data: { "shares--bulk-selection-target": "toggleAll",
|
||||
action: "shares--bulk-selection#toggle" }
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
concat(
|
||||
render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': "sharedCounter" })) do
|
||||
render(Primer::Beta::Text.new(ml: 2, data: { "shares--bulk-selection-target": "sharedCounter" })) do
|
||||
I18n.t("sharing.count", count:)
|
||||
end
|
||||
)
|
||||
|
||||
# Text contents managed by Stimulus controller
|
||||
concat(
|
||||
render(Primer::Beta::Text.new(ml: 2, data: { 'shares--bulk-selection-target': "selectedCounter" }))
|
||||
render(Primer::Beta::Text.new(ml: 2, data: { "shares--bulk-selection-target": "selectedCounter" }))
|
||||
)
|
||||
%>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
)
|
||||
) do |menu|
|
||||
menu.with_show_button(
|
||||
disabled: !editable?, data: { 'shares--bulk-selection-target': "userRowRole",
|
||||
'share-id': share.id,
|
||||
'active-role-name': permission_name(active_role.id) }
|
||||
disabled: !editable?, data: { "shares--bulk-selection-target": "userRowRole",
|
||||
"share-id": share.id,
|
||||
"active-role-name": permission_name(active_role.id) }
|
||||
) do |button|
|
||||
button.with_trailing_action_icon(icon: :"triangle-down")
|
||||
permission_name(active_role.id)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%=
|
||||
modal_content.with_row(data: { 'test-selector': "op-share-dialog-upsale-block" }) do
|
||||
modal_content.with_row(data: { "test-selector": "op-share-dialog-upsale-block" }) do
|
||||
render Primer::OpenProject::FeedbackMessage.new(icon_arguments: { icon: :"op-enterprise-addons", classes: "upsale-colored" }, border: true) do |component|
|
||||
component.with_heading(tag: :h2, classes: "upsale-colored").with_content(I18n.t(:"ee.upsale.title"))
|
||||
component.with_description { I18n.t("sharing.project_queries.upsale.message") }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%=
|
||||
render(Primer::Alpha::Dialog.new(title: strategy.title, id: "sharing-modal", data: { 'keep-open-on-submit': true }, size: :xlarge, open: open)) do |d|
|
||||
render(Primer::Alpha::Dialog.new(title: strategy.title, id: "sharing-modal", data: { "keep-open-on-submit": true }, size: :xlarge, open: open)) do |d|
|
||||
d.with_header(variant: :large)
|
||||
d.with_body do
|
||||
render(strategy.modal_body_component(errors))
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
buttons.with_component(
|
||||
Primer::ButtonComponent.new(
|
||||
data: {
|
||||
'close-dialog-id': DIALOG_ID
|
||||
"close-dialog-id": DIALOG_ID
|
||||
}
|
||||
)
|
||||
) do
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
component_collection do |buttons|
|
||||
buttons.with_component(
|
||||
Primer::ButtonComponent.new(
|
||||
data: { 'close-dialog-id': DIALOG_ID }
|
||||
data: { "close-dialog-id": DIALOG_ID }
|
||||
)
|
||||
) do
|
||||
t(:button_cancel)
|
||||
|
||||
@@ -58,9 +58,9 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<% if @backup_token.present? %>
|
||||
<%= angular_component_tag "opce-backup", data: {
|
||||
'job-status-id': @job_status_id,
|
||||
'last-backup-date': @last_backup_date,
|
||||
'last-backup-attachment-id': @last_backup_attachment_id,
|
||||
'may-include-attachments': @may_include_attachments
|
||||
"job-status-id": @job_status_id,
|
||||
"last-backup-date": @last_backup_date,
|
||||
"last-backup-attachment-id": @last_backup_attachment_id,
|
||||
"may-include-attachments": @may_include_attachments
|
||||
} %>
|
||||
<% end %>
|
||||
|
||||
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<div class="menu-blocks--container" data-test-selector="menu-blocks--container">
|
||||
<% @menu_nodes.each do |menu_node| -%>
|
||||
<%= link_to menu_node.url, { class: "menu-block", 'data-test-selector': "menu-block" } do %>
|
||||
<%= link_to menu_node.url, { class: "menu-block", "data-test-selector": "menu-block" } do %>
|
||||
<%= render(Primer::Beta::Octicon.new(icon: menu_node.icon, height: 32, classes: "menu-block--icon", "aria-label": menu_node.caption)) %>
|
||||
<span class="menu-block--title"> <%= menu_node.caption %> </span>
|
||||
<% end %>
|
||||
|
||||
@@ -27,15 +27,15 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
++#%>
|
||||
|
||||
<% html_title t(:label_administration), t(:'menus.admin.aggregation') -%>
|
||||
<% html_title t(:label_administration), t(:"menus.admin.aggregation") -%>
|
||||
|
||||
<%=
|
||||
render(Primer::OpenProject::PageHeader.new) do |header|
|
||||
header.with_title { t(:'menus.admin.aggregation') }
|
||||
header.with_title { t(:"menus.admin.aggregation") }
|
||||
header.with_breadcrumbs(
|
||||
[{ href: admin_index_path, text: t(:label_administration) },
|
||||
{ href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
|
||||
t(:'menus.admin.aggregation')]
|
||||
t(:"menus.admin.aggregation")]
|
||||
)
|
||||
end
|
||||
%>
|
||||
@@ -48,9 +48,9 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
container_class: "-xslim" %>
|
||||
<span class="form--field-instructions">
|
||||
<%= t(
|
||||
:'admin.journal_aggregation.explanation.text',
|
||||
:"admin.journal_aggregation.explanation.text",
|
||||
webhook_link: link_to(
|
||||
t(:'admin.journal_aggregation.explanation.link'),
|
||||
t(:"admin.journal_aggregation.explanation.link"),
|
||||
admin_outgoing_webhooks_path,
|
||||
target: "_blank"
|
||||
)
|
||||
|
||||
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="form--fieldset">
|
||||
<legend class="form--fieldset-legend"><%= I18n.t(:'settings.authentication.single_sign_on') %></legend>
|
||||
<legend class="form--fieldset-legend"><%= I18n.t(:"settings.authentication.single_sign_on") %></legend>
|
||||
<div class="form--field">
|
||||
<% providers = AuthProvider
|
||||
.where(available: true)
|
||||
|
||||
@@ -27,15 +27,15 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
++#%>
|
||||
|
||||
<% html_title t(:label_administration), t(:'menus.admin.mail_notification') -%>
|
||||
<% html_title t(:label_administration), t(:"menus.admin.mail_notification") -%>
|
||||
|
||||
<%=
|
||||
render(Primer::OpenProject::PageHeader.new) do |header|
|
||||
header.with_title { t(:'menus.admin.mail_notification') }
|
||||
header.with_title { t(:"menus.admin.mail_notification") }
|
||||
header.with_breadcrumbs(
|
||||
[{ href: admin_index_path, text: t(:label_administration) },
|
||||
{ href: admin_settings_aggregation_path, text: t(:"menus.admin.mails_and_notifications") },
|
||||
t(:'menus.admin.mail_notification')]
|
||||
t(:"menus.admin.mail_notification")]
|
||||
)
|
||||
end
|
||||
%>
|
||||
|
||||
@@ -50,9 +50,9 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
protected: protected_projects_columns_options,
|
||||
name: "settings[enabled_projects_columns][]",
|
||||
id: "settings_enabled_projects_columns",
|
||||
inputLabel: I18n.t(:'queries.configure_view.columns.input_label'),
|
||||
inputPlaceholder: I18n.t(:'queries.configure_view.columns.input_placeholder'),
|
||||
dragAreaLabel: I18n.t(:'queries.configure_view.columns.drag_area_label')
|
||||
inputLabel: I18n.t(:"queries.configure_view.columns.input_label"),
|
||||
inputPlaceholder: I18n.t(:"queries.configure_view.columns.input_placeholder"),
|
||||
dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label")
|
||||
} %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
name: "settings[project_gantt_query]",
|
||||
id: "settings_project_gantt_query",
|
||||
query: ::Projects::GanttQueryGeneratorService.current_query,
|
||||
'url-params': "true"
|
||||
"url-params": "true"
|
||||
} %>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= styled_form_tag(admin_settings_users_path, method: :patch, class: "admin-settings--form") do %>
|
||||
|
||||
<fieldset class="form--fieldset">
|
||||
<legend class="form--fieldset-legend"><%= t(:'settings.user.default_preferences') %></legend>
|
||||
<legend class="form--fieldset-legend"><%= t(:"settings.user.default_preferences") %></legend>
|
||||
|
||||
<div class="form--field" id="setting_default_language">
|
||||
<%= setting_select :default_language, all_lang_options_for_select, container_class: "-slim" %>
|
||||
@@ -59,7 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="form--fieldset">
|
||||
<legend class="form--fieldset-legend"><%= t(:'settings.user.display_format') %></legend>
|
||||
<legend class="form--fieldset-legend"><%= t(:"settings.user.display_format") %></legend>
|
||||
|
||||
<div class="form--field">
|
||||
<%= setting_select :user_format, @options[:user_format], container_class: "-slim" %>
|
||||
@@ -68,7 +68,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="form--fieldset">
|
||||
<legend class="form--fieldset-legend"><%= t(:'settings.user.deletion') %></legend>
|
||||
<legend class="form--fieldset-legend"><%= t(:"settings.user.deletion") %></legend>
|
||||
<div class="form--field">
|
||||
<%= setting_check_box :users_deletable_by_admins %>
|
||||
</div>
|
||||
|
||||
@@ -41,8 +41,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
method: :patch,
|
||||
data: {
|
||||
controller: "refresh-on-form-changes",
|
||||
'refresh-on-form-changes-target': "form",
|
||||
'refresh-on-form-changes-turbo-stream-url-value': url_for(action: "av_form")
|
||||
"refresh-on-form-changes-target": "form",
|
||||
"refresh-on-form-changes-turbo-stream-url-value": url_for(action: "av_form")
|
||||
}
|
||||
) do %>
|
||||
<div class="form--field">
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
<table>
|
||||
<% if body_subheader %>
|
||||
<tr>
|
||||
<td style="<%= placeholder_text_styles('font-weight': "bold") %>">
|
||||
<td style="<%= placeholder_text_styles("font-weight": "bold") %>">
|
||||
<%= format_text body_subheader %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% if body_header %>
|
||||
<tr>
|
||||
<td style="<%= placeholder_text_styles(color: "#333333", 'line-height': "36px", 'font-size': "18px", 'font-weight': "bold") %>">
|
||||
<td style="<%= placeholder_text_styles(color: "#333333", "line-height": "36px", "font-size": "18px", "font-weight": "bold") %>">
|
||||
<%= format_text body_header %>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -47,6 +47,6 @@
|
||||
<%= render partial: "mailer/notification_settings_table",
|
||||
locals: {
|
||||
button_url: my_reminders_url,
|
||||
button_text: I18n.t(:'mail.notification.settings')
|
||||
button_text: I18n.t(:"mail.notification.settings")
|
||||
} %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= content_tag(
|
||||
"openapi-explorer",
|
||||
"",
|
||||
'spec-url': api_v3_paths.api_spec,
|
||||
'server-url': api_v3_paths.root_path,
|
||||
'nav-bg-color': color_by_variable("main-menu-bg-color")
|
||||
"spec-url": api_v3_paths.api_spec,
|
||||
"server-url": api_v3_paths.root_path,
|
||||
"nav-bg-color": color_by_variable("main-menu-bg-color")
|
||||
) %>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
helpTextId: attribute_help_text.id,
|
||||
attribute: attribute_help_text.attribute_name,
|
||||
attributeScope: attribute_help_text.attribute_scope,
|
||||
additionalLabel: t(:'attribute_help_texts.show_preview')
|
||||
additionalLabel: t(:"attribute_help_texts.show_preview")
|
||||
} %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
|
||||
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
++#%>
|
||||
|
||||
<% html_title t(:label_administration), t(:'attribute_help_texts.edit', attribute_caption: @attribute_help_text.attribute_caption) %>
|
||||
<% html_title t(:label_administration), t(:"attribute_help_texts.edit", attribute_caption: @attribute_help_text.attribute_caption) %>
|
||||
|
||||
<%=
|
||||
render(Primer::OpenProject::PageHeader.new) do |header|
|
||||
|
||||
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
++#%>
|
||||
|
||||
<% html_title t(:label_administration), t(:'attribute_help_texts.add_new') %>
|
||||
<% html_title t(:label_administration), t(:"attribute_help_texts.add_new") %>
|
||||
|
||||
<%=
|
||||
render(Primer::OpenProject::PageHeader.new) do |header|
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
<div class="form--field-container">
|
||||
<% date = action.values.first %>
|
||||
<%= angular_component_tag "opce-custom-date-action-admin",
|
||||
data: { 'field-value': date.try(:iso8601) || date, 'field-name': input_name } %>
|
||||
data: { "field-value": date.try(:iso8601) || date, "field-name": input_name } %>
|
||||
</div>
|
||||
<% elsif %i(string_property text_property).include?(action.type) %>
|
||||
<div class="form--field-container">
|
||||
@@ -146,7 +146,7 @@
|
||||
<div class="form--field">
|
||||
<label class="form--label" for="custom-actions-form--add-action">
|
||||
<%= op_icon("icon-add icon4") %>
|
||||
<%= I18n.t(:'custom_actions.actions.add') %>
|
||||
<%= I18n.t(:"custom_actions.actions.add") %>
|
||||
</label>
|
||||
<span class="form--field-container">
|
||||
<span class="form--text-field-container -middle">
|
||||
|
||||
@@ -98,7 +98,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
disabled: true,
|
||||
container_class: "custom-option-default-value",
|
||||
data: {
|
||||
'admin--custom-fields-target': "customOptionDefaults",
|
||||
"admin--custom-fields-target": "customOptionDefaults",
|
||||
action: "admin--custom-fields#uncheckOtherDefaults"
|
||||
},
|
||||
no_label: true %>
|
||||
@@ -144,7 +144,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
method: :delete,
|
||||
data: {
|
||||
action: "admin--custom-fields#removeOption",
|
||||
confirm: t(:'custom_fields.confirm_destroy_option')
|
||||
confirm: t(:"custom_fields.confirm_destroy_option")
|
||||
},
|
||||
class: "icon icon-delete delete-custom-option",
|
||||
title: t(:button_delete) %>
|
||||
|
||||
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
disabled: !@custom_field.new_record?,
|
||||
data: {
|
||||
action: "admin--custom-fields#formatChanged",
|
||||
'admin--custom-fields-target': "format"
|
||||
"admin--custom-fields-target": "format"
|
||||
} %>
|
||||
<div class="form--field-extra-actions" <%= format_dependent.attributes(:enterpriseBanner) %>>
|
||||
<%= angular_component_tag "opce-enterprise-banner",
|
||||
|
||||
@@ -45,8 +45,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<% content_controller "admin--custom-fields",
|
||||
dynamic: true,
|
||||
'admin--custom-fields-format-config-value': OpenProject::CustomFieldFormatDependent.stimulus_config,
|
||||
'admin--custom-fields-enterprise-edition-value': EnterpriseToken.allows_to?(:custom_field_hierarchies) %>
|
||||
"admin--custom-fields-format-config-value": OpenProject::CustomFieldFormatDependent.stimulus_config,
|
||||
"admin--custom-fields-enterprise-edition-value": EnterpriseToken.allows_to?(:custom_field_hierarchies) %>
|
||||
|
||||
<%= labelled_tabular_form_for @custom_field, as: :custom_field,
|
||||
url: custom_fields_path,
|
||||
@@ -56,6 +56,6 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= styled_button_tag t(:button_save),
|
||||
class: "-primary -with-icon icon-checkmark",
|
||||
data: {
|
||||
'admin--custom-fields-target': "submitButton"
|
||||
"admin--custom-fields-target": "submitButton"
|
||||
} %>
|
||||
<% end %>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<%= styled_text_field_tag "design_colors[]" + design_color.variable,
|
||||
design_color.hexcode,
|
||||
class: "design-color--variable-input",
|
||||
data: { 'variable-name': design_color.variable } %>
|
||||
data: { "variable-name": design_color.variable } %>
|
||||
</span>
|
||||
</span>
|
||||
<div class="form--field-instructions">
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<td>
|
||||
<%= render partial: "mailer/mailer_header",
|
||||
locals: {
|
||||
summary: "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}",
|
||||
summary: "#{I18n.t(:"mail.digests.you_have")} #{digest_summary_text(@notification_ids.length, @mentioned_count)}",
|
||||
button_href: notifications_url,
|
||||
button_text: I18n.t(:'mail.notification.center'),
|
||||
button_text: I18n.t(:"mail.notification.center"),
|
||||
user: @user,
|
||||
} %>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<%= render layout: "mailer/notification_settings_table",
|
||||
locals: {
|
||||
button_url: my_reminders_url,
|
||||
button_text: I18n.t(:'mail.notification.settings')
|
||||
button_text: I18n.t(:"mail.notification.settings")
|
||||
} do %>
|
||||
<% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
|
||||
<table>
|
||||
@@ -63,7 +63,7 @@
|
||||
<a href="<%= notifications_url %>"
|
||||
target="_blank"
|
||||
style="color: #1A67A3; text-decoration: none; font-size: 14px;white-space: nowrap;">
|
||||
<%= I18n.t(:'mail.work_packages.see_all') %>
|
||||
<%= I18n.t(:"mail.work_packages.see_all") %>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%= I18n.t(:'mail.salutation', user: @user.firstname) %>
|
||||
<%= "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}" %>
|
||||
<%= I18n.t(:"mail.salutation", user: @user.firstname) %>
|
||||
<%= "#{I18n.t(:"mail.digests.you_have")} #{digest_summary_text(@notification_ids.length, @mentioned_count)}" %>
|
||||
<%= "-" * 100 %>
|
||||
|
||||
<% @aggregated_notifications.first(DigestMailer::MAX_SHOWN_WORK_PACKAGES).each do | work_package, notifications_by_work_package| %>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
filter.values.first,
|
||||
class: "advanced-filters--text-field -slim",
|
||||
data: {
|
||||
'filter--filters-form-target': "simpleValue",
|
||||
'filter-name': filter.name
|
||||
"filter--filters-form-target": "simpleValue",
|
||||
"filter-name": filter.name
|
||||
} %>
|
||||
</div>
|
||||
<% elsif filter.type == :text %>
|
||||
@@ -17,8 +17,8 @@
|
||||
filter.values.first,
|
||||
class: "advanced-filters--text-field -slim",
|
||||
data: {
|
||||
'filter--filters-form-target': "simpleValue",
|
||||
'filter-name': filter.name
|
||||
"filter--filters-form-target": "simpleValue",
|
||||
"filter-name": filter.name
|
||||
} %>
|
||||
</div>
|
||||
<% elsif filter.type == :integer %>
|
||||
@@ -28,8 +28,8 @@
|
||||
class: "advanced-filters--text-field -slim",
|
||||
step: "any",
|
||||
data: {
|
||||
'filter--filters-form-target': "simpleValue",
|
||||
'filter-name': filter.name
|
||||
"filter--filters-form-target": "simpleValue",
|
||||
"filter-name": filter.name
|
||||
} %>
|
||||
</div>
|
||||
<% elsif filter.type == :float %>
|
||||
@@ -39,8 +39,8 @@
|
||||
class: "advanced-filters--text-field -slim",
|
||||
step: "any",
|
||||
data: {
|
||||
'filter--filters-form-target': "simpleValue",
|
||||
'filter-name': filter.name
|
||||
"filter--filters-form-target": "simpleValue",
|
||||
"filter-name": filter.name
|
||||
} %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
value,
|
||||
id: "#{filter.name}_value",
|
||||
class: "advanced-filters--text-field -slim",
|
||||
'data-filter--filters-form-target': "days",
|
||||
'data-filter-name': filter.name %>
|
||||
"data-filter--filters-form-target": "days",
|
||||
"data-filter-name": filter.name %>
|
||||
<label for="<%= "#{filter.name}_value" %>" class="form-label -transparent">days</label>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
),
|
||||
{
|
||||
class: "form--select -slim",
|
||||
'data-filter--filters-form-target': "filterValueSelect",
|
||||
'data-filter-name': filter.name,
|
||||
"data-filter--filters-form-target": "filterValueSelect",
|
||||
"data-filter-name": filter.name,
|
||||
id: "#{filter.name}_value"
|
||||
}]
|
||||
if multi_value
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<%= link_to t(:label_profile), my_account_path, title: t(:label_profile) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to t(:'js.my_page.label'), my_page_path,
|
||||
title: t(:'js.my_page.label') %>
|
||||
<%= link_to t(:"js.my_page.label"), my_page_path,
|
||||
title: t(:"js.my_page.label") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to t(:button_change_password), my_password_path, title: t(:button_change_password) %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<%= format_text(@message) %>
|
||||
|
||||
<%= I18n.t(:'mail_member_added_project.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_added_project.body.roles") %>
|
||||
<ul>
|
||||
<% @roles.each do |role| %>
|
||||
<li>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<%= @message %>
|
||||
|
||||
<%= I18n.t(:'mail_member_added_project.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_added_project.body.roles") %>
|
||||
<% @roles.each do |role| %>
|
||||
* <%= h(role.name) %>
|
||||
<% end %>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<%= format_text(@message) %>
|
||||
|
||||
<%= I18n.t(:'mail_member_updated_global.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_updated_global.body.roles") %>
|
||||
<ul>
|
||||
<% @roles.each do |role| %>
|
||||
<li>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<%= @message %>
|
||||
|
||||
<%= I18n.t(:'mail_member_updated_global.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_updated_global.body.roles") %>
|
||||
<% @roles.each do |role| %>
|
||||
* <%= h(role.name) %>
|
||||
<% end %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<%= format_text(@message) %>
|
||||
|
||||
<%= I18n.t(:'mail_member_updated_project.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_updated_project.body.roles") %>
|
||||
<ul>
|
||||
<% @roles.each do |role| %>
|
||||
<li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
)
|
||||
%>
|
||||
|
||||
<%= I18n.t(:'mail_member_updated_project.body.roles') %>
|
||||
<%= I18n.t(:"mail_member_updated_project.body.roles") %>
|
||||
<% @roles.each do |role| %>
|
||||
* <%= h(role.name) %>
|
||||
<% end %>
|
||||
|
||||
@@ -33,11 +33,11 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
html: { id: "members_add_form",
|
||||
class: "form -vertical -bordered -medium-compressed" },
|
||||
data: {
|
||||
'members-form-target': "addMemberForm",
|
||||
"members-form-target": "addMemberForm",
|
||||
controller: "user-limit",
|
||||
'user-limit-open-seats-value': OpenProject::Enterprise.open_seats_count,
|
||||
'user-limit-member-autocompleter-value': true,
|
||||
'application-target': "dynamic",
|
||||
"user-limit-open-seats-value": OpenProject::Enterprise.open_seats_count,
|
||||
"user-limit-member-autocompleter-value": true,
|
||||
"application-target": "dynamic",
|
||||
}
|
||||
) do |f| %>
|
||||
<a title="<%= t("js.close_form_title") %>"
|
||||
|
||||
@@ -36,7 +36,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
required: true,
|
||||
container_class: "-wide",
|
||||
autofocus: true,
|
||||
data: { 'forum-messages-target': "subject" } %>
|
||||
data: { "forum-messages-target": "subject" } %>
|
||||
</div>
|
||||
<% unless replying %>
|
||||
<div class="form--field">
|
||||
|
||||
@@ -83,13 +83,13 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<% if !@application.client_credentials_user_id %>
|
||||
<% component.with_attribute(
|
||||
key: I18n.t(:'doorkeeper.auth_url'),
|
||||
key: I18n.t(:"doorkeeper.auth_url"),
|
||||
value: oauth_authorization_url
|
||||
) %>
|
||||
<% end %>
|
||||
|
||||
<% component.with_attribute(
|
||||
key: I18n.t(:'doorkeeper.access_token_url'),
|
||||
key: I18n.t(:"doorkeeper.access_token_url"),
|
||||
value: oauth_token_url
|
||||
) %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
id: "#{vendor}-#{type}",
|
||||
hidden: !existing,
|
||||
data: {
|
||||
'repository-settings-target': "scmTypeOptions"
|
||||
"repository-settings-target": "scmTypeOptions"
|
||||
} do %>
|
||||
<div class="attributes-group--header">
|
||||
<div class="attributes-group--header-container">
|
||||
|
||||
@@ -88,8 +88,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
type.id,
|
||||
projects_types_id.include?(type.id),
|
||||
id: type_id,
|
||||
'data-standard': type.is_standard %>
|
||||
<%= hidden_field_tag "project[type_ids][]", "", 'data-for': type_id %>
|
||||
"data-standard": type.is_standard %>
|
||||
<%= hidden_field_tag "project[type_ids][]", "", "data-for": type_id %>
|
||||
</td>
|
||||
<td>
|
||||
<%= icon_for_type(type) %>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
locals: {
|
||||
summary: reminder_summary_text,
|
||||
button_href: notifications_url,
|
||||
button_text: I18n.t(:'mail.notification.center'),
|
||||
button_text: I18n.t(:"mail.notification.center"),
|
||||
user: @user,
|
||||
} %>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<%= render layout: "mailer/notification_settings_table",
|
||||
locals: {
|
||||
button_url: my_reminders_url,
|
||||
button_text: I18n.t(:'mail.notification.settings')
|
||||
button_text: I18n.t(:"mail.notification.settings")
|
||||
} do %>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= I18n.t(:'mail.salutation', user: @user.firstname) %>
|
||||
<%= I18n.t(:"mail.salutation", user: @user.firstname) %>
|
||||
<%= reminder_summary_text %>
|
||||
<%= text_email_wrapper %>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= link_to "#",
|
||||
class: "icon-context dir-expander",
|
||||
title: I18n.t("js.label_expand"),
|
||||
'aria-label': I18n.t("js.label_expand"),
|
||||
"aria-label": I18n.t("js.label_expand"),
|
||||
data: {
|
||||
action: "repository-navigation#toggleDirectory",
|
||||
element: "dir_#{tr_id}",
|
||||
|
||||
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "revision_selector",
|
||||
class: "form -vertical",
|
||||
data: {
|
||||
'repository-navigation-target': "form",
|
||||
"repository-navigation-target": "form",
|
||||
}
|
||||
) do %>
|
||||
<li class="toolbar-item toolbar-input-group hidden-for-mobile">
|
||||
@@ -64,7 +64,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "revision-identifier-input",
|
||||
placeholder: t(:label_revision),
|
||||
data: {
|
||||
'repository-navigation-target': "revision",
|
||||
"repository-navigation-target": "revision",
|
||||
action: "keydown.enter->repository-navigation#sendForm"
|
||||
} %>
|
||||
</li>
|
||||
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
|
||||
id: "revision-branch-select",
|
||||
data: {
|
||||
'repository-navigation-target': "branch",
|
||||
"repository-navigation-target": "branch",
|
||||
action: "repository-navigation#applyValue"
|
||||
} %>
|
||||
</li>
|
||||
@@ -93,7 +93,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
include_blank: "--- #{t(:actionview_instancetag_blank_option)} ---",
|
||||
id: "revision-tag-select",
|
||||
data: {
|
||||
'repository-navigation-target': "tag",
|
||||
"repository-navigation-target": "tag",
|
||||
action: "repository-navigation#applyValue"
|
||||
} %>
|
||||
</li>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
user: @shared_with_user,
|
||||
summary:,
|
||||
button_href: @url,
|
||||
button_text: I18n.t(:'mail.sharing.work_packages.open_work_package'),
|
||||
button_text: I18n.t(:"mail.sharing.work_packages.open_work_package"),
|
||||
} %>
|
||||
|
||||
<%= render layout: "mailer/notification_row",
|
||||
@@ -50,7 +50,7 @@
|
||||
<%= render partial: "mailer/notification_settings_table",
|
||||
locals: {
|
||||
button_url: my_reminders_url,
|
||||
button_text: I18n.t(:'mail.notification.settings')
|
||||
button_text: I18n.t(:"mail.notification.settings")
|
||||
} %>
|
||||
|
||||
<% if @shared_with_user.invited? %>
|
||||
|
||||
@@ -58,9 +58,9 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
"opce-admin-type-form-configuration",
|
||||
"",
|
||||
data: {
|
||||
'active-groups': form_attributes[:actives],
|
||||
'inactive-attributes': form_attributes[:inactives],
|
||||
'no-filter-query': no_filter_query
|
||||
"active-groups": form_attributes[:actives],
|
||||
"inactive-attributes": form_attributes[:inactives],
|
||||
"no-filter-query": no_filter_query
|
||||
}
|
||||
) %>
|
||||
</div>
|
||||
|
||||
@@ -48,8 +48,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
},
|
||||
data: {
|
||||
controller: "admin--users",
|
||||
'application-target': "dynamic",
|
||||
'admin--users-password-auth-selected-value': @user.ldap_auth_source_id.blank?,
|
||||
"application-target": "dynamic",
|
||||
"admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?,
|
||||
},
|
||||
as: :user do |f| %>
|
||||
<%= render partial: "form", locals: { f: f } %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:id,
|
||||
:name,
|
||||
{
|
||||
label: :'activerecord.attributes.user.auth_source',
|
||||
label: :"activerecord.attributes.user.auth_source",
|
||||
container_class: "-middle",
|
||||
include_blank: t(:label_internal)
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= content_tag :div,
|
||||
data: {
|
||||
controller: "disable-when-checked",
|
||||
'admin--users-target': "passwordFields"
|
||||
"admin--users-target": "passwordFields"
|
||||
},
|
||||
hidden: !@user.change_password_allowed? do %>
|
||||
<% assign_random_password_enabled = params[:user] &&
|
||||
@@ -15,7 +15,7 @@
|
||||
"1",
|
||||
assign_random_password_enabled,
|
||||
data: {
|
||||
'disable-when-checked-target': "cause"
|
||||
"disable-when-checked-target": "cause"
|
||||
} %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
required: @user.new_record?,
|
||||
disabled: assign_random_password_enabled,
|
||||
data: {
|
||||
'disable-when-checked-target': "effect"
|
||||
"disable-when-checked-target": "effect"
|
||||
},
|
||||
container_class: "-middle" %>
|
||||
<div class="form--field-instructions">
|
||||
@@ -38,7 +38,7 @@
|
||||
required: @user.new_record?,
|
||||
disabled: assign_random_password_enabled,
|
||||
data: {
|
||||
'disable-when-checked-target': "effect"
|
||||
"disable-when-checked-target": "effect"
|
||||
},
|
||||
container_class: "-middle" %>
|
||||
</div>
|
||||
|
||||
@@ -48,8 +48,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
html: { class: nil, autocomplete: "off" },
|
||||
data: {
|
||||
controller: "admin--users",
|
||||
'application-target': "dynamic",
|
||||
'admin--users-password-auth-selected-value': @user.ldap_auth_source_id.blank?,
|
||||
"application-target": "dynamic",
|
||||
"admin--users-password-auth-selected-value": @user.ldap_auth_source_id.blank?,
|
||||
},
|
||||
as: :user do |f| %>
|
||||
<%= render partial: "simple_form", locals: { f: f, auth_sources: @ldap_auth_sources, user: @user } %>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="form--field">
|
||||
<%= f.text_field :journal_notes,
|
||||
class: "-border-on-hover-only -hide-placeholder-on-focus",
|
||||
label_options: { class: "hidden-for-sighted", label: :'attributes.comment' },
|
||||
label_options: { class: "hidden-for-sighted", label: :"attributes.comment" },
|
||||
autocomplete: "off",
|
||||
container_class: "-wide",
|
||||
placeholder: t(:text_what_did_you_change_click_to_add_comment) %>
|
||||
|
||||
@@ -129,7 +129,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
class: "history-cb-from",
|
||||
id: "cb-#{line_num}",
|
||||
data: {
|
||||
'journal-history-target': "fromVersion",
|
||||
"journal-history-target": "fromVersion",
|
||||
action: "journal-history#selectToVersion"
|
||||
}
|
||||
) %>
|
||||
@@ -144,7 +144,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
(line_num == 2),
|
||||
id: "cbto-#{line_num}",
|
||||
data: {
|
||||
'journal-history-target': "toVersion",
|
||||
"journal-history-target": "toVersion",
|
||||
action: "journal-history#selectFromVersion"
|
||||
}
|
||||
) %>
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<td>
|
||||
<%= render partial: "mailer/mailer_header",
|
||||
locals: {
|
||||
summary: I18n.t(:'mail.work_packages.mentioned_by', user: @journal.user),
|
||||
summary: I18n.t(:"mail.work_packages.mentioned_by", user: @journal.user),
|
||||
button_href: details_notifications_url(@work_package.id, tab: :activity),
|
||||
button_text: I18n.t(:'mail.notification.see_in_center'),
|
||||
button_text: I18n.t(:"mail.notification.see_in_center"),
|
||||
user: @user,
|
||||
} %>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<%= render partial: "mailer/notification_settings_table",
|
||||
locals: {
|
||||
button_url: my_reminders_url,
|
||||
button_text: I18n.t(:'mail.notification.settings')
|
||||
button_text: I18n.t(:"mail.notification.settings")
|
||||
} %>
|
||||
|
||||
<table>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%= I18n.t(:'mail.salutation', user: @user.firstname) %>
|
||||
<%= "#{I18n.t(:'mail.work_packages.mentioned_by', user: @journal.user)}" %>
|
||||
<%= I18n.t(:"mail.salutation", user: @user.firstname) %>
|
||||
<%= "#{I18n.t(:"mail.work_packages.mentioned_by", user: @journal.user)}" %>
|
||||
<%= "-" * 100 %>
|
||||
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "move_form",
|
||||
data: {
|
||||
controller: "refresh-on-form-changes",
|
||||
'refresh-on-form-changes-target': "form",
|
||||
'refresh-on-form-changes-refresh-url-value': url_for(action: "new")
|
||||
"refresh-on-form-changes-target": "form",
|
||||
"refresh-on-form-changes-refresh-url-value": url_for(action: "new")
|
||||
},
|
||||
class: "-wide-labels augment--refresh-on-form-changes"
|
||||
) do %>
|
||||
@@ -76,7 +76,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "new_project_id",
|
||||
class: "remote-field--input",
|
||||
data: {
|
||||
'test-selector': "new_project_id"
|
||||
"test-selector": "new_project_id"
|
||||
} %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
def action_menu
|
||||
render(Primer::Alpha::ActionMenu.new) do |menu|
|
||||
menu.with_show_button(icon: "kebab-horizontal", 'aria-label': "More", scheme: :invisible)
|
||||
menu.with_show_button(icon: "kebab-horizontal", "aria-label": "More", scheme: :invisible)
|
||||
menu.with_item(
|
||||
tag: :a,
|
||||
label: "Edit",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"Attached files are available to all meeting participants. You can also drag and drop these into agenda item notes."
|
||||
end
|
||||
|
||||
section.with_action_icon(icon: :pencil, 'aria-label': "Edit")
|
||||
section.with_action_icon(icon: :pencil, "aria-label": "Edit")
|
||||
section.with_footer_button(tag: :a, href: "#") do |button|
|
||||
button.with_leading_visual_icon(icon: :pencil)
|
||||
"Additional action"
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
panel.with_section do |section|
|
||||
section.with_title { "Without counter" }
|
||||
section.with_action_icon(icon: :gear, 'aria-label': "Manage")
|
||||
section.with_action_icon(icon: :gear, "aria-label": "Manage")
|
||||
|
||||
"Some more content here"
|
||||
end
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@
|
||||
flex.with_row(
|
||||
mt: 2,
|
||||
hidden: provider.metadata_url.blank?,
|
||||
data: { value: :url, 'show-when-value-selected-target': "effect" }
|
||||
data: { value: :url, "show-when-value-selected-target": "effect" }
|
||||
) do
|
||||
render(Saml::Providers::MetadataUrlForm.new(form, provider:))
|
||||
end
|
||||
@@ -38,7 +38,7 @@
|
||||
flex.with_row(
|
||||
mt: 2,
|
||||
hidden: provider.metadata_xml.blank?,
|
||||
data: { value: :xml, 'show-when-value-selected-target': "effect" }
|
||||
data: { value: :xml, "show-when-value-selected-target": "effect" }
|
||||
) do
|
||||
render(Saml::Providers::MetadataXmlForm.new(form, provider:))
|
||||
end
|
||||
|
||||
@@ -30,11 +30,11 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<fieldset class="form--fieldset">
|
||||
<legend class="form--fieldset-legend"><%= t(:label_backlogs) %></legend>
|
||||
<div class="form--field">
|
||||
<%= styled_label_tag :backlogs_task_color, t(:'backlogs.task_color') %>
|
||||
<%= styled_text_field_tag :'backlogs[task_color]', color, container_class: "-middle" %>
|
||||
<%= styled_label_tag :backlogs_task_color, t(:"backlogs.task_color") %>
|
||||
<%= styled_text_field_tag :"backlogs[task_color]", color, container_class: "-middle" %>
|
||||
</div>
|
||||
<div class="form--field">
|
||||
<%= styled_label_tag :backlogs_versions_default_fold_state, I18n.t("backlogs.label_versions_default_fold_state") %>
|
||||
<%= styled_check_box_tag :'backlogs[versions_default_fold_state]', "closed", versions_default_fold_state == "closed" %>
|
||||
<%= styled_check_box_tag :"backlogs[versions_default_fold_state]", "closed", versions_default_fold_state == "closed" %>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "project_id",
|
||||
class: "form--select-container -wide remote-field--input",
|
||||
data: {
|
||||
'test-selector': "project_id"
|
||||
"test-selector": "project_id"
|
||||
} %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
|
||||
class: "budget-item-value form--text-field",
|
||||
data: {
|
||||
'request-key': "hours",
|
||||
"request-key": "hours",
|
||||
action: "keyup->costs--budget-subform#valueChanged"
|
||||
} %>
|
||||
</div>
|
||||
@@ -75,7 +75,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
index: id_or_index,
|
||||
class: "form--select budget-item-value",
|
||||
data: {
|
||||
'request-key': "user_id",
|
||||
"request-key": "user_id",
|
||||
action: "change->costs--budget-subform#valueChanged"
|
||||
}
|
||||
} %>
|
||||
|
||||
@@ -60,7 +60,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
|
||||
class: "budget-item-value form--text-field",
|
||||
data: {
|
||||
'request-key': "units",
|
||||
"request-key": "units",
|
||||
action: "keyup->costs--budget-subform#valueChanged"
|
||||
} %>
|
||||
</div>
|
||||
@@ -78,7 +78,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
index: id_or_index,
|
||||
class: "form--select budget-item-value",
|
||||
data: {
|
||||
'request-key': "cost_type_id",
|
||||
"request-key": "cost_type_id",
|
||||
action: "change->costs--budget-subform#valueChanged"
|
||||
}
|
||||
} %>
|
||||
|
||||
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
as: :budget,
|
||||
html: { multipart: true, id: "budget_form" } do |f| %>
|
||||
<%= render partial: "form", locals: { f: f } %>
|
||||
<%= styled_button_tag t(:button_create), class: "-with-icon icon-checkmark", 'data-test-selector': "budgets-create-button" %>
|
||||
<%= styled_button_tag t(:button_create), class: "-with-icon icon-checkmark", "data-test-selector": "budgets-create-button" %>
|
||||
<%= styled_button_tag t(:button_create_and_continue), name: "continue",
|
||||
class: "button -primary" %>
|
||||
<% end %>
|
||||
|
||||
@@ -52,7 +52,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
id: "project_id",
|
||||
class: "form--select-container -wide remote-field--input",
|
||||
data: {
|
||||
'test-selector': "project_id"
|
||||
"test-selector": "project_id"
|
||||
} %>
|
||||
</div>
|
||||
<div class="form--field-instructions">
|
||||
|
||||
@@ -46,7 +46,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= content_tag(
|
||||
:tr,
|
||||
id: id_prefix,
|
||||
data: templated ? { 'row-target': "true" } : {},
|
||||
data: templated ? { "row-target": "true" } : {},
|
||||
style: templated ? "display: none;" : ""
|
||||
) do %>
|
||||
<td class="-no-ellipsis">
|
||||
|
||||
@@ -48,7 +48,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
%>
|
||||
|
||||
<%= labelled_tabular_form_for @cost_type,
|
||||
data: { controller: "subform", 'application-target': "dynamic" } do |f| %>
|
||||
data: { controller: "subform", "application-target": "dynamic" } do |f| %>
|
||||
<%= error_messages_for "cost_type" %>
|
||||
<%= back_url_hidden_field_tag %>
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<legend><%= t(:label_filter_plural) %></legend>
|
||||
<ul class="simple-filters--filters">
|
||||
<li class="simple-filters--filter">
|
||||
<%= styled_label_tag :fixed_date, t(:'attributes.fixed_date'), class: "simple-filters--filter-name" %>
|
||||
<%= styled_label_tag :fixed_date, t(:"attributes.fixed_date"), class: "simple-filters--filter-name" %>
|
||||
<div class='simple-filters--filter-value'>
|
||||
<%= angular_component_tag "opce-basic-single-date-picker",
|
||||
inputs: {
|
||||
|
||||
@@ -45,7 +45,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<%= labelled_tabular_form_for @cost_entry, url: url, html: { method: method } do |f| %>
|
||||
<%= error_messages_for "cost_entry" %>
|
||||
<%= back_url_hidden_field_tag %>
|
||||
<%= f.hidden_field :element_id, value: "cost_entry", class: "remote-field--input", data: { 'remote-field-key': "element_id" } %>
|
||||
<%= f.hidden_field :element_id, value: "cost_entry", class: "remote-field--input", data: { "remote-field-key": "element_id" } %>
|
||||
|
||||
<div class="form--field -required">
|
||||
<%= f.text_field :work_package_id,
|
||||
@@ -63,7 +63,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
<div class="form--field -required">
|
||||
<%= f.date_picker :spent_on,
|
||||
required: true,
|
||||
data: { 'remote-field-key': "fixed_date" } %>
|
||||
data: { "remote-field-key": "fixed_date" } %>
|
||||
<label for="cost_entry_spent_on" class="hidden-for-sighted"><%= t(:label_date) %> <%= t(:text_hint_date_format) %></label>
|
||||
</div>
|
||||
<% if User.current.allowed_in_project? :log_costs, @project %>
|
||||
@@ -87,7 +87,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
{
|
||||
required: true,
|
||||
class: "remote-field--input",
|
||||
data: { 'remote-field-key': "cost_type_id" }
|
||||
data: { "remote-field-key": "cost_type_id" }
|
||||
} %></p>
|
||||
</div>
|
||||
<div class="form--field -required">
|
||||
@@ -106,7 +106,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
suffix: h(suffix),
|
||||
suffix_id: "cost_entry_unit_name",
|
||||
class: "remote-field--input",
|
||||
data: { 'remote-field-key': "units" },
|
||||
data: { "remote-field-key": "units" },
|
||||
container_class: "-slim" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
:tr,
|
||||
class: "subform-row",
|
||||
id: id_prefix,
|
||||
data: templated ? { 'row-target': "true" } : {},
|
||||
data: templated ? { "row-target": "true" } : {},
|
||||
style: templated ? "display: none;" : ""
|
||||
) do %>
|
||||
<td>
|
||||
|
||||
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
|
||||
|
||||
<%= labelled_tabular_form_for @user,
|
||||
url: { action: "update", project_id: @project },
|
||||
data: { controller: "subform", 'application-target': "dynamic" },
|
||||
data: { controller: "subform", "application-target": "dynamic" },
|
||||
method: :put do |f| %>
|
||||
<%= back_url_hidden_field_tag %>
|
||||
<%= error_messages_for "user" %>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
grid.with_area(
|
||||
:notes,
|
||||
display: display_notes_input_value,
|
||||
data: { 'meeting-agenda-item-form-target': "notesInput" }
|
||||
data: { "meeting-agenda-item-form-target": "notesInput" }
|
||||
) do
|
||||
render(MeetingAgendaItem::Notes.new(f))
|
||||
end
|
||||
@@ -39,7 +39,7 @@
|
||||
scheme: :secondary,
|
||||
tag: :a,
|
||||
href: @cancel_path,
|
||||
data: { 'turbo-stream': true }
|
||||
data: { "turbo-stream": true }
|
||||
)
|
||||
) do |_c|
|
||||
t("button_cancel")
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
component_wrapper do
|
||||
grid_layout("op-meeting-agenda-item", tag: :div, id: "item-#{@meeting_agenda_item.id}") do |grid|
|
||||
if drag_and_drop_enabled?
|
||||
grid.with_area(:'drag-handle', tag: :div, classes: "hide-when-print") do
|
||||
grid.with_area(:"drag-handle", tag: :div, classes: "hide-when-print") do
|
||||
render(Primer::OpenProject::DragHandle.new(classes: "handle"))
|
||||
end
|
||||
end
|
||||
@@ -60,7 +60,7 @@
|
||||
render(Primer::Alpha::ActionMenu.new) do |menu|
|
||||
menu.with_show_button(
|
||||
icon: "kebab-horizontal",
|
||||
'aria-label': I18n.t(:label_agenda_item_actions),
|
||||
"aria-label": I18n.t(:label_agenda_item_actions),
|
||||
scheme: :invisible,
|
||||
ml: 2,
|
||||
test_selector: "op-meeting-agenda-actions"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
component_wrapper(class: "op-meeting-section-container", data: wrapper_data_attributes) do
|
||||
if @state == :show
|
||||
grid_layout("op-meeting-section", tag: :div) do |grid|
|
||||
grid.with_area(:'drag-handle', tag: :div, classes: "hide-when-print") do
|
||||
grid.with_area(:"drag-handle", tag: :div, classes: "hide-when-print") do
|
||||
if editable?
|
||||
render(Primer::OpenProject::DragHandle.new(classes: "handle"))
|
||||
end
|
||||
@@ -22,7 +22,7 @@
|
||||
grid.with_area(:actions, tag: :div, justify_self: :end, classes: "hide-when-print") do
|
||||
if editable?
|
||||
render(Primer::Alpha::ActionMenu.new(data: { test_selector: "meeting-section-action-menu" })) do |menu|
|
||||
menu.with_show_button(icon: "kebab-horizontal", 'aria-label': t("settings.project_attributes.label_section_actions"), scheme: :invisible)
|
||||
menu.with_show_button(icon: "kebab-horizontal", "aria-label": t("settings.project_attributes.label_section_actions"), scheme: :invisible)
|
||||
edit_action_item(menu)
|
||||
unless first? && last?
|
||||
menu.with_divider
|
||||
@@ -63,7 +63,7 @@
|
||||
scheme: :secondary,
|
||||
tag: :a,
|
||||
href: cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section),
|
||||
data: { 'turbo-stream': true }
|
||||
data: { "turbo-stream": true }
|
||||
)
|
||||
) do |_c|
|
||||
t("button_cancel")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
end
|
||||
end
|
||||
if render_new_button_in_section?
|
||||
component.with_row(data: { 'empty-list-item': true }) do
|
||||
component.with_row(data: { "empty-list-item": true }) do
|
||||
flex_layout(align_items: :center, justify_content: :space_between, classes: "hide-when-print") do |empty_list_container|
|
||||
empty_list_container.with_column(mr: 2) do
|
||||
render(Primer::Beta::Text.new(color: :subtle)) { t("meeting_section.empty_text") }
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
label: t("label_meeting_edit_title"),
|
||||
href: edit_meeting_path(@meeting),
|
||||
content_arguments: {
|
||||
data: { 'turbo-stream': true }
|
||||
data: { "turbo-stream": true }
|
||||
}
|
||||
) do |item|
|
||||
item.with_leading_visual_icon(icon: :pencil)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
id: "new-meeting-dialog",
|
||||
title:,
|
||||
size: :medium_portrait,
|
||||
data: { 'keep-open-on-submit': true }
|
||||
data: { "keep-open-on-submit": true }
|
||||
)
|
||||
) do |dialog|
|
||||
dialog.with_header(variant: :large)
|
||||
@@ -22,7 +22,7 @@
|
||||
component_collection do |modal_footer|
|
||||
modal_footer.with_component(
|
||||
Primer::ButtonComponent.new(
|
||||
data: { 'close-dialog-id': "new-meeting-dialog" }
|
||||
data: { "close-dialog-id": "new-meeting-dialog" }
|
||||
)
|
||||
) do
|
||||
I18n.t(:button_cancel)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
href:,
|
||||
classes: "hide-when-print",
|
||||
data: { controller: "async-dialog" },
|
||||
'aria-label': t(:label_meeting_details_edit),
|
||||
"aria-label": t(:label_meeting_details_edit),
|
||||
test_selector: "edit-meeting-details-button",
|
||||
)
|
||||
end
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
collection.with_component(Primer::Alpha::Dialog::Footer.new) do
|
||||
component_collection do |modal_footer|
|
||||
modal_footer.with_component(Primer::ButtonComponent.new(data: { 'close-dialog-id': "edit-meeting-details-dialog" })) do
|
||||
modal_footer.with_component(Primer::ButtonComponent.new(data: { "close-dialog-id": "edit-meeting-details-dialog" })) do
|
||||
t("button_cancel")
|
||||
end
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user