Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Set type of "ee trial" button to "button" to avoid unwanted form submits when clicking it

Henriette Dargec97034d4a853
diff --git a/app/views/placeholder_users/index.html.erb b/app/views/placeholder_users/index.html.erb
index 0e7af2d21f2..4e12ef482fa 100644
--- a/app/views/placeholder_users/index.html.erb
+++ b/app/views/placeholder_users/index.html.erb
@@ -41,14 +41,14 @@ See COPYRIGHT and LICENSE files for more details.
<span class="button--text"><%= t('activerecord.models.placeholder_user') %></span>
<% end %>
</li>
-
+
<%= call_hook(:placeholder_user_admin_action_menu) %>
<% end %>
<% end %>
-<% if has_ee%>
+<% if has_ee %>
<%= rails_cell PlaceholderUsers::PlaceholderUserFilterCell, params %>
&nbsp;
<%= rails_cell PlaceholderUsers::TableCell, @placeholder_users, project: @project, current_user: current_user %>
@@ -63,4 +63,3 @@ See COPYRIGHT and LICENSE files for more details.
}
%>
<% end %>
-
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index cf238291099..3f1e6722cee 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -35,14 +35,14 @@ See COPYRIGHT and LICENSE files for more details.
<div class="grid-content -visible-overflow small-12 large-10">
<% if EnterpriseToken.show_banners? %>
- <%= render template: 'common/upsale',
- locals: {
- feature_title: t('types.edit.form_configuration'),
- feature_description: t('text_form_configuration') + t('text_custom_field_hint_activate_per_project'),
- feature_reference: 'form-configuration',
- feature_image: '',
- feature_video: ''
- } %>
+ <%= render template: 'common/upsale',
+ locals: {
+ feature_title: t('types.edit.form_configuration'),
+ feature_description: t('text_form_configuration') + t('text_custom_field_hint_activate_per_project'),
+ feature_reference: 'form-configuration',
+ feature_image: '',
+ feature_video: ''
+ } %>
<% end %>
<% no_filter_query = ::API::V3::Queries::QueryParamsRepresenter.new(Query.new_default.tap { |q| q.filters = [] }).to_json %>
<%= f.hidden_field :attribute_groups, value: '', class: 'admin-type-form--hidden-field' %>
diff --git a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
index 74922f03dd2..6141856a8ba 100644
--- a/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
+++ b/frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
@@ -1,5 +1,10 @@
<div [attr.data-tooltip]="trialRequested ? text.confirmation_info(created, email) : ''" [ngClass]="{'tooltip--top': trialRequested}">
- <button [disabled]="trialRequested" class="button -alt-highlight -round" (click)="openTrialModal()">
+ <button
+ type="button"
+ [disabled]="trialRequested"
+ class="button -alt-highlight -round"
+ (click)="openTrialModal()"
+ >
{{ text.button_trial }}
</button>
-</div>
\ No newline at end of file
+</div>