created template selecting
This commit is contained in:
33
web/app/views/configuration_files/create.html.erb
Normal file
33
web/app/views/configuration_files/create.html.erb
Normal file
@@ -0,0 +1,33 @@
|
||||
<% content_for :javascript_includes do %>
|
||||
<%= javascript_include_tag "template_select_form.js" %>
|
||||
<% end %>
|
||||
|
||||
<div class="row">
|
||||
<h2>Create New File</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<p>for <%= @server %></p>
|
||||
</div>
|
||||
|
||||
|
||||
<% @templates.each do |template| %>
|
||||
<div class="row template-selection" id="template_<%= template.id %>">
|
||||
<div class="col-md-2 text-md-center">
|
||||
<div class="thumbnail">
|
||||
<%= image_tag(template.safe_icon, size: '128', class:"img-responsive" ) %>
|
||||
<div class="caption text-md-center">
|
||||
<h3 class="server-name"><%= template.name %></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-10 template-description">
|
||||
<%= template.description %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= form_tag(create_from_template_configuration_files_url, method: :post, id: "create_from_template_form") do %>
|
||||
<%= hidden_field_tag('template_id','', id: 'template_id') %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user