diff options
| author | David Cabo <david@calibea.com> | 2012-05-28 12:53:41 +0200 |
|---|---|---|
| committer | David Cabo <david@calibea.com> | 2012-05-28 12:54:24 +0200 |
| commit | 34b122aab4209120d80e8f66c40418eb1f60e0a4 (patch) | |
| tree | 95d1e03b67ae860513f84097fb81aeb320bfb06e | |
| parent | e3c258b6906a0d078c8b9f8a870fdd1191fe596d (diff) | |
Don't hardcode request status list in admin page, so custom states are included. Fixes #495
| -rw-r--r-- | app/views/admin_request/edit.rhtml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/app/views/admin_request/edit.rhtml b/app/views/admin_request/edit.rhtml index b659c676d..ffaa1299c 100644 --- a/app/views/admin_request/edit.rhtml +++ b/app/views/admin_request/edit.rhtml @@ -22,20 +22,7 @@ </p> <p><label for="info_request_described_state"><strong>Described state</strong></label> - <%= select( 'info_request', "described_state", - [ - 'waiting_response', - 'waiting_clarification', - 'gone_postal', - 'not_held', - 'rejected', - 'successful', - 'partially_successful', - 'internal_review', - 'error_message', - 'requires_admin', - 'user_withdrawn' - ]) %>; + <%= select( 'info_request', "described_state", InfoRequest.enumerate_states ) %>; <label for="info_request_awaiting_description"><strong>Awaiting description</strong></label> <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %> <br/>(don't forget to change 'awaiting description' when you set described state)<br/> |
