Merge pull request #4116 from pengfeidong/fix_3974_add_message_for_invitation_dossier
Usager : ajout d'un message (optionnel) lors de l'invitation à co-construire un dossier
This commit is contained in:
commit
75741fca19
6 changed files with 24 additions and 3 deletions
|
@ -12,6 +12,7 @@ class InvitesController < ApplicationController
|
|||
dossier: dossier,
|
||||
user: User.find_by(email: email),
|
||||
email: email,
|
||||
message: params[:invite_message],
|
||||
email_sender: current_user.email
|
||||
)
|
||||
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
%strong= @invite.dossier.procedure.libelle
|
||||
sur demarches-simplifiees.fr.
|
||||
|
||||
- if @invite.message.present?
|
||||
%blockquote
|
||||
%p
|
||||
= @invite.message
|
||||
|
||||
%p
|
||||
Cette plateforme permet à ses utilisateurs d'établir des dossiers 100 % en ligne et de dialoguer avec plusieurs interlocuteurs privilégiés avant d'instruire un dépot.
|
||||
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
= @invite.email_sender
|
||||
souhaite que vous participiez à l'élaboration d'un dossier sur demarches-simplifiees.fr.
|
||||
|
||||
- if @invite.message.present?
|
||||
%blockquote
|
||||
%p
|
||||
= @invite.message
|
||||
|
||||
%p
|
||||
Pour le consulter, merci de suivre ce lien :
|
||||
- url_for_link = invite_url(@invite)
|
||||
|
|
|
@ -13,5 +13,10 @@
|
|||
%p Cette personne aura le droit de modifier votre dossier.
|
||||
|
||||
= form_tag dossier_invites_path(dossier), remote: true, method: :post, class: 'form' do
|
||||
.row
|
||||
.col
|
||||
= email_field_tag :invite_email, '', class: 'small', placeholder: 'adresse email', required: true
|
||||
.col
|
||||
= text_area_tag :invite_message, '', class: 'small', placeholder: 'message'
|
||||
.col
|
||||
= submit_tag 'Envoyer une invitation', class: 'button accepted'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style type="text/css"> #outlook a { padding: 0; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; } .ExternalClass * { line-height:100%; } body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } table, td { border-collapse:collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; } img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; } p { display: block; margin: 13px 0; }</style>
|
||||
<style type="text/css"> #outlook a { padding: 0; } .ReadMsgBody { width: 100%; } .ExternalClass { width: 100%; } .ExternalClass * { line-height:100%; } body { margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } table, td { border-collapse:collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; } img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; } p { display: block; margin: 13px 0; } blockquote { margin: 0; } blockquote p { padding: 15px; background: #eee; border-radius: 5px; } blockquote p::before { content: '\201C'; } blockquote p::after { content: '\201D'; }</style>
|
||||
<!--[if !mso]>
|
||||
<!-->
|
||||
<style type="text/css"> @media only screen and (max-width:480px) { @-ms-viewport { width:320px; } @viewport { width:320px; } }</style>
|
||||
|
|
5
db/migrate/20190717151228_add_message_to_invites.rb
Normal file
5
db/migrate/20190717151228_add_message_to_invites.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddMessageToInvites < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :invites, :message, :text
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue