add and delete news from admin dashboard #52

This commit is contained in:
Nabeel Shahzad
2018-01-08 16:22:26 -06:00
parent 5a12493739
commit 6b265ed67b
10 changed files with 149 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-7">
@include('admin.dashboard.announcements')
@include('admin.dashboard.news')
</div>
<div class="col-md-5">
@component('admin.components.infobox')
@@ -43,4 +43,17 @@
</div>
</div>
@endsection
@section('scripts')
<script>
$(document).ready(function() {
$(document).on('submit', 'form.pjax_news_form', function (event) {
event.preventDefault();
$.pjax.submit(event, '#pjax_news_wrapper', {push: false});
});
/*$(document).on('pjax:complete', function () {
$(".select2").select2();
});*/
});
</script>
@endsection