cms-inquiries 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/app/controllers/admin/inquiries_controller.rb +41 -0
  2. data/app/controllers/admin/inquiry_settings_controller.rb +48 -0
  3. data/app/controllers/inquiries_controller.rb +43 -0
  4. data/app/helpers/inquiries_helper.rb +2 -0
  5. data/app/mailers/inquiry_mailer.rb +21 -0
  6. data/app/models/inquiry.rb +23 -0
  7. data/app/models/inquiry_setting.rb +47 -0
  8. data/app/views/admin/inquiries/_inquiry.html.erb +24 -0
  9. data/app/views/admin/inquiries/_submenu.html.erb +27 -0
  10. data/app/views/admin/inquiries/index.html.erb +30 -0
  11. data/app/views/admin/inquiries/show.html.erb +72 -0
  12. data/app/views/admin/inquiry_settings/_confirmation_email_form.html.erb +59 -0
  13. data/app/views/admin/inquiry_settings/_notification_recipients_form.html.erb +25 -0
  14. data/app/views/admin/inquiry_settings/edit.html.erb +5 -0
  15. data/app/views/inquiries/new.html.erb +34 -0
  16. data/app/views/inquiries/thank_you.html.erb +1 -0
  17. data/app/views/inquiry_mailer/confirmation.html.erb +1 -0
  18. data/app/views/inquiry_mailer/notification.html.erb +18 -0
  19. data/cms-inquiries.gemspec +98 -0
  20. data/config/locales/bg.yml +75 -0
  21. data/config/locales/cs.yml +75 -0
  22. data/config/locales/da.yml +68 -0
  23. data/config/locales/de.yml +76 -0
  24. data/config/locales/en-GB.yml +75 -0
  25. data/config/locales/en.yml +75 -0
  26. data/config/locales/es.yml +79 -0
  27. data/config/locales/fr.yml +76 -0
  28. data/config/locales/it.yml +77 -0
  29. data/config/locales/lolcat.yml +76 -0
  30. data/config/locales/lt.yml +76 -0
  31. data/config/locales/lv.yml +76 -0
  32. data/config/locales/nb.yml +75 -0
  33. data/config/locales/nl.yml +75 -0
  34. data/config/locales/pl.yml +76 -0
  35. data/config/locales/pt-BR.yml +76 -0
  36. data/config/locales/ru.yml +75 -0
  37. data/config/locales/sk.yml +75 -0
  38. data/config/locales/sl.yml +75 -0
  39. data/config/locales/sv.yml +75 -0
  40. data/config/locales/zh-CN.yml +75 -0
  41. data/config/routes.rb +23 -0
  42. data/db/migrate/20101208082840_create_inquiries.rb +31 -0
  43. data/db/migrate/20101208082841_remove_position_and_open_from_inquiries.rb +11 -0
  44. data/db/migrate/20110719082646_drop_inquiry_settings_table.rb +11 -0
  45. data/db/seeds/pages_for_inquiries.rb +55 -0
  46. data/features/create_inquiries.feature +38 -0
  47. data/features/manage_inquiries.feature +57 -0
  48. data/features/step_definitions/inquiry_steps.rb +25 -0
  49. data/features/support/factories.rb +7 -0
  50. data/features/support/paths.rb +26 -0
  51. data/lib/gemspec.rb +29 -0
  52. data/lib/generators/refinerycms_inquiries_generator.rb +6 -0
  53. data/lib/inquiries.rb +2 -0
  54. data/lib/refinerycms-inquiries.rb +24 -0
  55. data/license.md +21 -0
  56. data/readme.md +49 -0
  57. data/spec/models/inquiry_spec.rb +59 -0
  58. metadata +135 -0
@@ -0,0 +1,75 @@
1
+ en-GB:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: Enquiries
5
+ description: Provides a contact form and stores enquiries
6
+ inquiries:
7
+ new:
8
+ send: Send message
9
+ privacy_policy: We value your privacy
10
+ admin:
11
+ inquiries:
12
+ delete: Remove this enquiry forever
13
+ inquiry:
14
+ read_inquiry: Read the enquiry
15
+ said: said
16
+ mark_as_spam: Mark as spam
17
+ mark_as_ham: Move to inbox
18
+ submenu:
19
+ inbox: Inbox
20
+ spam: Spam
21
+ update_notified: Update who gets notified
22
+ edit_confirmation_email: Edit confirmation email
23
+ index:
24
+ no_inquiries: You have not received any enquiries yet.
25
+ no_spam: Hooray! You don't have any spam.
26
+ show:
27
+ details: Details
28
+ age: Age
29
+ actions: Actions
30
+ back_to_all_inquiries: Back to all Enquiries
31
+ spam: Spam
32
+ spam_yes: 'yes'
33
+ inquiry: Enquiry
34
+ to: To
35
+ from: From
36
+ click_to_email: Click to email this address
37
+ phone: Phone
38
+ date: Date
39
+ message: Message
40
+ inquiry_settings:
41
+ notification_recipients_form:
42
+ inquiry_settings_value_name: Send notifications to
43
+ hint: When a new enquiry is submitted, Refinery will send an email notification to you.
44
+ example: "Enter your email address(es) like: jack@work.com, jill@office.com"
45
+ confirmation_email_form:
46
+ to: To
47
+ from: From
48
+ subject: Subject
49
+ click_to_edit_subject: Click here to edit the subject
50
+ explanation: Every time someone contacts you on your website, Refinery sends out an email to confirm the enquiry with the person who made it.
51
+ below_edit_email_sent: Below you can edit the email that is sent out.
52
+ the_customer_making_inquiry: The customer making the enquiry
53
+ message: Message
54
+ note: "Note: place the text %name% where you'd like the customer's name to appear in the email"
55
+ inquiry_mailer:
56
+ notification:
57
+ greeting: Hi there
58
+ you_recieved_new_inquiry: You just received a new enquiry on your website.
59
+ inquiry_starts: --- enquiry starts ---
60
+ inquiry_ends: --- enquiry ends ---
61
+ from: From
62
+ email: Email
63
+ phone: Phone
64
+ message: Message
65
+ closing_line: Kind Regards
66
+ ps: P.S. All your enquiries are stored in the "Enquiries" section of Refinery should you ever want to view it there later.
67
+ activerecord:
68
+ models:
69
+ inquiry: inquiry
70
+ attributes:
71
+ inquiry:
72
+ name: Name
73
+ email: Email
74
+ phone: Phone
75
+ message: Message
@@ -0,0 +1,75 @@
1
+ en:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: Inquiries
5
+ description: Provides a contact form and stores inquiries
6
+ inquiries:
7
+ new:
8
+ send: Send message
9
+ privacy_policy: We value your privacy
10
+ admin:
11
+ inquiries:
12
+ delete: Remove this inquiry forever
13
+ inquiry:
14
+ read_inquiry: Read the inquiry
15
+ said: said
16
+ mark_as_spam: Mark as spam
17
+ mark_as_ham: Move to inbox
18
+ submenu:
19
+ inbox: Inbox
20
+ spam: Spam
21
+ update_notified: Update who gets notified
22
+ edit_confirmation_email: Edit confirmation email
23
+ index:
24
+ no_inquiries: You have not received any inquiries yet.
25
+ no_spam: Hooray! You don't have any spam.
26
+ show:
27
+ details: Details
28
+ age: Age
29
+ actions: Actions
30
+ back_to_all_inquiries: Back to all Inquiries
31
+ spam: Spam
32
+ spam_yes: 'yes'
33
+ inquiry: Inquiry
34
+ to: To
35
+ from: From
36
+ click_to_email: Click to email this address
37
+ phone: Phone
38
+ date: Date
39
+ message: Message
40
+ inquiry_settings:
41
+ notification_recipients_form:
42
+ inquiry_settings_value_name: Send notifications to
43
+ hint: When a new inquiry is submitted, Refinery will send an email notification to you.
44
+ example: "Enter your email address(es) like: jack@work.com, jill@office.com"
45
+ confirmation_email_form:
46
+ to: To
47
+ from: From
48
+ subject: Subject
49
+ click_to_edit_subject: Click here to edit the subject
50
+ explanation: Every time someone contacts you on your website, Refinery sends out an email to confirm the inquiry with the person who made it.
51
+ below_edit_email_sent: Below you can edit the email that is sent out.
52
+ the_customer_making_inquiry: The customer making the inquiry
53
+ message: Message
54
+ note: "Note: place the text %name% where you'd like the customer's name to appear in the email"
55
+ inquiry_mailer:
56
+ notification:
57
+ greeting: Hi there
58
+ you_recieved_new_inquiry: You just received a new inquiry on your website.
59
+ inquiry_starts: --- inquiry starts ---
60
+ inquiry_ends: --- inquiry ends ---
61
+ from: From
62
+ email: Email
63
+ phone: Phone
64
+ message: Message
65
+ closing_line: Kind Regards
66
+ ps: P.S. All your inquiries are stored in the "Inquiries" section of Refinery should you ever want to view it there later.
67
+ activerecord:
68
+ models:
69
+ inquiry: inquiry
70
+ attributes:
71
+ inquiry:
72
+ name: Name
73
+ email: Email
74
+ phone: Phone
75
+ message: Message
@@ -0,0 +1,79 @@
1
+ es:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: Consultas
5
+ activerecord:
6
+ models:
7
+ inquiry: Consulta
8
+ attributes:
9
+ inquiry:
10
+ to: Para
11
+ from: De
12
+ phone: Telefono
13
+ date: Fecha
14
+ name: Nombre
15
+ message: Mensaje
16
+ inquiries:
17
+ new:
18
+ send: Enviar mensaje
19
+ privacy_policy: "Nosotros valoramos tu privacidad"
20
+ admin:
21
+ inquiries:
22
+ delete: Borrar esta consulta para siempre
23
+ inquiry:
24
+ read_inquiry: Leer esta consulta
25
+ said: dijo
26
+ mark_as_spam: Marcar como spam
27
+ mark_as_ham: Mover a la bandeja de entrada
28
+ submenu:
29
+ inbox: Bandeja de entrada
30
+ spam: Spam
31
+ update_notified: Actualizar a quien se notifica
32
+ edit_confirmation_email: Editar correo de confirmación
33
+ toggle_status:
34
+ closed: "La consulta '%{inquiry}' esta cerrada"
35
+ reopened: "La consulta '%{inquiry}' esta abierta"
36
+ index:
37
+ no_inquiries: No has recibido ninguna consulta aun.
38
+ no_spam: No tienes nada de spam.
39
+ show:
40
+ details: Detalles
41
+ click_to_email: Pulsa para responder
42
+ age: Edad
43
+ actions: Acciones
44
+ back_to_all_inquiries: Regresar a todas las consultas
45
+ inquiry: Consulta
46
+ spam: spam
47
+ spam_yes: 'sí'
48
+ to: Para
49
+ from: De
50
+ phone: Teléfono
51
+ date: Fecha
52
+ message: Mensaje
53
+ inquiry_settings:
54
+ notification_recipients_form:
55
+ inquiry_settings_value_name: Mandar notificaciones a
56
+ hint: "Cada vez que alguien envíe una consulta, Refinery enviara un correo electrónico notificándolo. Ingrese la dirección de correo de las persona que vaya a ser notificada, si quiere que varias personas sean notificadas ingrese las direcciones de correo separadas por comas."
57
+ example: "Introduzca una dirección de correo como: me@domain.com, friend@msn.com, workmate@work.com"
58
+ confirmation_email_form:
59
+ to: Para
60
+ from: De
61
+ subject: Asunto
62
+ click_to_edit_subject: Pulse aquí para modificar el asunto
63
+ explanation: "Cada vez que alguien se comunique con usted en su sitio web, Refinery enviara un correo electrónico para confirmar la consulta con la persona que la hizo."
64
+ below_edit_email_sent: "Abajo usted puede editar el correo que se enviará."
65
+ the_customer_making_inquiry: El cliente haciendo la consulta
66
+ message: Mensaje
67
+ note: "Nota: ingrese el texto %name% donde quiera que el nombre del cliente aparezca en el email"
68
+ inquiry_mailer:
69
+ notification:
70
+ greeting: Hola
71
+ you_recieved_new_inquiry: Has recibido una nueva consulta en tu web.
72
+ inquiry_starts: --- comienzo de la consulta ---
73
+ inquiry_ends: --- fin de la consulta ---
74
+ from: De
75
+ email: Correo
76
+ phone: Teléfono
77
+ message: Mensaje
78
+ closing_line: Saludos
79
+ ps: P.D. Todas tus consultas se almacenan en la sección "Consultas" de Refinery por si alguna vez quieres verlas más tarde allí.
@@ -0,0 +1,76 @@
1
+ fr:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: Requêtes
5
+ description: Fournit un formulaire de contact et gère les demandes de contacts.
6
+ inquiries:
7
+ new:
8
+ send: Envoyer un message
9
+ privacy_policy: Nous respectons votre vie privée
10
+ admin:
11
+ inquiries:
12
+ delete: Supprimer définitivement cette requête
13
+ inquiry:
14
+ read_inquiry: Lire la requête
15
+ said: a dit
16
+ mark_as_spam: Marquer comme spam
17
+ mark_as_ham: Déplacer dans la boîte de réception
18
+ submenu:
19
+ inbox: Boîte de réception
20
+ spam: Spam
21
+ update_notified: Choisir qui reçoit les notifications
22
+ edit_confirmation_email: Modifier l'e-mail de confirmation
23
+ index:
24
+ no_inquiries: Vous n'avez reçu aucune requête.
25
+ no_spam: Vous n'avez aucun spam.
26
+ show:
27
+ details: Détails
28
+ age: Age
29
+ actions: Actions
30
+ back_to_all_inquiries: Retourner à la liste des requêtes
31
+ spam: Spam
32
+ spam_yes: 'oui'
33
+ inquiry: Requête
34
+ to: À
35
+ from: De
36
+ click_to_email: Cliquer ici pour enyoyer un e-mail à cette adresse
37
+ phone: Téléphone
38
+ date: Date
39
+ message: Message
40
+ inquiry_settings:
41
+ notification_recipients_form:
42
+ inquiry_settings_value_name: Envoyer une notification à
43
+ explanation: Chaque fois qu'une demande de contact est rédigée sur votre site, Refinery envoie un e-mail pour le signaler.
44
+ hint: Quand une nouvelle requête est soumise, Refinery vous envoie un e-mail d'avertissement.
45
+ example: "Entrez votre/vos addresse(s) e-mail comme il suit: jack@work.com, jill@office.com"
46
+ confirmation_email_form:
47
+ to: À
48
+ from: De
49
+ subject: Sujet
50
+ click_to_edit_subject: Cliquez ici pour modifier le sujet
51
+ explanation: Chaque fois qu'une demande de contact est rédigée sur votre site, Refinery envoie un e-mail pour le signaler.
52
+ below_edit_email_sent: Ci-dessous vous pouvez modifier l'e-mail qui sera envoyé.
53
+ the_customer_making_inquiry: Le client à l'origine de la requête
54
+ message: Message
55
+ note: "Note: Utilisez %name% à l'endroit où vous souhaitez voir apparaître le nom du client dans l'e-mail"
56
+ inquiry_mailer:
57
+ notification:
58
+ greeting: Bonjour
59
+ you_recieved_new_inquiry: Vous avez reçu une nouvelle requête sur votre site.
60
+ inquiry_starts: --- Début des requêtes ---
61
+ inquiry_ends: --- Fin des requêtes ---
62
+ from: De
63
+ email: E-mail
64
+ phone: Téléphone
65
+ message: Message
66
+ closing_line: Cordialement
67
+ ps: P.S. Toutes les requêtes sont stockées dans la section 'Requêtes' afin que vous puissiez les consulter ultérieurement.
68
+ activerecord:
69
+ models:
70
+ inquiry: requête
71
+ attributes:
72
+ inquiry:
73
+ name: Nom
74
+ email: E-mail
75
+ phone: Téléphone
76
+ message: Message
@@ -0,0 +1,77 @@
1
+ it:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: Richieste
5
+ description: Fornisce un modulo di contatto e memorizza le richieste
6
+ inquiries:
7
+ new:
8
+ header_message: si è verificato un problema
9
+ message: "I seguenti problemi devono essere corretti:"
10
+ send: Invia messaggio
11
+ privacy_policy: "Noi diamo valore alla tua privacy"
12
+ admin:
13
+ inquiries:
14
+ delete: Rimuovi per sempre questa richiesta
15
+ inquiry:
16
+ read_inquiry: Leggi la richiesta
17
+ said: dice
18
+ mark_as_spam: Segnala come spam
19
+ mark_as_ham: Sposta nella inbox
20
+ submenu:
21
+ inbox: Inbox
22
+ spam: Spam
23
+ update_notified: Aggiorna i destinatari della notifica
24
+ edit_confirmation_email: Modifica la mail di conferma
25
+ index:
26
+ no_inquiries: Non hai ancora ricevuto alcuna richiesta.
27
+ no_spam: Evviva! Non hai alcuno spam
28
+ show:
29
+ details: Dettagli
30
+ age: Età
31
+ actions: Azioni
32
+ back_to_all_inquiries: Torna a tutte le richieste
33
+ spam: Spam
34
+ spam_yes: 'si'
35
+ inquiry: Domanda
36
+ to: A
37
+ from: Da
38
+ click_to_email: Fare click per inviare una email a questo indirizzo
39
+ phone: Telefono
40
+ date: Data
41
+ message: Messaggio
42
+ inquiry_settings:
43
+ notification_recipients_form:
44
+ inquiry_settings_value_name: Inviare notifiche a
45
+ hint: Quando una nuova richiesta viene inviata, Refinery ti invierà una email di notifica.
46
+ example: "Inserisci i tuoi indirizzi email come: jack@work.com, jill@office.com"
47
+ confirmation_email_form:
48
+ to: Da
49
+ from: A
50
+ subject: Oggetto
51
+ click_to_edit_subject: Fare clic qui per modificare l'oggetto
52
+ explanation: Ogni volta che qualcuno ti contatta attraverso il tuo sito web, Refinery invia una mail per confermare la richiesta alla persona che l'ha fatta
53
+ below_edit_email_sent: Qui di seguito è possibile modificare l'e-mail che viene inviata.
54
+ the_customer_making_inquiry: Chi invia il messaggio
55
+ message: Messaggio
56
+ note: "Nota: inserire nella email il testo %name% dove si vuole che compiaia il nome di chi invia la richiesta"
57
+ inquiry_mailer:
58
+ notification:
59
+ greeting: Ciao a tutti
60
+ you_recieved_new_inquiry: Hai appena ricevuto una nuova richiesta sul tuo sito.
61
+ inquiry_starts: --- inizio del messaggio ---
62
+ inquiry_ends: --- fine del messaggio ---
63
+ from: Da
64
+ email: Email
65
+ phone: Telefono
66
+ message: Messaggio
67
+ closing_line: Saluti
68
+ ps: P.S. Tutte le richiesta ricevute sono salvate nella sezione "Richieste" di Refinery così da poter esser viste in un secondo momento.
69
+ activerecord:
70
+ models:
71
+ inquiry: inquiry
72
+ attributes:
73
+ inquiry:
74
+ name: Nome
75
+ email: Email
76
+ phone: Telefono
77
+ message: Messaggio
@@ -0,0 +1,76 @@
1
+ lolcat:
2
+ plugins:
3
+ refinery_inquiries:
4
+ title: INQUIRIEZ
5
+ description: PROVIDEZ CONTACT FORM AN STOREZ INQUIRIEZ
6
+ inquiries:
7
+ new:
8
+ send: SEND MESAGE
9
+ privacy_policy: WE VALUE UR PRIVACY
10
+ admin:
11
+ inquiries:
12
+ delete: REMOOV DIS INQUIRY FOREVR
13
+ inquiry:
14
+ read_inquiry: READ TEH INQUIRY
15
+ said: SED
16
+ mark_as_spam: MARK AS SPAM
17
+ mark_as_ham: MOOV 2 INBOX
18
+ submenu:
19
+ inbox: INBOX
20
+ spam: SPAM
21
+ update_notified: UPDATE HOO GETS NOTIFID
22
+ edit_confirmation_email: EDIT CONFIRMASHUN EMAIL
23
+ index:
24
+ no_inquiries: U HAS NOT RECEIVD ANY INQUIRIEZ YET.
25
+ no_spam: HOORAH! U DOAN HAS ANY SPAM.
26
+ show:
27
+ details: DETAILS
28
+ age: AGE
29
+ actions: ACSHUNS
30
+ back_to_all_inquiries: BAK 2 ALL INQUIRIEZ
31
+ spam: SPAM
32
+ spam_yes: YEZ
33
+ inquiry: INQUIRY
34
+ to: 2
35
+ from: FRUM
36
+ click_to_email: CLICK 2 EMAIL DIS ADDRES
37
+ phone: FONE
38
+ date: DATE
39
+ message: MESAGE
40
+ inquiry_settings:
41
+ notification_recipients_form:
42
+ inquiry_settings_value_name: SEND NOTIFICASHUNS 2
43
+ explanation: EVRY TIEM SOMEONE CONTACTS U ON UR WEBSIET, REFINERY SENDZ OUT AN EMAIL 2 SAY THAR IZ NEW INQUIRY.
44
+ hint: WHEN NEW INQUIRY IZ SUBMITTD, REFINERY WILL SEND AN EMAIL NOTIFICASHUN 2 U.
45
+ example: "ENTR UR EMAIL ADDRES(EZ) LIEK: JACK@WERK.COM, JILL@OFFICE.COM"
46
+ confirmation_email_form:
47
+ to: 2
48
+ from: FRUM
49
+ subject: SUBJECT
50
+ click_to_edit_subject: CLICK HER 2 EDIT TEH SUBJECT
51
+ explanation: EVRY TIEM SOMEONE CONTACTS U ON UR WEBSIET, REFINERY SENDZ OUT AN EMAIL 2 CONFIRM TEH INQUIRY WIF TEH PERSON HOO MADE IT.
52
+ below_edit_email_sent: BELOW U CAN EDIT TEH EMAIL DAT IZ SENT OUT.
53
+ the_customer_making_inquiry: TEH CUSTOMR MAKIN TEH INQUIRY
54
+ message: MESAGE
55
+ note: "Note: PLACE TEH TEXT %NAYM% WER UD LIEK TEH CUSTOMERS NAYM 2 APPEAR IN DA EMAIL"
56
+ inquiry_mailer:
57
+ notification:
58
+ greeting: OH HAI THAR
59
+ you_recieved_new_inquiry: U JUS RECEIVD NEW INQUIRY ON UR WEBSIET.
60
+ inquiry_starts: --- INQUIRY STARTS ---
61
+ inquiry_ends: --- INQUIRY ENDZ ---
62
+ from: FRUM
63
+ email: EMAIL
64
+ phone: FONE
65
+ message: MESAGE
66
+ closing_line: KIND REGARDZ
67
+ ps: P.S. ALL UR INQUIRIEZ R STORD IN DA "INQUIRIEZ" SECSHUN OV REFINERY SHUD U EVR WANTS 2 VIEW IT LATR THAR.
68
+ activerecord:
69
+ models:
70
+ inquiry: INQUIRY
71
+ attributes:
72
+ inquiry:
73
+ name: NAYM
74
+ email: EMAIL
75
+ phone: FONE
76
+ message: MESAGE