Revision 387babdd
Added by Daniel Lobato Garcia over 8 years ago
app/views/containers/show.html.erb | ||
---|---|---|
102 | 102 |
<% end %> |
103 | 103 |
</div> |
104 | 104 |
</div> |
105 |
|
|
106 |
<div id="commit-modal" class="modal fade"> |
|
107 |
<div class="modal-dialog"> |
|
108 |
<div class="modal-content"> |
|
109 |
<div class="modal-header"> |
|
110 |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
111 |
<h4 class="modal-title"><%= _('Commit this container state') %></h4> |
|
112 |
</div> |
|
113 |
<div class="modal-body"> |
|
114 |
This will save your current container state to an image. |
|
115 |
<hr/> |
|
116 |
<%= form_tag commit_container_path(:id => @container.id), :id => 'commit-form', :class => 'form-horizontal' do %> |
|
117 |
<div class="form-group"> |
|
118 |
<%= label_tag "commit[repo]", _("Repo"), :class=>"col-sm-2 control-label" %> |
|
119 |
<%= text_field :commit, :repo, { :class => "col-sm-8", :focus_on_load => true, |
|
120 |
:placeholder => _('docker/my-committed-image') } %> |
|
121 |
</div> |
|
122 |
<div class="form-group"> |
|
123 |
<%= label_tag "commit[tag]", _("Tag"), :class=>"col-sm-2 control-label" %> |
|
124 |
<%= text_field :commit, :tag, { :class => "col-sm-8", :focus_on_load => true, |
|
125 |
:placeholder => _('latest') } %> |
|
126 |
</div> |
|
127 |
<div class="form-group"> |
|
128 |
<%= label_tag "commit[author]", _("Author"), :class=>"col-sm-2 control-label" %> |
|
129 |
<%= text_field :commit, :author, { :class => "col-sm-8", |
|
130 |
:placeholder => _('Foreman user <foremaner@theforeman.org>') } %> |
|
131 |
</div> |
|
132 |
<div class="form-group"> |
|
133 |
<%= label_tag "commit[comment]", _("Comment"), :class=>"col-sm-2 control-label" %> |
|
134 |
<%= text_field :commit, :comment, { :class => "col-sm-8", |
|
135 |
:placeholder => _('Description of the commit') } %> |
|
136 |
</div> |
|
137 |
<div class="modal-footer"> |
|
138 |
<button type="button" class="btn btn-default" data-dismiss="modal"><%= _('Cancel') %></button> |
|
139 |
<%= button_tag(:type => 'submit', :class => 'btn btn-primary') do %> |
|
140 |
<%= _('Submit') %> <span class="glyphicon glyphicon-cloud-upload"></span> |
|
141 |
<% end %> |
|
142 |
</div> |
|
143 |
<% end %> |
|
144 |
</div> |
|
145 |
</div> |
|
146 |
</div> |
Also available in: Unified diff
Fixes #8035: Commit container changes