Files
old-saburly-confighub/web/app/views/configuration_files/create.html.erb
2016-02-21 19:17:04 +01:00

35 lines
1.0 KiB
Plaintext

<% 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 unclickable">
<div class="thumbnail unclickable">
<%= image_tag(template.safe_icon, size: '128', class:"img-responsive" ) %>
<div class="caption text-md-center unclickable">
<h3 class="server-name unclickable"><%= template.name %></h3>
</div>
</div>
</div>
<div class="col-md-10 template-description unclickable">
<%= 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') %>
<%= hidden_field_tag('server_id', @server.id, id: 'server_id') %>
<% end %>