Commit 1b8ae012464bd1d4307c583ea6b93cf2e2998714
1 parent
0d3ca253
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
adding feedback app
Showing
1 changed file
with
56 additions
and
0 deletions
Show diff stats
app/views/layouts/application-ng.html.erb
| @@ -84,5 +84,61 @@ | @@ -84,5 +84,61 @@ | ||
| 84 | </script> | 84 | </script> |
| 85 | <!-- End Piwik Code --> | 85 | <!-- End Piwik Code --> |
| 86 | 86 | ||
| 87 | + <!-- Feedback --> | ||
| 88 | + <link href='//feedback.participa.br/assets/feedback.css' media='all' rel='stylesheet'> | ||
| 89 | + <script src='//feedback.participa.br/assets/feedback_client.js'></script> | ||
| 90 | + | ||
| 91 | + <script type=text/javascript> | ||
| 92 | + $(document).ready(function() { | ||
| 93 | + Feedback( | ||
| 94 | + { | ||
| 95 | + label: "Dê um Feedback!", | ||
| 96 | + header: "Registro de ocorrência", | ||
| 97 | + url: "//feedback.participa.br/api/v1/feedbacks?access_token=pINDdceSPik_4vRCleHTQg", | ||
| 98 | + nextLabel: "Continuar", | ||
| 99 | + reviewLabel: "Revisar", | ||
| 100 | + sendLabel: "Enviar", | ||
| 101 | + closeLabel: "Fechar", | ||
| 102 | + highlightBlackoutHelp: "Você pode destacar informações úteis ou ocultar informações sensíveis.", | ||
| 103 | + blackoutButtonLabel: "Ocultar", | ||
| 104 | + highlightButtonLabel: "Destacar", | ||
| 105 | + messageSuccess: "O seu feedback foi enviado com sucesso!", | ||
| 106 | + messageError: "Houve um erro ao enviar o feedback...", | ||
| 107 | + pages: [ | ||
| 108 | + new window.Feedback.Form([ | ||
| 109 | + { | ||
| 110 | + type: "select", | ||
| 111 | + name: "tipo_relato", | ||
| 112 | + label: "Tipo de Relato", | ||
| 113 | + options: ["Sugestão", "Erro", "Elogio"], | ||
| 114 | + required: true | ||
| 115 | + }, | ||
| 116 | + { | ||
| 117 | + type: "starrating", | ||
| 118 | + name: "starrating", | ||
| 119 | + label: "Avalie", | ||
| 120 | + options: ["1", "2", "3", "4", "5"] | ||
| 121 | + }, | ||
| 122 | + { | ||
| 123 | + type: "textarea", | ||
| 124 | + name: "observacao", | ||
| 125 | + label: "Observação" | ||
| 126 | + }, | ||
| 127 | + { | ||
| 128 | + type: "hidden", | ||
| 129 | + name: "situacao", | ||
| 130 | + value: "aberto", | ||
| 131 | + review: false | ||
| 132 | + } | ||
| 133 | + ] | ||
| 134 | + ), | ||
| 135 | + new window.Feedback.Screenshot(), | ||
| 136 | + new window.Feedback.Review() | ||
| 137 | + ] | ||
| 138 | + }); | ||
| 139 | + }); | ||
| 140 | + | ||
| 141 | + </script> | ||
| 142 | + <!-- End Feedback Code --> | ||
| 87 | </body> | 143 | </body> |
| 88 | </html> | 144 | </html> |