add the opt-in button for emails #244
This commit is contained in:
@@ -45,6 +45,8 @@ return [
|
|||||||
'rightsreserved' => 'All Rights Reserved',
|
'rightsreserved' => 'All Rights Reserved',
|
||||||
'active' => 'Active',
|
'active' => 'Active',
|
||||||
'inactive' => 'Inactive',
|
'inactive' => 'Inactive',
|
||||||
|
'yes' => 'Yes',
|
||||||
|
'no' => 'No',
|
||||||
'days' => [
|
'days' => [
|
||||||
'mon' => 'Monday',
|
'mon' => 'Monday',
|
||||||
'tues' => 'Tuesday',
|
'tues' => 'Tuesday',
|
||||||
|
|||||||
@@ -15,4 +15,6 @@ return [
|
|||||||
'editprofile' => 'Edit Profile',
|
'editprofile' => 'Edit Profile',
|
||||||
'edityourprofile' => 'Edit Your Profile',
|
'edityourprofile' => 'Edit Your Profile',
|
||||||
'transferhours' => 'Transferred Hours',
|
'transferhours' => 'Transferred Hours',
|
||||||
|
'opt-in' => 'Opt-In',
|
||||||
|
'opt-in-descrip' => 'Yes, include me on non-administrative emails',
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ return [
|
|||||||
'rightsreserved' => 'Todos los derechos reservados',
|
'rightsreserved' => 'Todos los derechos reservados',
|
||||||
'active' => 'Activo',
|
'active' => 'Activo',
|
||||||
'inactive' => 'Inactivo',
|
'inactive' => 'Inactivo',
|
||||||
|
'yes' => 'Sí',
|
||||||
|
'no' => 'No',
|
||||||
'days' => [
|
'days' => [
|
||||||
'mon' => 'lunes',
|
'mon' => 'lunes',
|
||||||
'tues' => 'martes',
|
'tues' => 'martes',
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ return [
|
|||||||
'updateprofile' => 'Actualizar perfil',
|
'updateprofile' => 'Actualizar perfil',
|
||||||
'editprofile' => 'Editar perfil',
|
'editprofile' => 'Editar perfil',
|
||||||
'edityourprofile' => 'Editar tu perfil',
|
'edityourprofile' => 'Editar tu perfil',
|
||||||
|
'opt-in' => 'Optar En',
|
||||||
|
'opt-in-descrip' => 'Sí, incluirme en correos electrónicos no administrativos',
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ return [
|
|||||||
'rightsreserved' => 'Tutti i Diritti Riservati',
|
'rightsreserved' => 'Tutti i Diritti Riservati',
|
||||||
'active' => 'Attivo',
|
'active' => 'Attivo',
|
||||||
'inactive' => 'Inattivo',
|
'inactive' => 'Inattivo',
|
||||||
|
'yes' => 'Sì',
|
||||||
|
'no' => 'No',
|
||||||
'days' => [
|
'days' => [
|
||||||
'mon' => 'Lunedì',
|
'mon' => 'Lunedì',
|
||||||
'tues' => 'Martedì',
|
'tues' => 'Martedì',
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ return [
|
|||||||
'editprofile' => 'Modifica Profilo',
|
'editprofile' => 'Modifica Profilo',
|
||||||
'edityourprofile' => 'Modifica Il Tuo Profilo',
|
'edityourprofile' => 'Modifica Il Tuo Profilo',
|
||||||
'transferhours' => 'Ore trasferite',
|
'transferhours' => 'Ore trasferite',
|
||||||
|
'opt-in' => 'Partecipa',
|
||||||
|
'opt-in-descrip' => 'Sì, includimi nelle e-mail non amministrative',
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -111,6 +111,10 @@
|
|||||||
<td>Last Login</td>
|
<td>Last Login</td>
|
||||||
<td>{{ show_datetime($user->updated_at) }}</td>
|
<td>{{ show_datetime($user->updated_at) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>@lang('profile.opt-in')</td>
|
||||||
|
<td>{{ $user->opt_in ? __('common.yes') : __('common.no') }}</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -93,18 +93,34 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<td>@lang('profile.avatar')</td>
|
<tr>
|
||||||
<td>
|
<td>@lang('profile.avatar')</td>
|
||||||
<div class="input-group form-group-no-border{{ $errors->has('avatar') ? ' has-danger' : '' }}">
|
<td>
|
||||||
{{ Form::file('avatar', null) }}
|
<div class="input-group form-group-no-border{{ $errors->has('avatar') ? ' has-danger' : '' }}">
|
||||||
</div>
|
{{ Form::file('avatar', null) }}
|
||||||
<p class="small">@lang('profile.avatarresize', ['width' => config('phpvms.avatar.width'), 'height' => config('phpvms.avatar.height')])</p>
|
</div>
|
||||||
@if ($errors->has('avatar'))
|
<p class="small">@lang('profile.avatarresize', [
|
||||||
<p class="text-danger">{{ $errors->first('avatar') }}</p>
|
'width' => config('phpvms.avatar.width'),
|
||||||
@endif
|
'height' => config('phpvms.avatar.height')])
|
||||||
</td>
|
</p>
|
||||||
|
@if ($errors->has('avatar'))
|
||||||
|
<p class="text-danger">{{ $errors->first('avatar') }}</p>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>@lang('profile.opt-in')</td>
|
||||||
|
<td>
|
||||||
|
<div class="input-group form-group-no-border">
|
||||||
|
{{ Form::hidden('opt_in', 0, false) }}
|
||||||
|
{{ Form::checkbox('opt_in', 1, null) }}
|
||||||
|
</div>
|
||||||
|
<p class="small">@lang('profile.opt-in-descrip')
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
<div style="width: 100%; text-align: right; padding-top: 20px;">
|
||||||
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
{{ Form::submit(__('profile.updateprofile'), ['class' => 'btn btn-primary']) }}
|
||||||
|
|||||||
@@ -85,6 +85,10 @@
|
|||||||
<td>@lang('common.timezone')</td>
|
<td>@lang('common.timezone')</td>
|
||||||
<td>{{ $user->timezone }}</td>
|
<td>{{ $user->timezone }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>@lang('profile.opt-in')</td>
|
||||||
|
<td>{{ $user->opt_in ? __('common.yes') : __('common.no') }}</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user