Move dashboard partials into the dashboard directory

This commit is contained in:
James Brooks
2015-08-13 22:34:26 +01:00
parent bee4055228
commit 3b487ea2ec
35 changed files with 40 additions and 40 deletions
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="CreateComponentForm" class="form-vertical" role="form" action="/dashboard/components/add" method="POST"> <form name="CreateComponentForm" class="form-vertical" role="form" action="/dashboard/components/add" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="EditComponentForm" class="form-vertical" role="form" action="/dashboard/components/{{ $component->id }}/edit" method="POST"> <form name="EditComponentForm" class="form-vertical" role="form" action="/dashboard/components/{{ $component->id }}/edit" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="CreateComponentGroupForm" class="form-vertical" role="form" action="/dashboard/components/groups/add" method="POST"> <form name="CreateComponentGroupForm" class="form-vertical" role="form" action="/dashboard/components/groups/add" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="EditComponentGroupForm" class="form-vertical" role="form" method="POST"> <form name="EditComponentGroupForm" class="form-vertical" role="form" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header"> <div class="header sub-header">
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header"> <div class="header sub-header">
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off"> <form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off"> <form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header"> <div class="header sub-header">
@@ -17,7 +17,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<p class="lead">{!! trans_choice('dashboard.incidents.logged', $incidents->count(), ['count' => $incidents->count()]) !!}</p> <p class="lead">{!! trans_choice('dashboard.incidents.logged', $incidents->count(), ['count' => $incidents->count()]) !!}</p>
<div class="striped-list"> <div class="striped-list">
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off"> <form class="form-vertical" name="IncidentForm" role="form" method="POST" autocomplete="off">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
+1 -1
View File
@@ -45,7 +45,7 @@
</div> </div>
</div> </div>
@if(Session::get('setup.done')) @if(Session::get('setup.done'))
@include('partials.dashboard.welcome-modal') @include('dashboard.partials.welcome-modal')
<script> <script>
$(function() { $(function() {
$('#welcome-modal').modal('show'); $('#welcome-modal').modal('show');
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class='form-vertical' name='MetricsForm' role='form' method='POST'> <form class='form-vertical' name='MetricsForm' role='form' method='POST'>
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class='form-vertical' name='MetricsForm' role='form' method='POST'> <form class='form-vertical' name='MetricsForm' role='form' method='POST'>
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -16,7 +16,7 @@
<div class="content-wrapper header-fixed"> <div class="content-wrapper header-fixed">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<div class="striped-list"> <div class="striped-list">
@foreach($metrics as $metric) @foreach($metrics as $metric)
<div class="row striped-list-item"> <div class="row striped-list-item">
@@ -1,15 +1,15 @@
@if ($errors->any()) @if ($errors->any())
@include('partials.dashboard._error', ['level' => 'danger', 'title' => Session::get('title'), 'message' => $errors->all(':message')]) @include('dashboard.partials._error', ['level' => 'danger', 'title' => Session::get('title'), 'message' => $errors->all(':message')])
@endif @endif
@if ($message = Session::get('success')) @if ($message = Session::get('success'))
@include('partials.dashboard._error', ['level' => 'success', 'title' => Session::get('title'), 'message' => $message]) @include('dashboard.partials._error', ['level' => 'success', 'title' => Session::get('title'), 'message' => $message])
@endif @endif
@if ($message = Session::get('warning')) @if ($message = Session::get('warning'))
@include('partials.dashboard._error', ['level' => 'warning', 'title' => Session::get('title'), 'message' => $message]) @include('dashboard.partials._error', ['level' => 'warning', 'title' => Session::get('title'), 'message' => $message])
@endif @endif
@if ($message = Session::get('info')) @if ($message = Session::get('info'))
@include('partials.dashboard._error', ['level' => 'info', 'title' => Session::get('title'), 'message' => $message]) @include('dashboard.partials._error', ['level' => 'info', 'title' => Session::get('title'), 'message' => $message])
@endif @endif
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class='form-vertical' name='ScheduleForm' role='form' method='POST' autocomplete="off"> <form class='form-vertical' name='ScheduleForm' role='form' method='POST' autocomplete="off">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="incident[visible]" value="1"> <input type="hidden" name="incident[visible]" value="1">
@@ -13,7 +13,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form class='form-vertical' name='ScheduleForm' role='form' method='POST' autocomplete="off"> <form class='form-vertical' name='ScheduleForm' role='form' method='POST' autocomplete="off">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="incident[visible]" value="1"> <input type="hidden" name="incident[visible]" value="1">
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header"> <div class="header sub-header">
@@ -17,7 +17,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<div class="striped-list"> <div class="striped-list">
@foreach($schedule as $incident) @foreach($schedule as $incident)
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header" id="application-setup"> <div class="header sub-header" id="application-setup">
@@ -15,7 +15,7 @@
<div class="col-sm-12"> <div class="col-sm-12">
<form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data"> <form id="settings-form" name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<fieldset> <fieldset>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header" id="security"> <div class="header sub-header" id="security">
@@ -15,7 +15,7 @@
<div class="col-sm-12"> <div class="col-sm-12">
<form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST"> <form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<fieldset> <fieldset>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header" id="stylesheet"> <div class="header sub-header" id="stylesheet">
@@ -15,7 +15,7 @@
<div class="col-sm-12"> <div class="col-sm-12">
<form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST"> <form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<fieldset> <fieldset>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
@@ -3,7 +3,7 @@
@section('content') @section('content')
<div class="content-panel"> <div class="content-panel">
@if(isset($sub_menu)) @if(isset($sub_menu))
@include('partials.dashboard.sub-sidebar') @include('dashboard.partials.sub-sidebar')
@endif @endif
<div class="content-wrapper"> <div class="content-wrapper">
<div class="header sub-header" id="theme"> <div class="header sub-header" id="theme">
@@ -15,7 +15,7 @@
<div class="col-sm-12"> <div class="col-sm-12">
<form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST"> <form name="SettingsForm" class="form-vertical" role="form" action="/dashboard/settings" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<fieldset> <fieldset>
<div class="row"> <div class="row">
<div class="col-xs-6"> <div class="col-xs-6">
@@ -12,7 +12,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="SubscriberForm" class="form-vertical" role="form" action="/dashboard/subscribers/add" method="POST"> <form name="SubscriberForm" class="form-vertical" role="form" action="/dashboard/subscribers/add" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
+1 -1
View File
@@ -12,7 +12,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="UserForm" class="form-vertical" role="form" action="/dashboard/team/add" method="POST"> <form name="UserForm" class="form-vertical" role="form" action="/dashboard/team/add" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -12,7 +12,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="UserForm" class="form-vertical" role="form" action="/dashboard/team/{{ $user->id }}" method="POST"> <form name="UserForm" class="form-vertical" role="form" action="/dashboard/team/{{ $user->id }}" method="POST">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset> <fieldset>
@@ -12,7 +12,7 @@
<div class="content-wrapper"> <div class="content-wrapper">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<form name="UserForm" class="form-vertical" role="form" action="/dashboard/user" method="POST"> <form name="UserForm" class="form-vertical" role="form" action="/dashboard/user" method="POST">
<fieldset> <fieldset>
<div class="form-group"> <div class="form-group">
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="section-messages"> <div class="section-messages">
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
</div> </div>
@if($bannerImage = Setting::get('app_banner')) @if($bannerImage = Setting::get('app_banner'))
+1 -1
View File
@@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@include('partials.dashboard.head') @include('dashboard.partials.head')
<body class="dashboard @yield('bodyClass')"> <body class="dashboard @yield('bodyClass')">
<div class="content"> <div class="content">
+2 -2
View File
@@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@include('partials.dashboard.head') @include('dashboard.partials.head')
<body class="dashboard"> <body class="dashboard">
<div class="wrapper"> <div class="wrapper">
@include('partials.dashboard.sidebar') @include('dashboard.partials.sidebar')
<div class="page-content"> <div class="page-content">
@yield('content') @yield('content')
</div> </div>
+1 -1
View File
@@ -27,7 +27,7 @@
</div> </div>
@endif @endif
@include('partials.dashboard.errors') @include('dashboard.partials.errors')
<h1>{{ trans('cachet.subscriber.subscribe') }}</h1> <h1>{{ trans('cachet.subscriber.subscribe') }}</h1>
<form action="{{ route('subscribe', [], false) }}" method="post"> <form action="{{ route('subscribe', [], false) }}" method="post">