diff options
Diffstat (limited to 'app/views/new')
-rw-r--r-- | app/views/new/create.rhtml | 5 | ||||
-rw-r--r-- | app/views/new/index.rhtml | 42 |
2 files changed, 47 insertions, 0 deletions
diff --git a/app/views/new/create.rhtml b/app/views/new/create.rhtml new file mode 100644 index 000000000..8220705ca --- /dev/null +++ b/app/views/new/create.rhtml @@ -0,0 +1,5 @@ +<% @title = "New FOI request" %> + +<p>Your Freedom of Information request has been created. + + diff --git a/app/views/new/index.rhtml b/app/views/new/index.rhtml new file mode 100644 index 000000000..84d0198bc --- /dev/null +++ b/app/views/new/index.rhtml @@ -0,0 +1,42 @@ +<% @title = "New FOI request" %> + +<%= foi_error_messages_for :info_request, :outgoing_message %> + +<% form_for(:info_request, @info_request, :url => { :action => :create }, :html => { :id => 'writeForm' } ) do |f| %> + + <h1>New FOI request</h1> + + <p><strong>Privacy warning:</strong> All information that you enter, except + for your email address, will be displayed publically on this website.</p> + + <p> + <label for="public_body_id">Public body:</label> + <%= + @public_bodies = PublicBody.find(:all, :order => "name") + f.collection_select(:public_body_id, @public_bodies, :id, :name) + %> + </p> + + + <p> + <label for="info_request_title">Summary:</label> + <%= f.text_field :title, :size => 50 %> + <br>(a one line summary of the information you are requesting, e.g. 'Crime statistics by ward level for Wales') + </p> + + <% fields_for :outgoing_message do |o| %> + <p> + <label for="outgoing_message_body">Your letter:</label> + <%= o.text_area :body, :rows => 20, :cols => 60 %> + </p> + <% end %> + + <p> + <label for="commit"> </label> + <%= submit_tag "Create request >>" %> + </p> + + </div> +<% end %> + + |