Sha256: d52d86573a3f6ffca189429e1f387106e4b6bdf19018649ce88383b4304c91fe

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

<h1>Forms for: <%= @task %></h1>

<ol>
	<%- @filesystem_bag['forms'].each do |form| %>
		<li><%= link_to form, "/sibyl/editor/edit/#{@task}/#{form}" %></li>
	<%- end %>
</ol>
<br />

<div class="sibyl_form">
	<h2>New Form</h2>
	<%= form_tag "/sibyl/editor/create", :method => :post, :multipart => true do %>
		<%= hidden_field_tag 'task', nil, :value => @task %>
		<%= label_tag :for => 'form' do %>
			Form Name
		<% end %>
		<%= text_field_tag 'form', nil, placeholder: "Form" %><br /><br />
		<%= label_tag :for => 'pdf' do %>
			PDF File
		<% end %>
		<%= file_field_tag 'pdf', :accept => ".pdf"  %><br />
		<br />
		<%= submit_tag "Create", :class => 'ui-button ui-widget ui-corner-all' %>
	<% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sibyl-0.2.1 app/views/sibyl/editor/index_task.html.erb
sibyl-0.2.0 app/views/sibyl/editor/index_task.html.erb