You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.8 KiB
54 lines
1.8 KiB
@extends('layouts.project')
|
|
|
|
@section('subtitle', __('comment.list'))
|
|
|
|
@section('content-project')
|
|
<div class="row">
|
|
<div class="col-md-8 col-md-offset-1">
|
|
{{ $comments->links() }}
|
|
@include('projects.partials.comment-section')
|
|
{{ $comments->links() }}
|
|
</div>
|
|
</div>
|
|
|
|
@if (Request::get('action') == 'comment-edit' && $editableComment)
|
|
<div id="commentModal" class="modal" role="dialog">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
{{ link_to_route('projects.comments.index', '×', [$project] + request(['page']), ['class' => 'close']) }}
|
|
<h4 class="modal-title">{{ __('comment.edit') }}</h4>
|
|
</div>
|
|
{!! Form::model($editableComment, ['route' => ['projects.comments.update', $project, $editableComment->id], 'method' => 'patch']) !!}
|
|
<div class="modal-body">
|
|
{!! FormField::textarea('body', ['label' => __('comment.body')]) !!}
|
|
{{ Form::hidden('page', request('page')) }}
|
|
</div>
|
|
<div class="modal-footer">
|
|
{!! Form::submit(__('comment.update'), ['class' => 'btn btn-success']) !!}
|
|
{{ link_to_route('projects.comments.index', __('app.cancel'), [$project] + request(['page']), ['class' => 'btn btn-default']) }}
|
|
</div>
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endsection
|
|
|
|
@section('ext_css')
|
|
<style>
|
|
ul.pagination { margin-top: 0px }
|
|
</style>
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
(function () {
|
|
$('#commentModal').modal({
|
|
show: true,
|
|
backdrop: 'static',
|
|
});
|
|
})();
|
|
</script>
|
|
@endsection
|