Files
Henriette Darge 19932f47de Change current_step_index to current_step to avoid unnecessary conversion
Document the components in lookbook
2025-11-21 09:44:29 +01:00

63 lines
2.2 KiB
Plaintext

<%#-- copyright
OpenProject is an open source project management software.
Copyright (C) the OpenProject GmbH
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
Copyright (C) 2006-2013 Jean-Philippe Lang
Copyright (C) 2010-2013 the ChiliProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See COPYRIGHT and LICENSE files for more details.
++#%>
<div class="op-step-wizard-footer">
<div class="op-step-wizard-footer--actions-left">
<% unless first_step? %>
<%= back_button %>
<% end %>
</div>
<%= render(Primer::BaseComponent.new(tag: :div, classes: "op-step-wizard-footer--progress")) do %>
<% if progress_bar.present? %>
<%= flex_layout(justify_content: :center, align_items: :center) do |progress_wrapper| %>
<%= progress_wrapper.with_column(classes: "op-step-wizard-footer--progress-bar") do %>
<%= progress_bar %>
<% end %>
<%= progress_wrapper.with_column(ml: 2) do %>
<%= render(Primer::Beta::Text.new(tag: :div, font_size: :small, color: :muted)) do %>
<%= I18n.t("projects.wizard.progress_label", current: current_step, total: total_steps) %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<div class="op-step-wizard-footer--actions-right">
<%= cancel_button %>
<% if last_step? %>
<%= submit_button %>
<% else %>
<%= continue_button %>
<% end %>
</div>
</div>