Handle subscribers
This commit is contained in:
@@ -99,6 +99,11 @@
|
||||
<input type="text" name="incident[created_at]" class="form-control" rel="datepicker-any">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
|
||||
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -42,6 +42,11 @@
|
||||
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
|
||||
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
|
||||
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
|
||||
<span class="help-block">{{ trans('forms.optional') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
@extends('layout.emails')
|
||||
|
||||
@section('preheader')
|
||||
{!! trans('cachet.subscriber.email.maintenance.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
{!! trans('cachet.subscriber.email.maintenance.html', ['app_name' => Setting::get('app_name')]) !!}
|
||||
|
||||
<p>
|
||||
{!! $status !!}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{!! $htmlContent !!}
|
||||
</p>
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
|
||||
@endif
|
||||
<p>
|
||||
<small><a href="{{ route('unsubscribe', $token) }}">{!! trans('cachet.subscriber.email.unsuscribe') !!}</a></small>
|
||||
</p>
|
||||
@stop
|
||||
@@ -0,0 +1,11 @@
|
||||
{!! trans('cachet.subscriber.email.maintenance.text', ['app_name' => Setting::get('app_name')]) !!}
|
||||
|
||||
{!! $status !!}
|
||||
|
||||
{!! $textContent !!}
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
|
||||
@endif
|
||||
|
||||
{!! trans('cachet.subscriber.email.unsuscribe') !!} {{ route('unsubscribe', $token) }}
|
||||
@@ -0,0 +1,24 @@
|
||||
@extends('layout.emails')
|
||||
|
||||
@section('preheader')
|
||||
{!! trans('cachet.subscriber.email.incident.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
{!! trans('cachet.subscriber.email.incident.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
|
||||
|
||||
<p>
|
||||
{!! $status !!}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{!! $htmlContent !!}
|
||||
</p>
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
|
||||
@endif
|
||||
<p>
|
||||
<small><a href="{{ route('unsubscribe', $token) }}">{!! trans('cachet.subscriber.email.unsuscribe') !!}</a></small>
|
||||
</p>
|
||||
@stop
|
||||
@@ -0,0 +1,11 @@
|
||||
{!! trans('cachet.subscriber.email.incident.text', ['app_name' => Setting::get('app_name')]) !!}
|
||||
|
||||
{!! $status !!}
|
||||
|
||||
{!! $textContent !!}
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
|
||||
@endif
|
||||
|
||||
{!! trans('cachet.subscriber.email.unsuscribe') !!} {{ route('unsubscribe', $token) }}
|
||||
@@ -0,0 +1,13 @@
|
||||
@extends('layout.emails')
|
||||
|
||||
@section('preheader')
|
||||
{!! trans('cachet.subscriber.email.verify.html-preheader') !!}
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
{!! trans('cachet.subscriber.email.verify.html', ['app_name' => Setting::get('app_name'), 'link' => $link]) !!}
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
|
||||
@endif
|
||||
@stop
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ trans('cachet.subscriber.email.verify.text', ['app_name' => Setting::get('app_name'), 'link' => $link]) }}
|
||||
|
||||
@if(Setting::get('show_support'))
|
||||
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
|
||||
@endif
|
||||
@@ -1,6 +1,14 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('content')
|
||||
<div class="pull-right">
|
||||
<p><a class="btn btn-success btn-outline" href="{{ route('subscribe') }}">{{ trans('cachet.subscriber.button') }}</a></p>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@include('partials.dashboard.errors')
|
||||
|
||||
@if($bannerImage = Setting::get('app_banner'))
|
||||
<div class="row app-banner">
|
||||
<div class="col-md-12 text-center">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
|
||||
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
|
||||
<title>CachetHQ</title> <!-- the <title> tag shows on email notifications on Android 4.4. -->
|
||||
<title>{{ Setting::get('app_name') }} Status</title> <!-- the <title> tag shows on email notifications on Android 4.4. -->
|
||||
<style type="text/css">
|
||||
|
||||
/* ensure that clients don't add any padding or spaces around the email design and allow us to style emails for the entire width of the preview pane */
|
||||
@@ -107,7 +107,7 @@
|
||||
<td>
|
||||
<!-- Hidden Preheader Text : BEGIN -->
|
||||
<div style="display:none; visibility:hidden; opacity:0; color:transparent; height:0; width:0;line-height:0; overflow:hidden;mso-hide: all;">
|
||||
Visually hidden preheader text.
|
||||
@yield('preheader')
|
||||
</div>
|
||||
<!-- Hidden Preheader Text : END -->
|
||||
|
||||
@@ -125,11 +125,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" width="100%" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
|
||||
@if($bannerImage = Setting::get('app_banner'))
|
||||
<tr>
|
||||
<td bgcolor="#F0F3F4" style="padding: 40px; font-family: sans-serif; font-size: 20px; line-height: 27px; color: #666666; text-align: center;">
|
||||
<img src="{{ $message->embed('img/cachet-logo.svg') }}" width="300" alt="CachetHQ">
|
||||
</td>
|
||||
<td bgcolor="#F0F3F4" style="padding: 40px; font-family: sans-serif; font-size: 20px; line-height: 27px; color: #666666; text-align: center;">
|
||||
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<td>
|
||||
<!-- 2 x 2 grid : BEGIN -->
|
||||
@@ -148,16 +150,6 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Footer : BEGIN -->
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 40px 0;font-family: sans-serif; font-size: 12px; line-height: 18px;color: #888888;">
|
||||
If you no longer wish to receive these emails, you can <unsubscribe style="color: #444444; padding: 0;text-decoration: underline">unsubscribe</unsubscribe>.<br>
|
||||
Company Name • 123 Fake Street, SpringField, Oregon 97477 US • <span class="mobile_link">(123) 456-7890</span><br><br>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer : END -->
|
||||
|
||||
</table>
|
||||
<!-- Email wrapper : END -->
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('content')
|
||||
@if($bannerImage = Setting::get('app_banner'))
|
||||
<div class="row app-banner">
|
||||
<div class="col-md-12 text-center">
|
||||
<?php $bannerType = Setting::get('app_banner_type') ?>
|
||||
@if($appUrl = Setting::get('app_domain'))
|
||||
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
|
||||
@else
|
||||
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($aboutApp)
|
||||
<div class="about-app">
|
||||
<h1>{{ trans('cachet.about_this_site') }}</h1>
|
||||
<p>{!! $aboutApp !!}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('partials.dashboard.errors')
|
||||
|
||||
<h1>{{ trans('cachet.subscriber.subscribe') }}</h1>
|
||||
<form action="{{ route('subscribe') }}" method="post">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="form-group">
|
||||
<label for="email">{{ trans('cachet.subscriber.email.subscribe') }}</label>
|
||||
<input class="form-control" type="text" name="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="btn btn-success btn-outline" type="submit" value="{{ trans('cachet.subscriber.button') }}">
|
||||
</div>
|
||||
</form>
|
||||
@stop
|
||||
Reference in New Issue
Block a user