Move errors partial out of dashboard dir to prevent DashboardComposer running

This commit is contained in:
James Brooks
2018-06-14 20:27:42 +01:00
parent aba944b6dd
commit deeb40cd48
41 changed files with 59 additions and 53 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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)

View File

@@ -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)

View File

@@ -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() }}">

View File

@@ -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>

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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)

View File

@@ -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>

View File

@@ -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">

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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">

View File

@@ -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

View File

@@ -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">

View File

@@ -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">

View File

@@ -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">

View File

@@ -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">

View File

@@ -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>

View File

@@ -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">

View File

@@ -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">

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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">

View File

@@ -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>

View File

@@ -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')

View 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

View File

@@ -1,3 +1,3 @@
<div class="section-messages">
@include('dashboard.partials.errors')
@include('partials.errors')
</div>

View File

@@ -21,7 +21,7 @@
</div>
@endif
@include('dashboard.partials.errors')
@include('partials.errors')
<div class="panel panel-meassage">
<div class="panel-heading">

View File

@@ -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">

View File

@@ -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">