Apply Mentions everywhere (#595)
* variables and mentions * fix lint * add missing changes * fix tests * update quilly, fix bugs * fix lint * apply fixes * apply fixes * Fix MentionParser * Apply Mentions everywhere * Fix MentionParserTest * Small refactoring * Fixing quill import issues * Polished email integration, added customer sender mail * Add missing changes * improve migration command --------- Co-authored-by: Frank <csskfaves@gmail.com> Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
@component('mail::message', ['noBranding' => $noBranding])
|
||||
|
||||
{!! $integrationData->notification_body !!}
|
||||
|
||||
@if($form->editable_submissions)
|
||||
@component('mail::button', ['url' => $form->share_url.'?submission_id='.$submission_id])
|
||||
{{($form->editable_submissions_button_text ?? 'Edit submission')}}
|
||||
@endcomponent
|
||||
@endif
|
||||
|
||||
@if($integrationData->notifications_include_submission)
|
||||
As a reminder, here are your answers:
|
||||
|
||||
@foreach($fields as $field)
|
||||
@if(isset($field['value']))
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
**{{$field['name']}}**
|
||||
@if($field['type'] == 'files')
|
||||
<br />
|
||||
@foreach($field['email_data'] as $link)
|
||||
<a href="{{$link['signed_url']}}">{{$link['label']}}</a> <br />
|
||||
@endforeach
|
||||
@else
|
||||
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<p style="text-align:center"><small>You are receiving this email because you answered the form: <a href="{{front_url("forms/".$form->slug)}}">"{{$form->title}}"</a>.</small></p>
|
||||
|
||||
@endcomponent
|
||||
22
api/resources/views/mail/form/email-notification.blade.php
Normal file
22
api/resources/views/mail/form/email-notification.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@component('mail::message', ['noBranding' => $noBranding])
|
||||
|
||||
{!! $emailContent !!}
|
||||
|
||||
@if($form->editable_submissions)
|
||||
@component('mail::button', ['url' => $form->share_url.'?submission_id='.$submission_id])
|
||||
{{($form->editable_submissions_button_text ?? 'Edit submission')}}
|
||||
@endcomponent
|
||||
@endif
|
||||
|
||||
@if($integrationData->include_submission_data)
|
||||
@foreach($fields as $field)
|
||||
@if(isset($field['value']))
|
||||
<p style="white-space: pre-wrap; border-top: 1px solid #9ca3af;">
|
||||
<b>{{$field['name']}}</b>
|
||||
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
|
||||
</p>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@endcomponent
|
||||
@@ -1,28 +0,0 @@
|
||||
@component('mail::message')
|
||||
|
||||
Hello there 👋
|
||||
|
||||
Your form "{{$form->title}}" has a new submission.
|
||||
|
||||
@foreach($fields as $field)
|
||||
@if(isset($field['value']))
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
**{{$field['name']}}**
|
||||
@if($field['type'] == 'files')
|
||||
<br/>
|
||||
@foreach($field['email_data'] as $link)
|
||||
<a href="{{$link['signed_url']}}">{{$link['label']}}</a> <br/>
|
||||
@endforeach
|
||||
@else
|
||||
@if($field['type'] == 'matrix')
|
||||
{!! nl2br(e($field['value'])) !!}
|
||||
@else
|
||||
{!! is_array($field['value'])?implode(',',$field['value']):$field['value']!!}
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@endcomponent
|
||||
Reference in New Issue
Block a user