Browse Source

Fix syntax in views

pull/68/head
Nafies Luthfi 5 years ago
parent
commit
a1209fd036
  1. 4
      resources/views/bank-accounts/forms.blade.php
  2. 2
      resources/views/customers/edit.blade.php
  3. 2
      resources/views/customers/index.blade.php
  4. 2
      resources/views/invoices/partials/item-list.blade.php
  5. 2
      resources/views/jobs/show.blade.php
  6. 4
      resources/views/options/index.blade.php
  7. 2
      resources/views/projects/comments.blade.php
  8. 2
      resources/views/projects/files.blade.php
  9. 2
      resources/views/projects/issues/partials/comment-section.blade.php
  10. 4
      resources/views/projects/jobs/add-from-other-project.blade.php
  11. 10
      resources/views/projects/jobs/index.blade.php
  12. 2
      resources/views/reports/payments/daily.blade.php
  13. 6
      resources/views/subscriptions/index.blade.php

4
resources/views/bank-accounts/forms.blade.php

@ -18,7 +18,7 @@
@if (Request::get('action') == 'edit' && $editableBankAccount)
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{{ trans('bank_account.edit') }}</h3></div>
{!! Form::model($editableBankAccount, ['route' => ['bank-accounts.update', request('id')],'method' => 'patch']) !!}
{!! Form::model($editableBankAccount, ['route' => ['bank-accounts.update', request('id')], 'method' => 'patch']) !!}
<div class="panel-body">
{!! FormField::text('name', ['required' => true, 'label' => trans('bank_account.name')]) !!}
{!! FormField::text('number', ['required' => true, 'label' => trans('bank_account.number')]) !!}
@ -51,7 +51,7 @@
<div class="panel-body">{{ trans('app.delete_confirm') }}</div>
<div class="panel-footer">
{!! FormField::delete(
['route'=>['bank-accounts.destroy',request('id')]],
['route'=>['bank-accounts.destroy', request('id')]],
trans('app.delete_confirm_button'),
['class'=>'btn btn-danger'],
[

2
resources/views/customers/edit.blade.php

@ -13,7 +13,7 @@
@if (Request::has('action'))
@include('customers.forms')
@else
{!! Form::model($customer, ['route' => ['customers.update', $customer->id],'method' => 'patch']) !!}
{!! Form::model($customer, ['route' => ['customers.update', $customer->id], 'method' => 'patch']) !!}
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">

2
resources/views/customers/index.blade.php

@ -13,7 +13,7 @@
<div class="panel panel-default table-responsive">
<div class="panel-heading">
{{ Form::open(['method' => 'get','class' => 'form-inline']) }}
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }}
{!! FormField::text('q', ['value' => request('q'), 'label' => trans('customer.search'), 'class' => 'input-sm']) !!}
{{ Form::submit(trans('customer.search'), ['class' => 'btn btn-sm']) }}
{{ link_to_route('customers.index', trans('app.reset')) }}

2
resources/views/invoices/partials/item-list.blade.php

@ -44,7 +44,7 @@
{!! FormField::delete([
'route' => ['invoices.items.destroy', $invoice],
'class' => '',
], 'x', ['id' => 'remove-item-'.$key, 'class' => 'btn btn-danger btn-xs show-on-hover' ,'title' => __('invoice.item_remove')], ['item_index' => $key]) !!}
], 'x', ['id' => 'remove-item-'.$key, 'class' => 'btn btn-danger btn-xs show-on-hover', 'title' => __('invoice.item_remove')], ['item_index' => $key]) !!}
</td>
</tr>
@endforeach

2
resources/views/jobs/show.blade.php

@ -4,7 +4,7 @@
@section('action-buttons')
@can('create', new App\Entities\Projects\Job)
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$job->project_id], ['class' => 'btn btn-success','icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$job->project_id], ['class' => 'btn btn-success', 'icon' => 'plus']) !!}
@endcan
@can('update', $job)
{{ link_to_route('jobs.edit', __('job.edit'), [$job], ['class' => 'btn btn-warning']) }}

4
resources/views/options/index.blade.php

@ -12,9 +12,9 @@
<tr>
<td>
{{ str_split_ucwords($option->key) }}
{{ link_to_route('options.index', 'x', ['id' => $option->id,'action' => 'del'], ['class' => 'btn btn-danger btn-xs pull-right']) }}
{{ link_to_route('options.index', 'x', ['id' => $option->id, 'action' => 'del'], ['class' => 'btn btn-danger btn-xs pull-right']) }}
</td>
<td>{!! Form::textarea($option->key, $option->value, ['class' => 'form-control','rows' => 3]) !!}</td>
<td>{!! Form::textarea($option->key, $option->value, ['class' => 'form-control', 'rows' => 3]) !!}</td>
</tr>
@empty
<tr>

2
resources/views/projects/comments.blade.php

@ -20,7 +20,7 @@
{{ link_to_route('projects.comments.index', '&times;', [$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']) !!}
{!! 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')) }}

2
resources/views/projects/files.blade.php

@ -72,7 +72,7 @@
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{{ __('file.edit') }} : {{ $editableFile->title }}</h3></div>
<div class="panel-body">
{!! Form::model($editableFile, ['route' => ['files.update', $editableFile->id],'method' => 'patch']) !!}
{!! Form::model($editableFile, ['route' => ['files.update', $editableFile->id], 'method' => 'patch']) !!}
{!! FormField::text('title', ['label' => __('file.title'), 'required' => true]) !!}
{!! FormField::textarea('description', ['label' => __('file.description')]) !!}
{!! Form::submit(__('file.update'), ['class' => 'btn btn-success']) !!}

2
resources/views/projects/issues/partials/comment-section.blade.php

@ -38,7 +38,7 @@
{{ link_to_route('projects.issues.show', '&times;', [$issue->project, $issue], ['class' => 'close']) }}
<h4 class="modal-title">{{ __('comment.edit') }}</h4>
</div>
{!! Form::model($editableComment, ['route' => ['issues.comments.update', $issue, $editableComment],'method' => 'patch']) !!}
{!! Form::model($editableComment, ['route' => ['issues.comments.update', $issue, $editableComment], 'method' => 'patch']) !!}
<div class="modal-body">
{!! FormField::textarea('body', ['label' => __('comment.body')]) !!}
{{ Form::hidden('page', request('page')) }}

4
resources/views/projects/jobs/add-from-other-project.blade.php

@ -4,8 +4,8 @@
@section('action-buttons')
@can('create', new App\Entities\Projects\Job)
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$project->id], ['class' => 'btn btn-success','icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.add-from-other-project', __('job.add_from_other_project'), [$project->id], ['class' => 'btn btn-default','icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$project->id], ['class' => 'btn btn-success', 'icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.add-from-other-project', __('job.add_from_other_project'), [$project->id], ['class' => 'btn btn-default', 'icon' => 'plus']) !!}
@endcan
@endsection

10
resources/views/projects/jobs/index.blade.php

@ -4,8 +4,8 @@
@section('action-buttons')
@can('create', new App\Entities\Projects\Job)
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$project], ['class' => 'btn btn-success','icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.add-from-other-project', __('job.add_from_other_project'), [$project], ['class' => 'btn btn-default','icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.create', __('job.create'), [$project], ['class' => 'btn btn-success', 'icon' => 'plus']) !!}
{!! html_link_to_route('projects.jobs.add-from-other-project', __('job.add_from_other_project'), [$project], ['class' => 'btn btn-default', 'icon' => 'plus']) !!}
@endcan
@endsection
@ -28,8 +28,8 @@
@else
{{ link_to_route('projects.jobs.index', __('project.sort_jobs'), [$project, 'action' => 'sort_jobs', '#project-jobs'], ['class' => 'btn btn-default btn-xs pull-right', 'style' => 'margin-top: -2px; margin-left: 6px; margin-right: -8px']) }}
@can('see-pricings', $project)
{!! link_to_route('projects.jobs-export', __('project.jobs_list_export_html'), [$project, 'html', 'job_type' => $key], ['class' => '','target' => '_blank']) !!} |
{!! link_to_route('projects.job-progress-export', __('project.jobs_progress_export_html'), [$project, 'html', 'job_type' => $key], ['class' => '','target' => '_blank']) !!}
{!! link_to_route('projects.jobs-export', __('project.jobs_list_export_html'), [$project, 'html', 'job_type' => $key], ['class' => '', 'target' => '_blank']) !!} |
{!! link_to_route('projects.job-progress-export', __('project.jobs_progress_export_html'), [$project, 'html', 'job_type' => $key], ['class' => '', 'target' => '_blank']) !!}
@endcan
@endif
@endcan
@ -92,7 +92,7 @@
</td>
<td class="text-center">
@can('view', $job)
{!! html_link_to_route('jobs.show', '',[$job->id],['icon' => 'search', 'title' => __('job.show'), 'class' => 'btn btn-info btn-xs','id' => 'show-job-' . $job->id]) !!}
{!! html_link_to_route('jobs.show', '',[$job->id],['icon' => 'search', 'title' => __('job.show'), 'class' => 'btn btn-info btn-xs', 'id' => 'show-job-' . $job->id]) !!}
@endcan
@can('edit', $job)
{!! html_link_to_route('jobs.edit', '',[$job->id],['icon' => 'edit', 'title' => __('job.edit'), 'class' => 'btn btn-warning btn-xs']) !!}

2
resources/views/reports/payments/daily.blade.php

@ -8,7 +8,7 @@
<ul class="breadcrumb hidden-print">
<li>{{ link_to_route('reports.payments.yearly', __('report.yearly', ['year' => $dt->year]), ['year' => $dt->year]) }}</li>
<li>{{ link_to_route('reports.payments.monthly', get_months()[month_number($dt->month)], ['year' => $dt->year,'month' => month_number($dt->month)]) }}</li>
<li>{{ link_to_route('reports.payments.monthly', get_months()[month_number($dt->month)], ['year' => $dt->year, 'month' => month_number($dt->month)]) }}</li>
<li class="active">{{ $dt->format('d') }}</li>
</ul>

6
resources/views/subscriptions/index.blade.php

@ -8,10 +8,10 @@
{{ __('subscription.subscriptions') }} <small>{{ $subscriptions->total() }} {{ __('subscription.found') }}</small>
</h1>
<div class="well well-sm">
{!! Form::open(['method' => 'get','class' => 'form-inline']) !!}
{!! Form::text('q', request('q'), ['class' => 'form-control index-search-field','placeholder' =>__('subscription.search'),'style' => 'width:350px']) !!}
{!! Form::open(['method' => 'get', 'class' => 'form-inline']) !!}
{!! Form::text('q', request('q'), ['class' => 'form-control index-search-field', 'placeholder' =>__('subscription.search'), 'style' => 'width:350px']) !!}
{!! Form::submit(__('subscription.search'), ['class' => 'btn btn-info btn-sm']) !!}
{!! link_to_route('subscriptions.index','Reset',[],['class' => 'btn btn-default btn-sm']) !!}
{!! link_to_route('subscriptions.index', __('app.reset'), [], ['class' => 'btn btn-default btn-sm']) !!}
{!! Form::close() !!}
</div>

Loading…
Cancel
Save