Reformat a bit to fit page styling.

Reformat a bit to fit page styling.

<% @title = "Your privacy" %>

<%= render :partial => 'sidebar' %>

<%= @title %> #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to. This includes the public authority that you are sending a
request to.  They only get to see an email address
@whatdotheyknow.com which is specific to that request.

If you send a message to another user on the site, then it will reveal your
email address to them. You will be told that this is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name and my request appear publicly on the site? #

We publish your request on the Internet so that anybody can read it and
make use of the information that you have found. We do not normally delete
requests (more details).

Your name is tangled up with your request, so has to be published as well.
It is only fair, as we're going to publish the name of the civil servant who
writes the response to your request.  Using your real name also helps people
get in touch with you to assist you with your research or to campaign with you.

By law, you must use your real name for the request to be a valid Freedom of
Information request. See the next question for alternatives if you do not want
to publish your full name.

Can I make an FOI request using a pseudonym? #

Technically, you must use your real name for your request to be a valid Freedom of Information request in law. See this
guidance from the Information Commissioner (January 2009).

However, the same guidance also says it is good practice for the public
authority to still consider a request made using an obvious pseudonym.
You should refer to this if a public authority refuses a request because you
used a pseudonym.

Be careful though, even if the authority follows this good practice, the
pseudonym will probably make it impossible for you to complain to the
Information Commissioner later about the handling of your request.

There are several good alternatives to using a pseudonym.

Use a different form of your name. The guidance says
that "Mr Arthur Thomas Roberts" can make a valid request as "Arthur Roberts",
"A. T. Roberts", or "Mr Roberts", but not as "Arthur" or "A.T.R.".

Women may use their maiden name.

In most cases, you may use any name by which you are "widely known and/or
is regularly used".

Use the name of an organisation, the name of a company, the trading name of
a company, or the trading name of a sole trader.

Ask someone else to make the request on your behalf.

You may, if you are really stuck, ask us to make the request on
your behalf. Please contact us with
a good reason why you cannot make the request yourself and cannot
ask a friend to. We don't have the resources to do this for everyone.

Please do not try to impersonate someone else.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, mark your request as "They are going to reply by post", and it will
give you an email address to use for that purpose.

Can you delete my requests, or alter my name?  #

WhatDoTheyKnow is a permanent, public archive of Freedom of
Information requests. Even though you may not find the response to
a request useful any more, it may be of interest to others. For this
reason, we will not delete requests.

Under exceptional circumstances we may remove or change your name
on the website, see the next question.
Similarly, we may also remove other personal information.

If you're worried about this before you make your request,
see the section on pseudonyms.

Can you take down personal information about me? #

If you see any personal information about you on the site which you'd like
us to remove or hide, then please let us know.
Specify exactly what information you believe to be problematic and why, and
where it appears on the site.

If it is sensitive personal information that has been accidentally
posted, then we will usually remove it. Normally we will only consider
requests to remove personal information which come from the individual
concerned, but for sensitive information we would appreciate anyone
pointing out anything they see.

We consider that there is a strong public interest in
retaining the names of officers or servants of public authorities. We will only
remove such names in exceptional circumstances, such as where the disclosure of
a name and position of employment would substantially risk an individual's
safety. If you are such an official and you wish to have your name removed for
such an urgent reason, you must supply us with a request to do so from your
line manager. This request must demonstrate that a risk has been perceived
which outweighs the public interest, and must demonstrate that efforts have
been made to conceal the name on the organisation's own website.

For all other requests we apply a public interest test to decide
whether information should be removed.
 Section 32
of the Data Protection Act 1998 permits us to do this, as the material we
publish is journalistic. We cannot easily edit many types of attachments (such
as PDFs, or Microsoft Word or Excel files), so we will usually ask
that authorities resend these with the personal information removed.

What about cookies and third party services? #

Our use of cookies and external services: what you should know, and how to opt out if you want to.

Summary: We care a lot about our users’ privacy. We provide details below, and we try our hardest to look after the private data that we hold. Like many other websites, we sometimes use cookies and Google Analytics to help us make our websites better. These tools are very common and used by many other sites, but they do have privacy implications, and as a charity concerned with socially positive uses of the internet, we think it’s important to explain them in full. If you don’t want to share your browsing activities on mySociety’s sites with other companies, you can adjust your usage or install opt-out browser plugins.

Cookies

To make our service easier or more useful, we sometimes place small data files on your computer or mobile phone, known as cookies; many websites do this. We use this information to, for example, remember you have logged in so you don't need to do that on every page, or to measure how people use the website so we can improve it and make sure it works properly. Below, we list the cookies and services that this site can use.

Name	Typical Content	Expires

_wdtk_cookie_session	A random unique identifier	When web browser is closed, or 1 month if 'Remember me' is used

seen_foi2	The number 1 if you have seen a notice	7 days

last_request_id	A number, identifying the last FOI request you looked at on the site	When web browser is closed

last_body_id	A number, identifying the last public authority you looked at on the site	When web browser is closed

Measuring website usage (Google Analytics)

  We use Google Analytics to collect information about how people use this site. We do this to make sure it’s meeting its users’ needs and to understand how we could do it better. Google Analytics stores information such as what pages you visit, how long you are on the site, how you got here, what you click on, and information about your web browser. IP addresses are masked (only a portion is stored) and personal information is only reported in aggregate. We do not allow Google to use or share our analytics data for any purpose besides providing us with analytics information, and we recommend that any user of Google Analytics does the same.

If you’re unhappy with data about your visit to be used in this way, you can install the official browser plugin for blocking Google Analytics.

The cookies set by Google Analytics are as follows:

Name	Typical Content	Expires

__utma	Unique anonymous visitor ID	2 years

__utmb	Unique anonymous session ID	30 minutes

__utmz	Information on how the site was reached (e.g. direct or via a link/search/advertisement)	6 months

__utmx	Which variation of a page you are seeing if we are testing different versions to see which is best	2 years

Google’s Official Statement about Analytics Data

“This website uses Google Analytics, a web analytics service provided by Google, Inc. (“Google”).  Google Analytics uses “cookies”, which are text files placed on your computer, to help the website analyze how users use the site. The information generated by the cookie about your use of the website (including your IP address) will be transmitted to and stored by Google on servers in the United States . Google will use this information for the purpose of evaluating your use of the website, compiling reports on website activity for website operators and providing other services relating to website activity and internet usage.  Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. Google will not associate your IP address with any other data held by Google.  You may refuse the use of cookies by selecting the appropriate settings on your browser, however please note that if you do this you may not be able to use the full functionality of this website.  By using this website, you consent to the processing of data about you by Google in the manner and for the purposes set out above.”

More general information on how third party services work

Credits

Bits of wording taken from the gov.uk cookies page (under the Open Government Licence).

Learn more from the help for FOI officers -->

<% @title = "Your privacy" %>

<%= render :partial => 'sidebar' %>

<%= @title %> #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to. This includes the public authority that you are sending a
request to.  They only get to see an email address
@whatdotheyknow.com which is specific to that request.

If you send a message to another user on the site, then it will reveal your
email address to them. You will be told that this is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name and my request appear publicly on the site? #

We publish your request on the Internet so that anybody can read it and
make use of the information that you have found. We do not normally delete
requests (more details).

Your name is tangled up with your request, so has to be published as well.
It is only fair, as we're going to publish the name of the civil servant who
writes the response to your request.  Using your real name also helps people
get in touch with you to assist you with your research or to campaign with you.

By law, you must use your real name for the request to be a valid Freedom of
Information request. See the next question for alternatives if you do not want
to publish your full name.

Can I make an FOI request using a pseudonym? #

Technically, you must use your real name for your request to be a valid Freedom of Information request in law. See this
guidance from the Information Commissioner (January 2009).

However, the same guidance also says it is good practice for the public
authority to still consider a request made using an obvious pseudonym.
You should refer to this if a public authority refuses a request because you
used a pseudonym.

Be careful though, even if the authority follows this good practice, the
pseudonym will probably make it impossible for you to complain to the
Information Commissioner later about the handling of your request.

There are several good alternatives to using a pseudonym.

Use a different form of your name. The guidance says
that "Mr Arthur Thomas Roberts" can make a valid request as "Arthur Roberts",
"A. T. Roberts", or "Mr Roberts", but not as "Arthur" or "A.T.R.".

Women may use their maiden name.

In most cases, you may use any name by which you are "widely known and/or
is regularly used".

Use the name of an organisation, the name of a company, the trading name of
a company, or the trading name of a sole trader.

Ask someone else to make the request on your behalf.

You may, if you are really stuck, ask us to make the request on
your behalf. Please contact us with
a good reason why you cannot make the request yourself and cannot
ask a friend to. We don't have the resources to do this for everyone.

Please do not try to impersonate someone else.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, mark your request as "They are going to reply by post", and it will
give you an email address to use for that purpose.

Can you delete my requests, or alter my name?  #

WhatDoTheyKnow is a permanent, public archive of Freedom of
Information requests. Even though you may not find the response to
a request useful any more, it may be of interest to others. For this
reason, we will not delete requests.

Under exceptional circumstances we may remove or change your name
on the website, see the next question.
Similarly, we may also remove other personal information.

If you're worried about this before you make your request,
see the section on pseudonyms.

Can you take down personal information about me? #

If you see any personal information about you on the site which you'd like
us to remove or hide, then please let us know.
Specify exactly what information you believe to be problematic and why, and
where it appears on the site.

If it is sensitive personal information that has been accidentally
posted, then we will usually remove it. Normally we will only consider
requests to remove personal information which come from the individual
concerned, but for sensitive information we would appreciate anyone
pointing out anything they see.

We consider that there is a strong public interest in
retaining the names of officers or servants of public authorities. We will only
remove such names in exceptional circumstances, such as where the disclosure of
a name and position of employment would substantially risk an individual's
safety. If you are such an official and you wish to have your name removed for
such an urgent reason, you must supply us with a request to do so from your
line manager. This request must demonstrate that a risk has been perceived
which outweighs the public interest, and must demonstrate that efforts have
been made to conceal the name on the organisation's own website.

For all other requests we apply a public interest test to decide
whether information should be removed.
 Section 32
of the Data Protection Act 1998 permits us to do this, as the material we
publish is journalistic. We cannot easily edit many types of attachments (such
as PDFs, or Microsoft Word or Excel files), so we will usually ask
that authorities resend these with the personal information removed.

What about cookies and third party services?

Our use of cookies, and external services: what you should know, and how to opt out if you want to.

Summary: We care a lot about our users’ privacy. We provide details below, and we try our hardest to look after the private data that we hold. Like many other websites, we sometimes use cookies and Google Analytics to help us make our websites better. These tools are very common and used by many other sites, but they do have privacy implications, and as a charity concerned with socially positive uses of the internet, we think it’s important to explain them in full. If you don’t want to share your browsing activities on mySociety’s sites with other companies, you can adjust your usage or install opt-out browser plugins.

Cookies

To make our service easier or more useful, we sometimes place small data files on your computer or mobile phone, known as cookies; many websites do this. We use this information to, for example, remember you have logged in so you don't need to do that on every page, or to measure how people use the website so we can improve it and make sure it works properly. Below, we list the cookies and services that this site can use.

Name	Typical Content	Expires

_wdtk_cookie_session	A random unique identifier	When web browser is closed, or 1 month if 'Remember me' is used.

seen_foi2	The number 1 if you have seen a notice	7 days

last_request_id	A number, identifying the last FOI request you looked at on the site	When web browser is closed.

last_body_id	A number, identifying the last public authority you looked at on the site	When web browser is closed.

Measuring website usage (Google Analytics)

  We use Google Analytics to collect information about how people use this site. We do this to make sure it’s meeting its users’ needs and to understand how we could do it better. Google Analytics stores information such as what pages you visit, how long you are on the site, how you got here, what you click on, and information about your web browser. IP addresses are masked (only a portion is stored) and personal information is only reported in aggregate. We do not allow Google to use or share our analytics data for any purpose besides providing us with analytics information, and we recommend that any user of Google Analytics does the same.

If you’re unhappy with data about your visit to be used in this way, you can install the official browser plugin for blocking Google Analytics.

The cookies set by Google Analytics are as follows:

Name	Typical Content	Expires

__utma	Unique anonymous visitor ID	2 years

__utmb	Unique anonymous session ID	30 minutes

__utmz	Information on how the site was reached (e.g. direct or via a link/search/advertisement)	6 months

__utmx	Which variation of a page you are seeing if we are testing different versions to see which is best	2 years

Google’s Official Statement about Analytics Data

“This website uses Google Analytics, a web analytics service provided by Google, Inc. (“Google”).  Google Analytics uses “cookies”, which are text files placed on your computer, to help the website analyze how users use the site. The information generated by the cookie about your use of the website (including your IP address) will be transmitted to and stored by Google on servers in the United States . Google will use this information for the purpose of evaluating your use of the website, compiling reports on website activity for website operators and providing other services relating to website activity and internet usage.  Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. Google will not associate your IP address with any other data held by Google.  You may refuse the use of cookies by selecting the appropriate settings on your browser, however please note that if you do this you may not be able to use the full functionality of this website.  By using this website, you consent to the processing of data about you by Google in the manner and for the purposes set out above.”

More general information on how third party services work

Credits

Bits of wording taken from the gov.uk cookies page (under the Open Government Licence).

Learn more from the help for FOI officers -->


jquery

jquery

---
title: Reading your tax bill
created_at: 2013-01-03
kind: article
tags: ['scarsdale']
---

        Scarsdale's tax bills
        aren't
        the most straightforward of documents. They've been this bad for
        years, and I don't expect any change soon, so here's a guide for
        reading them.

        Your house is assessed to determine its Assessed Total Value, then
        excemptions are subtracted to it to produce the Assessed Taxable Value.
        This times the tax rate (in permil) produces your Tax Amount.

        If you add up the county, village and school tax rates, it comes to about
        $1,000, so your tax payments are about equal to the assessed value of your
        house. There are also the sewer and solid waste taxes, but those are much
        smaller.

        Enter the assessed taxable value of your house to find out what you pay in
        taxes and how you compare to everyone else. You can find your house's
        assessed total and taxable values here.

Make this window wider (to 1008 pixels)
to see the table.

                Levy Description
                Total Tax Levy
                % Change from Prior Year
                Assessed Total Value
                Assessed Taxable Value
                Tax Rate
                Tax Amount

                2012 COUNTY TAX
                27,078,607
                3.17

                194.908400

                2012-2013 VILLAGE TX
                33,093,095
                3.72

                238.420000

                2012-2013 School Tax
                127,045,773
                2.89

                868.927000

                Total:


Ask for help on fixing DPA troubles.

Ask for help on fixing DPA troubles.

<% @title = "About" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

No. Requests made using WhatDoTheyKnow are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.  You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name appear publically on the site? #

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the previous
question.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests, and for us to
block them when that happens.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

Isn't it a problem that you publish the names of civil servants and the text of emails? #

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers? #

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me? #

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.

<% @title = "About" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

Not using this site. Requests made using WhatDoTheyKnow are public, made under the
Freedom of Information Act, and cannot help you find information about a
private individual. If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

I'd like to keep my request secret! (At least until I publish my story) #

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.  You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name appear publically on the site? #

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the previous
question.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests, and for us to
block them when that happens.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

Isn't it a problem that you publish the names of civil servants and the text of emails? #

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers? #

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me? #

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.


Hack to fix post alignment in frontpage

Hack to fix post alignment in frontpage

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

<%= _("Ejerce tu derecho a saber.") %>

1

2

3

<%= _("Para obtener información de instituciones públicas:") %>

<%= _("Piensa una pregunta para un organismo público.") %>

<%= _("Nosotros enviamos la pregunta por ti.") %>

<%= _("Te avisamos cuando haya una respuesta.") %>

            <%= link_to _("Preguntar »"), body_index_path %>

            <%= link_to _("¿Contestarán? »"), help_requesting_path(:anchor => 'making_requests') %>

Anteproyecto de Ley de Transparencia

El gobierno publicará el próximo lunes 26 el anteproyecto de Ley de Transparencia, y podrás enviar tus comentarios durante 15 días a través del Ministerio de la Presidencia.

¡Nos vemos el lunes!

Este lunes 26 a las 20:00 horas
 estaremos en Utopic_US (Madrid) presentando tuderechoasaber.es. ¡Os esperamos!.

También puedes vernos por streaming.

Twittear

<%= _("Haz una búsqueda entre las peticiones ya realizadas:") %>

              <% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

                <%= text_field_tag 'query', params[:query], { :size => 80 } %>
                <%= submit_tag _('Search') %>

              <% end %>

<%= _("Novedades") %>

                <%
                  # XXX: The ugliest hack, for launch day only
                  leads = [
                    'Se pregunta sobre todo a ministerios sobre subvenciones, facturas impagadas o denuncias a los cuerpos de seguridad.',
                    'El texto del borrador del anteproyecto de ley se podrá consultar desde hoy.',
                    'Los políticos la han prometido desde 2004, pero España sigue aún sin ley de transparencia.',
                    'Ya estamos en marcha. Entra con nosotros en el fascinante mundo de pedir información que es tuya.'
                  ];

                  position = 0;
                  for item in @blog_items[0..3]:
                    position = position + 1; %>

                  <div class="frontpage-blog-post <%= position.even? ? 'right' : 'left' %>" <%= position == 3 ? '' 'style="clear:left"' : '' %> >
                    <img src="/tuderechoasaber-theme/images/posts/<%= item['title'].to_s.gsub(/[^A-Za-z]/,'').downcase %>.jpg" width="278" height="128"/>

                      <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

<%= h excerpt(leads[position-1], "", 200) %>

<a href="<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>"><%= _("Leer más »") %>

                <% end %>

<%= _("Peticiones destacadas") %>

                <% @featured_requests.each do |featured_request| %>
                <%= render :partial => 'track/tracking_request_links',
                      :locals => {
                        :track_thing => TrackThing.create_track_for_request(featured_request),
                        :own_request => featured_request.user == @user,
                        :location => "frontpage"
                      } %>
                <% end %>

<% end %>

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

<%= _("Ejerce tu derecho a saber.") %>

1

2

3

<%= _("Para obtener información de instituciones públicas:") %>

<%= _("Piensa una pregunta para un organismo público.") %>

<%= _("Nosotros enviamos la pregunta por ti.") %>

<%= _("Te avisamos cuando haya una respuesta.") %>

            <%= link_to _("Preguntar »"), body_index_path %>

            <%= link_to _("¿Contestarán? »"), help_requesting_path(:anchor => 'making_requests') %>

Anteproyecto de Ley de Transparencia

El gobierno publicará el próximo lunes 26 el anteproyecto de Ley de Transparencia, y podrás enviar tus comentarios durante 15 días a través del Ministerio de la Presidencia.

¡Nos vemos el lunes!

Este lunes 26 a las 20:00 horas
 estaremos en Utopic_US (Madrid) presentando tuderechoasaber.es. ¡Os esperamos!.

También puedes vernos por streaming.

Twittear

<%= _("Haz una búsqueda entre las peticiones ya realizadas:") %>

              <% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

                <%= text_field_tag 'query', params[:query], { :size => 80 } %>
                <%= submit_tag _('Search') %>

              <% end %>

<%= _("Novedades") %>

                <%
                  # XXX: The ugliest hack, for launch day only
                  leads = [
                    'Se pregunta sobre todo a ministerios sobre subvenciones, facturas impagadas o denuncias a los cuerpos de seguridad.',
                    'El texto del borrador del anteproyecto de ley se podrá consultar desde hoy.',
                    'Los políticos la han prometido desde 2004, pero España sigue aún sin ley de transparencia.',
                    'Ya estamos en marcha. Entra con nosotros en el fascinante mundo de pedir información que es tuya.'
                  ];

                  position = 0;
                  for item in @blog_items[0..3]:
                    position = position + 1; %>
                  <div class="frontpage-blog-post <%= position.even? ? 'right' : 'left' %>">
                    <img src="/tuderechoasaber-theme/images/posts/<%= item['title'].to_s.gsub(/[^A-Za-z]/,'').downcase %>.jpg" width="278" height="128"/>

                      <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

<%= h excerpt(leads[position-1], "", 200) %>

<a href="<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>"><%= _("Leer más »") %>

                <% end %>

<%= _("Peticiones destacadas") %>

                <% @featured_requests.each do |featured_request| %>
                <%= render :partial => 'track/tracking_request_links',
                      :locals => {
                        :track_thing => TrackThing.create_track_for_request(featured_request),
                        :own_request => featured_request.user == @user,
                        :location => "frontpage"
                      } %>
                <% end %>

<% end %>


fixing misaligned table items

fixing misaligned table items

    <% if show_bat %>
    <%= link_to medical_problem.bat.band, :controller => 'bats', :action => 'show', :id => medical_problem.bat %>
    <%= link_to medical_problem.bat.cage.name, :controller => 'cages', :action => :show, :id => medical_problem.bat.cage %>
    <% end %>

      <%= link_to medical_problem.title, :controller => 'medical_problems', :action => 'show', :id => medical_problem %>

      <%=h nice_date(medical_problem.date_opened) %>

    <% if medical_problem.date_closed == nil %>
      <% if @list_all %>

          <%=h nice_date(medical_problem.date_closed) %>

      <% end %>

        <%= link_to 'Edit', :controller => 'medical_problems', :action => 'edit', :id => medical_problem %>

        <%= link_to 'Close', :controller => 'medical_problems', :action => 'deactivate', :id => medical_problem %>

    <% else %>

        <%=h nice_date(medical_problem.date_closed) %>

        <%= link_to 'Reactivate', :controller => 'medical_problems', :action => 'reactivate', :id => medical_problem %>

    <% end %>

    <% for medical_treatment in medical_problem.medical_treatments.current %>

        <%= link_to medical_treatment.title, :controller => 'medical_treatments', :action => 'show', :id => medical_treatment%>

        <% if medical_treatment.done_today == true %>
          Done
        <% elsif medical_treatment.tasks.medical_tasks_today.length > 0 %>
          [<%= link_to 'Do', :controller => 'tasks', :action => 'do_medical_task', :id => medical_treatment.todays_task %>]
				<% else %>
          [<%= link_to 'Create Medical Tasks', :controller => 'medical_treatments', :action=>:show, :id=> medical_treatment %>]
        <% end %>

        [<%= link_to 'End', {:controller => 'medical_treatments', :action => 'destroy_medical_treatment', :id => medical_treatment}, :confirm => 'Are you sure?', :method => :post %>]

			<% if medical_treatment.tasks.current.length < 7 %>
			<warning>Treatment not given every day</warning>
			<% end %>

      <% if @list_all %>

      <% end %>
      <% if show_bat %>

      <% end %>
    <% end %>
    <% if medical_problem.date_closed == nil %>
      [<%= link_to 'Add New Treatment', :controller => 'medical_treatments', :action => 'new', :id => medical_problem %>]
    <% end %>
		<% if (medical_problem.medical_treatments.current.length == 0) && (medical_problem.date_closed == nil) %>

			<warning>No treatment</warning>
		<% end %>


rails 1.2 fixes

rails 1.2 fixes

git-svn-id: 63e5431e33a10c4701b329fb6d8e0744110cb91e@153 c2b4ead4-481d-0410-ac63-b02590f85e3f

<% if session[:admin] %>

You are currently logged in.  Click here to <%= link_to "log out", :action => 'logout' %>

<% else %>
<% form_tag :action => 'login' do %>

Enter password <%= password_field_tag 'pswd'%> <%= submit_tag 'Login' %>

<% end %>
<% end %>

<% if session[:admin] %>

You are currently logged in.  Click here to <%= link_to "log out", :action => 'logout' %>

<% else %>
<%= start_form_tag :action => 'login' %>

Enter password <%= password_field_tag 'pswd'%> <%= submit_tag 'Login' %>

<%= end_form_tag %>
<% end %>


For [#63] 'ref' links should be anchored to the locus ID, not its source's

<%= link_to "[#{greek_numeral(@loci.index(ref).next)}]", :anchor => "locus-#{ref.id}"%>

<%= link_to "[#{greek_numeral(@loci.index(ref).next)}]", :anchor => "locus-#{ref.source.id}"%>


Fix links

Fix links

<% @title = "Overview" %>

<%=@title%>

<%=@public_body_count%> public bodies

<%=@info_request_count%> requests

<%=@user_count%> users

<%=h @events_title%>

Week
| Month
| All time

<% last_date = nil %>
<% for event in @events %>
    <% if last_date != event.created_at.to_date %>
        <% if last_date.nil? %>

        <% end %>

<%= simple_date(event.created_at) %>

    <% else %>

    <% end %>
    <% last_date = event.created_at.to_date %>

    '<%= link_to h(event.info_request.title), main_url(request_url(event.info_request)) %>'
    <% if event.event_type == 'edit' %>
        was edited by administrator <%=h event.params[:editor] %>.
        <% for p in ['title', 'prominence', 'described_state', 'awaiting_description']
                if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                    %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                end
           end
        %>
    <% elsif event.event_type == 'edit_outgoing' %>
        <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
        had outgoing message edited by administrator <%=h event.params[:editor] %>.
        <% if outgoing_messages.size > 0 %>
            <% outgoing_message = outgoing_messages[0] %>
            <% for p in ['body']
                    if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                        %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                    end
               end
            %>
        <% else %>
            Missing outgoing message, internal error.
        <% end %>
    <% elsif event.event_type == 'response' %>
        <% incoming_message = IncomingMessage.find(event.params[:incoming_message_id]) %>
        received
        <%= link_to 'a response',
            main_url(show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id, :only_path => true)) %>

        from <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'sent' %>
        was initially sent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'resent' %>
        had the request resent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'followup_sent' %>
        <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
        had a follow up message sent to <%=h event.info_request.public_body.name %>.
    <% else %>
        had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
    <% end %>
<% end %>

<% @title = "Overview" %>

<%=@title%>

<%=@public_body_count%> public bodies

<%=@info_request_count%> requests

<%=@user_count%> users

<%=h @events_title%>

Week
| Month
| All time

<% last_date = nil %>
<% for event in @events %>
    <% if last_date != event.created_at.to_date %>

<%= simple_date(event.created_at) %>

    <% end %>
    <% last_date = event.created_at.to_date %>

        '<%= link_to h(event.info_request.title), 'request/show/' + event.info_request.id.to_s %>'
        <% if event.event_type == 'edit' %>
            was edited by administrator <%=h event.params[:editor] %>.
            <% for p in ['title', 'prominence', 'described_state', 'awaiting_description']
                    if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                        %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                    end
               end
            %>
        <% elsif event.event_type == 'edit_outgoing' %>
            <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
            had outgoing message edited by administrator <%=h event.params[:editor] %>.
            <% if outgoing_messages.size > 0 %>
                <% outgoing_message = outgoing_messages[0] %>
                <% for p in ['body']
                        if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                            %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                        end
                   end
                %>
            <% else %>
                Missing outgoing message, internal error.
            <% end %>
        <% elsif event.event_type == 'response' %>
            <% incoming_message = IncomingMessage.find(event.params[:incoming_message_id]) %>
            received
            <%= link_to 'a response',
                main_url(show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id)) %>

            from <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'sent' %>
            was initially sent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'resent' %>
            had the request resent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'followup_sent' %>
            <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
            had a follow up message sent to <%=h event.info_request.public_body.name %>.
        <% else %>
            had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
        <% end %>

<% end %>


Tweak wording a bit following feedback from ICO

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

Write your request in simple, precise language.

Ask for specific documents or information, this site is not suitable
    for general enquiries.

    <% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
        to '<%= h(@info_request.public_body.name) %>'
        for examples of how to word your request.

    <% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

    <% end %>

Keep it focussed, if you ask for everything it might cost too much
    and you might get nothing.

This site is public, everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

    <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

Write your request in simple, precise language.
    <% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
        to '<%= h(@info_request.public_body.name) %>'
        for examples of how to word your request.

    <% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

    <% end %>

Keep it focussed, if you ask for everything it might cost too much
    and you might get nothing.

Ask for particular documents, rather than general questions.

This site is public, everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

    <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>


Changed datetime to date selectors.

Changed datetime to date selectors.

<%= error_messages_for 'article' %>

Title

<%= text_field 'article', 'title'  %>

Tags

<%= text_field 'article', 'tags'  %>

Body

<%= text_area 'article', 'body'  %>

Created at

<%= date_select 'article', 'created_at'  %>

Updated at

<%= date_select 'article', 'updated_at'  %>

Published

<select id="article_published" name="article[published]">
  <option value="false" selected>False</option>
  <option value="true">True</option>
</select>

<%= error_messages_for 'article' %>

Title

<%= text_field 'article', 'title'  %>

Tags

<%= text_field 'article', 'tags'  %>

Body

<%= text_area 'article', 'body'  %>

Created at

<%= datetime_select 'article', 'created_at'  %>

Updated at

<%= datetime_select 'article', 'updated_at'  %>

Published

<select id="article_published" name="article[published]"><option value="false" selected>False</option><option value="true">True</option></select>


ActionItem44: Rephrasing

ActionItem44: Rephrasing

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@1999 3f533792-8f58-4932-b0fe-aaf55b0a4547

<%= _('e-Mail configuration') %>

<% form_tag(:action => 'save') do %>

    <%= check_box :user, :enable_email  %>
    <%= _('Enable e-mail %s') % profile.email_addresses.join(', ') %>

      <%= _("Marking this options gives you an e-mail account with the address above. You'll be able to access a webmail from your user menu.") %>

  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
  <% end %>
<% end %>

<%= _('e-Mail configuration') %>

<% form_tag(:action => 'save') do %>

    <%= check_box :user, :enable_email  %>
    <%= _('Enable e-mail %s') % profile.email_addresses.join(', ') %>

      <%= _('Marking this options gives you an e-mail account with the address above.') %>

  <% button_bar do %>
    <%= submit_button :save, _('Save') %>
    <%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
  <% end %>
<% end %>


cleanup of the rocks template

cleanup of the rocks template

<!DOCTYPE html>

    <meta charset="utf-8" />
    <title><%= title %></title>
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono" rel="stylesheet" type="text/css" />

    <link href="css/rocks.css" rel="stylesheet" type="text/css" />

    <% css_files.each do |css_file| %>
    <link href="<%= css_file %>" rel="stylesheet" type="text/css" />
    <% end %>

      <% slides.each do |slide| %>
        <%= slide.to_html %>
      <% end %>

    <% js_files.each do |js_file| %>

    <% end %>


fix syntax error

fix syntax error

PMD Settings for '<%= @assignment.title %>'

<%= link_to 'Back', :action => 'autograde', :id => @assignment %>

PMD is a package for checking the style of Java code against community standards.   You can choose exactly which style checks are enabled and disabled for each assignment.

<% if @assignments.size > 0 %>
  <%= start_form_tag( { :action => 'copy_pmd', :id => @assignment } ) %>

Copy PMD settings from assignment:
	  <%= select_tag 'copy_from_id', options_from_collection_for_select(@assignments, "id", "title", @assignments.id ) %>
	  <%= submit_tag 'Copy PMD Settings' %>

  <%= end_form_tag %>
<% end %>

  <%= start_form_tag( { :action => 'save_pmd', :id => @assignment } ) %>

  <% count = 0 %>
  <% @assignment.assignment_pmd_settings.each do |apmd| %>
    <% count = count.next %>

<label for="apmd_<%=apmd.style_check_id%>" class="required"><%= count %>) <%= link_to_function "#{apmd.style_check.name}", visual_effect(:toggle_slide, "description_#{apmd.style_check_id}" )  %>:
	   	<%= radio_button_tag "apmd_#{apmd.style_check_id}", true, apmd.enabled == true %> Yes
	    <%= radio_button_tag "apmd_#{apmd.style_check_id}", false, apmd.enabled == false %> No
	    <div id="description_<%=apmd.style_check_id%>" style="display: none;">

Description: <%= apmd.style_check.description %>

Example:
<%= apmd.style_check.example %>

  <% end %>

<%= submit_tag "Save PMD Settings" %>

<%= end_form_tag %>

<%= link_to 'Back', :action => 'autograde', :id => @assignment %>

PMD Settings for '<%= @assignment.title %>'

<%= link_to 'Back', :action => 'autograde', :id => @assignment %>

PMD is a package for checking the style of Java code against community standards.   You can choose exactly which style checks are enabled and disabled for each assignment.

<% if @assignments.size > 0 %>
  <%= form_tag( { :action => 'copy_pmd', :id => @assignment } ) do %>

Copy PMD settings from assignment:
	  <%= select_tag 'copy_from_id', options_from_collection_for_select(@assignments, "id", "title", @assignments.id ) %>
	  <%= submit_tag 'Copy PMD Settings' %>

  <%= end %>
<% end %>

  <%= start_form_tag( { :action => 'save_pmd', :id => @assignment } ) %>

  <% count = 0 %>
  <% @assignment.assignment_pmd_settings.each do |apmd| %>
    <% count = count.next %>

<label for="apmd_<%=apmd.style_check_id%>" class="required"><%= count %>) <%= link_to_function "#{apmd.style_check.name}", visual_effect(:toggle_slide, "description_#{apmd.style_check_id}" )  %>:
	   	<%= radio_button_tag "apmd_#{apmd.style_check_id}", true, apmd.enabled == true %> Yes
	    <%= radio_button_tag "apmd_#{apmd.style_check_id}", false, apmd.enabled == false %> No
	    <div id="description_<%=apmd.style_check_id%>" style="display: none;">

Description: <%= apmd.style_check.description %>

Example:
<%= apmd.style_check.example %>

  <% end %>

<%= submit_tag "Save PMD Settings" %>

<%= end_form_tag %>

<%= link_to 'Back', :action => 'autograde', :id => @assignment %>


Show incoming email address in admin interface

<% @title = "FOI request - " + h(@info_request.title) %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Public body: <%=h @info_request.public_body.name %>

Incoming email address: <%=h @info_request.incoming_email %>

<%= link_to 'Public page', main_url(request_url(@info_request)) %>

Outgoing messages

  <% for column in OutgoingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for outgoing_message in @info_request.outgoing_messages %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>
    <%=h outgoing_message.send(column) %>
  <% end %>

  <% form_tag '../resend' do %>
  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
  <%= submit_tag "Resend" %>
  <% end %>

<% end %>

Incoming messages

  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for incoming_message in @info_request.incoming_messages %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <%=h incoming_message.send(column) %>
  <% end %>

<% end %>

Events

  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for info_request_event in @info_request.info_request_events %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in InfoRequestEvent.content_columns.map { |c| c.name } %>
    <%=h info_request_event.send(column) %>
  <% end %>

<% end %>

<% @title = "FOI request - " + h(@info_request.title) %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Public body: <%=h @info_request.public_body.name %>

<%= link_to 'Public page', main_url(request_url(@info_request)) %>

Outgoing messages

  <% for column in OutgoingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for outgoing_message in @info_request.outgoing_messages %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>
    <%=h outgoing_message.send(column) %>
  <% end %>

  <% form_tag '../resend' do %>
  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
  <%= submit_tag "Resend" %>
  <% end %>

<% end %>

Incoming messages

  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for incoming_message in @info_request.incoming_messages %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <%=h incoming_message.send(column) %>
  <% end %>

<% end %>

Events

  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for info_request_event in @info_request.info_request_events %>
  <tr class="<%= cycle('odd', 'even') %>">
  <% for column in InfoRequestEvent.content_columns.map { |c| c.name } %>
    <%=h info_request_event.send(column) %>
  <% end %>

<% end %>


Update help notice now alerts finished.

Update help notice now alerts finished.

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Finish designing the site - this appearance is just placeholder.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or commission us!

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Finish designing the site - the current appearance is in flux.

 RSS feeds and email alerts based on search terms.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or commission us!


show blank answers

show blank answers

<% counter = 0 -%>
<div id="responsecontainer<%=resp.id%>" class="responsecontainer">

    				<%=resp.title%>

    			    Please wait...

    			    Are you sure? <%= button_to_function "Yes", 'confirmDelete();' %>
    			    <%= button_to_function "No", 'cancelDelete();' %>

    			    <%= button_to_function "Delete", 'deleteResponse();' %>
    				  <%= button_to_function "Close", 'hideResponse();' %>

    	<% resp.questionnaire.fields.each do |question| -%>
        <% answer = resp.answer_for_question(question) -%>
    		<% counter += 1 -%>
    		<table class="question" id="question<%=resp.id%>_<%=question.id%>">

    			<tr<% if counter % 2 == 1 %> class="odd"<%end%>>

    					<%= question.caption %>

              <% if answer.nil? -%>

              <% else -%>
    					  <%=h answer.value %>
              <% end -%>

    	<% end -%>

<% counter = 0 -%>
<div id="responsecontainer<%=resp.id%>" class="responsecontainer">

    				<%=resp.title%>

    			    Please wait...

    			    Are you sure? <%= button_to_function "Yes", 'confirmDelete();' %>
    			    <%= button_to_function "No", 'cancelDelete();' %>

    			    <%= button_to_function "Delete", 'deleteResponse();' %>
    				  <%= button_to_function "Close", 'hideResponse();' %>

    	<% resp.answers.each do |answer| -%>
    	    <% question = answer.question %>
    		<% counter += 1 -%>
    		<table class="question" id="question<%=resp.id%>_<%=question.id%>">

    			<tr<% if counter % 2 == 1 %> class="odd"<%end%>>

    					<%= question.caption %>

    					<%=h answer.value %>

    	<% end -%>


Fix XSS bug with comment author.  Admin pages are already clean.  (closes #307)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@521 820eb932-12ee-0310-9ca8-eeb645f39767

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>  said <%= distance_of_time_in_words @article.created_at, comment.created_at %> later:

  <%= comment.body_html %>

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? comment.author : link_to(comment.author, comment.url) %>  said <%= distance_of_time_in_words @article.created_at, comment.created_at %> later:

  <%= comment.body_html %>


Fixed additional media select

Fixed additional media select

<%= form_tag('',:method => 'post', :width => '100%', :onsubmit =>'ProductEditor.submitForm(); return true', :class => 'admin_form full_page_form') -%>
<% cms_subfields_for :product, @product do |f| -%>

<%= f.text_field :name, :required => true %>
<%= f.text_field :name_2, :label => 'Name (Line 2)' %>
<% f.custom_field :price_values, :valign => 'baseline' do  %>
  <%= render :partial => 'currency_inputs', :locals => { :field_name => 'product[price_values]',:prices => @product.price_values, :separator => "
" } %>
<% end -%>
<%= f.text_field :url, :description => 'Leave blank to create automatically',:label => 'Product url' %>
<%= f.filemanager_image :image_file_id, :label => 'Primary Image' %>
<%= f.text_field :internal_sku, :label => 'Internal Sku' %>
<%= f.text_field :sku, :label => 'Manufacturer Sku' %>
<%= f.select :shop_shop_id, Shop::ShopShop.select_options, :label => 'Site Shop' %>
<%= f.select :shop_product_class_id, @product_classes, { :label => 'Product Class'}, :onchange => 'ProductEditor.changeOptions(this.value);' %>

      <%= f.text_area :description, :cols => '60',:rows => '12', :required => true, :vertical => true %>
      <%= f.radio_buttons :in_stock, [['In Stock',true],['Out of Stock',false]],:label => '',:vertical => true %>
      <%= f.submit_tag @product.id ? 'Update Product' : 'Create Product' %>

    <% ajax_tabs ['Details','Categories','Additional Media','Options','Features'],'Details' do |t| -%>
        <% t.tab do -%>

           <%= f.radio_buttons :shippable, [['Yes',true],['No',false]], :description => 'Is this product shipped?' %>
           <%= f.text_field :weight, :unit => 'lbs' %>
           <%= f.text_field :brand %>
           <%= f.text_field :unit_quantity %>
           <%= f.text_field :dimensions  %>
           <%= f.editor_area :detailed_description, :rows => 15, :label => 'Details' %>

      <% end -%>

      <% t.tab do -%>

        <%= theme_image_tag('icons/table_actions/star_selected.gif') %> Featured in Category
        <%= theme_image_tag('icons/table_actions/star_unselected.gif') %> Not featured in Category
        <%= render :partial => 'categories', :locals => { :categories => ( @product_categories ? @product_categories.nested_children : [] ) }%>

      <% end -%>
      <% t.tab do -%>

                <%= link_to '+Add Additional Images'.t, { :controller => '/file', :action => 'popup' , :select => 'all', :callback => 'ProductEditor.attachFile', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>
                  <%= render :partial => 'files', :locals => { :files =>  @product.images_product_files, :field => "images" } %>

                <%= link_to '+Add Media & Files'.t, { :controller => '/file', :action => 'popup' , :select => 'all', :callback => 'ProductEditor.attachFile', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>
                  <%= render :partial => 'files', :locals => { :files =>  @product.files_product_files, :field => "files" } %>

      <% end -%>
      <% t.tab do -%>

          <%= render :partial => 'options', :locals => { :shop_product_class => @product.shop_product_class } %>

      <% end -%>
      <% t.tab do -%>
        <%= render :partial => 'features' %>
      <% end -%>
    <% end -%>

<%= f.submit_tag @product.id ? 'Update Product' : 'Create Product' %>
<% end -%>

<%= form_tag('',:method => 'post', :width => '100%', :onsubmit =>'ProductEditor.submitForm(); return true', :class => 'admin_form full_page_form') -%>
<% cms_subfields_for :product, @product do |f| -%>

<%= f.text_field :name, :required => true %>
<%= f.text_field :name_2, :label => 'Name (Line 2)' %>
<% f.custom_field :price_values, :valign => 'baseline' do  %>
  <%= render :partial => 'currency_inputs', :locals => { :field_name => 'product[price_values]',:prices => @product.price_values, :separator => "
" } %>
<% end -%>
<%= f.text_field :url, :description => 'Leave blank to create automatically',:label => 'Product url' %>
<%= f.filemanager_image :image_file_id, :label => 'Primary Image' %>
<%= f.text_field :internal_sku, :label => 'Internal Sku' %>
<%= f.text_field :sku, :label => 'Manufacturer Sku' %>
<%= f.select :shop_shop_id, Shop::ShopShop.select_options, :label => 'Site Shop' %>
<%= f.select :shop_product_class_id, @product_classes, { :label => 'Product Class'}, :onchange => 'ProductEditor.changeOptions(this.value);' %>

      <%= f.text_area :description, :cols => '60',:rows => '12', :required => true, :vertical => true %>
      <%= f.radio_buttons :in_stock, [['In Stock',true],['Out of Stock',false]],:label => '',:vertical => true %>
      <%= f.submit_tag @product.id ? 'Update Product' : 'Create Product' %>

    <% ajax_tabs ['Details','Categories','Additional Media','Options','Features'],'Details' do |t| -%>
        <% t.tab do -%>

           <%= f.radio_buttons :shippable, [['Yes',true],['No',false]], :description => 'Is this product shipped?' %>
           <%= f.text_field :weight, :unit => 'lbs' %>
           <%= f.text_field :brand %>
           <%= f.text_field :unit_quantity %>
           <%= f.text_field :dimensions  %>
           <%= f.editor_area :detailed_description, :rows => 15, :label => 'Details' %>

      <% end -%>

      <% t.tab do -%>

        <%= theme_image_tag('icons/table_actions/star_selected.gif') %> Featured in Category
        <%= theme_image_tag('icons/table_actions/star_unselected.gif') %> Not featured in Category
        <%= render :partial => 'categories', :locals => { :categories => ( @product_categories ? @product_categories.nested_children : [] ) }%>

      <% end -%>
      <% t.tab do -%>

                <%= link_to '+Add Additional Images'.t, { :controller => '/file', :action => 'popup' , :select => 'file', :callback => 'ProductEditor.attachFile', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>
                  <%= render :partial => 'files', :locals => { :files =>  @product.images_product_files, :field => "images" } %>

                <%= link_to '+Add Media & Files'.t, { :controller => '/file', :action => 'popup' , :select => 'file', :callback => 'ProductEditor.attachFile', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>
                  <%= render :partial => 'files', :locals => { :files =>  @product.files_product_files, :field => "files" } %>

      <% end -%>
      <% t.tab do -%>

          <%= render :partial => 'options', :locals => { :shop_product_class => @product.shop_product_class } %>

      <% end -%>
      <% t.tab do -%>
        <%= render :partial => 'features' %>
      <% end -%>
    <% end -%>

<%= f.submit_tag @product.id ? 'Update Product' : 'Create Product' %>
<% end -%>