Added possibility to give feedbacks via ajax form. Closes #2
* Feedback message will send to error_recipients, configured in app_config.yml
This commit is contained in:
parent
b84ec884bd
commit
c7e37fc7b2
12 changed files with 66 additions and 7 deletions
8
app/views/feedback/_new.html.haml
Normal file
8
app/views/feedback/_new.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%h2 Fehler gefunden? Vorschlag? Idee? Kritik?
|
||||
|
||||
- form_remote_tag :url => {:action => "create"}, :before => "Element.show('loader')", :success => "Element.hide('loader')" do
|
||||
%p
|
||||
= text_area_tag :message, nil, :size => "40x15"
|
||||
= submit_tag "Absenden"
|
||||
oder
|
||||
= link_to_function "Abbrechen", "Element.hide('ajax_box')"
|
||||
4
app/views/feedback/_success.html.haml
Normal file
4
app/views/feedback/_success.html.haml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
%h2 Nachricht wurde verschickt!
|
||||
|
||||
%p Vielen Dank, Deine Nachricht wurde soeben dem Foodcooft Team zugestellt.
|
||||
%p= link_to_function "Schließen", "Element.hide('ajax_box')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue