Project

General

Profile

Download (735 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / views / containers / steps / _form_buttons.html.erb @ bc82d5d5

1
<div class="clearfix">
2
  <div class="form-actions">
3
    <% if step == :preliminary %>
4
      <%= link_to _("Cancel"), containers_path, :class => "btn btn-danger" %>
5
    <% else %>
6
      <a class="btn btn-default" href="<%= previous_wizard_path %>">
7
        <span class="glyphicon glyphicon-chevron-left"></span>
8
        <%= _("Back") %>
9
      </a>
10
    <% end %>
11
    <% next_id = defined?(registry) ? "next_#{registry}" : "next" %>
12
    <%= button_tag(:id => next_id, :type => 'submit', :class => "btn btn-primary pull-right") do %>
13
      <% if last_step? %>
14
        <%= _("Submit") %>
15
      <% else %>
16
        <%= _("Next") %>
17
        <span class="glyphicon glyphicon-chevron-right"></span>
18
      <% end %>
19
    <% end %>
20
  </div>
21
</div>