Move errors partial out of dashboard dir to prevent DashboardComposer running
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="CreateComponentForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.components.create', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="EditComponentForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.components.edit', [$component->id], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="CreateComponentGroupForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.components.groups.create', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="EditComponentGroupForm" class="form-vertical" role="form" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</a>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<div class="row">
|
||||
<div class="col-sm-12 striped-list" data-orderable-list="/dashboard/api/components/groups/order">
|
||||
@forelse($groups as $group)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</a>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<div class="row">
|
||||
<div class="col-sm-12 striped-list" data-orderable-list="/dashboard/api/components/order">
|
||||
@forelse($components as $component)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ trans('forms.incidents.notify_disabled') }}
|
||||
</div>
|
||||
@endif
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<report-incident inline-template>
|
||||
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ trans('forms.incidents.notify_disabled') }}
|
||||
</div>
|
||||
@endif
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<p class="lead">{!! trans_choice('dashboard.incidents.logged', $incidents->count(), ['count' => $incidents->count()]) !!}</p>
|
||||
|
||||
<div class="striped-list">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ trans('forms.incidents.notify_disabled') }}
|
||||
</div>
|
||||
@endif
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="IncidentUpdateForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{{ trans('forms.incidents.notify_disabled') }}
|
||||
</div>
|
||||
@endif
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="IncidentUpdateForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
|
||||
<div class="striped-list">
|
||||
@foreach($incident->updates as $update)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="ScheduleForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="ScheduleForm" role="form" method='POST' autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="visible" value="1">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<p class="lead">{!! trans_choice('dashboard.schedule.logged', $schedule->count(), ['count' => $schedule->count()]) !!}</p>
|
||||
|
||||
<div class="striped-list">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="MetricsForm" role="form" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="MetricsForm" role="form" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="content-wrapper header-fixed">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<div class="striped-list">
|
||||
@forelse($metrics as $metric)
|
||||
<div class="row striped-list-item">
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
@if ($errors->any())
|
||||
@include('dashboard.partials._error', ['level' => 'danger', 'title' => Session::get('title'), 'message' => $errors->all(':message')])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
@include('dashboard.partials._error', ['level' => 'success', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('warning'))
|
||||
@include('dashboard.partials._error', ['level' => 'warning', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('info'))
|
||||
@include('dashboard.partials._error', ['level' => 'info', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings.mail', [], 'post') }}" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.setup.mail_driver') }}</label>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<fieldset>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="col-sm-12">
|
||||
<form name="SettingsForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.settings', [], 'post') }}" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="SubscriberForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.subscribers.create', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="UserForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.team.create', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="UserForm" class="form-vertical" role="form" action="/dashboard/team/{{ $user->id }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<invite-team inline-template>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="UserForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.team.invite', [], 'post') }}" method="POST">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -33,7 +33,7 @@ window.addEventListener("DOMContentLoaded", function(e) {
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<fieldset>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<div class="striped-list">
|
||||
@forelse($incident_templates as $template)
|
||||
<div class="row striped-list-item">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
<form name="UserForm" class="form-vertical" role="form" action="{{ cachet_route('dashboard.user', [], 'post') }}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<fieldset>
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('content')
|
||||
@modules
|
||||
@include('partials.modules.messages')
|
||||
@include('partials.modules.status')
|
||||
@include('partials.modules.components')
|
||||
@include('partials.modules.metrics')
|
||||
@include('partials.modules.stickied')
|
||||
@include('partials.modules.scheduled')
|
||||
@include('partials.modules.timeline')
|
||||
@stop
|
||||
|
||||
@section('bottom-content')
|
||||
|
||||
15
resources/views/partials/errors.blade.php
Normal file
15
resources/views/partials/errors.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@if ($errors->any())
|
||||
@include('partials.error', ['level' => 'danger', 'title' => Session::get('title'), 'message' => $errors->all(':message')])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
@include('partials.error', ['level' => 'success', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('warning'))
|
||||
@include('partials.error', ['level' => 'warning', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
|
||||
@if ($message = Session::get('info'))
|
||||
@include('partials.error', ['level' => 'info', 'title' => Session::get('title'), 'message' => $message])
|
||||
@endif
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="section-messages">
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
|
||||
<div class="panel panel-meassage">
|
||||
<div class="panel-heading">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-offset-2 col-lg-8">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@include('dashboard.partials.errors')
|
||||
@include('partials.errors')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-offset-2 col-lg-8">
|
||||
|
||||
Reference in New Issue
Block a user