<%= csrf_meta_tags %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "ruling_template/template" %> <% end %>

<%= @template.title %>

<% if !@template.template_image_files.empty? %> <% end %>
Drop files here
<% if !@template.template_psd_file.nil? && !@template.template_psd_file.psd_zip.url.nil? %> Click here to download PSD <% end %>
Select PSD File
<%= form_for @template, url: admin_ruling_template_path(@template.id) do |f| %> <%= f.text_field :git_url %> <%= f.text_field :git_branch %>
<%= f.submit 'update',class: 'btn btn-primary' %> <% end %> <% if !@template.template_zip(true).url.nil? %> Click here to download Template <% end %> <%= form_for @template, url: admin_ruling_template_path(@template.id) do |f| %> Select Template File <%= f.file_field :template_zip %> <% end %>
Edit Template Templates
<% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <%= javascript_include_tag "file-upload/vendor/jquery.ui.widget.js" %> <%= javascript_include_tag "file-upload/tmpl.min.js" %> <%= javascript_include_tag "file-upload/load-image.min.js" %> <%= javascript_include_tag "file-upload/canvas-to-blob.min.js" %> <%= javascript_include_tag "file-upload/jquery.iframe-transport.js" %> <%= javascript_include_tag "file-upload/jquery.fileupload.js" %> <%= javascript_include_tag "file-upload/jquery.fileupload-fp.js" %> <%= javascript_include_tag "file-upload/jquery.fileupload-ui.js" %> <%= javascript_include_tag "file-upload/drop-zone.js" %> <% end %>