Skip to content

Commit

Permalink
bootstrap 3 platform modifyed
Browse files Browse the repository at this point in the history
  • Loading branch information
sudippalash committed Feb 22, 2023
1 parent a9e5dd6 commit f7988ee
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 25 deletions.
10 changes: 5 additions & 5 deletions src/resources/views/bootstrap3/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@section(config('role-creator.section_name'))
<section class="{{ $cssClass['container'] }}">
<div class="{{ $cssClass['card'] }}">
<div class="card-header">
<div class="d-flex justify-content-between">
<h4 class="m-0">{{ trans('role-creator::sp_role_creator.role_create') }}</h4>
<div class="d-flex">
<div class="panel-heading">
<div style="height: 40px;">
<h4 class="pull-left">{{ trans('role-creator::sp_role_creator.role_create') }}</h4>
<div class="pull-right">
<a class="btn {{ $cssClass['btn'] }} ml-3" href="{{ route($routeName . '.index') }}">{{ trans('role-creator::sp_role_creator.back_to_list') }}</a>
</div>
</div>
</div>

<div class="card-body">
<div class="panel-body">
<form method="POST" action="{{ route($routeName . '.store') }}">
@csrf

Expand Down
10 changes: 5 additions & 5 deletions src/resources/views/bootstrap3/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@section(config('role-creator.section_name'))
<section class="{{ $cssClass['container'] }}">
<div class="{{ $cssClass['card'] }}">
<div class="card-header">
<div class="d-flex justify-content-between">
<h4 class="m-0">{{ trans('role-creator::sp_role_creator.role_edit') }}</h4>
<div class="d-flex">
<div class="panel-heading">
<div style="height: 40px;">
<h4 class="pull-left">{{ trans('role-creator::sp_role_creator.role_edit') }}</h4>
<div class="pull-right">
<a class="btn {{ $cssClass['btn'] }} ml-3" href="{{ route($routeName . '.index') }}">{{ trans('role-creator::sp_role_creator.back_to_list') }}</a>
</div>
</div>
</div>

<div class="card-body">
<div class="panel-body">
<form method="POST" action="{{ route($routeName . '.update', $data->id) }}">
@csrf
@method('PUT')
Expand Down
23 changes: 14 additions & 9 deletions src/resources/views/bootstrap3/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@section(config('role-creator.section_name'))
<section class="{{ $cssClass['container'] }}">
<div class="{{ $cssClass['card'] }}">
<div class="card-header">
<div class="d-flex justify-content-between">
<h4 class="m-0">{{ trans('role-creator::sp_role_creator.role') }}</h4>
<div class="d-flex">
<div class="panel-heading">
<div style="height: 40px;">
<h4 class="pull-left">{{ trans('role-creator::sp_role_creator.role') }}</h4>
<div class="pull-right">
<a class="btn {{ $cssClass['btn'] }} ml-3" href="{{ route($routeName . '.create') }}">{{ trans('role-creator::sp_role_creator.create') }}</a>
</div>
</div>
</div>

<div class="card-body">
<div class="panel-body">
<div class="table-responsive">
<table class="table {{ $cssClass['table'] }}">
<thead>
Expand All @@ -37,10 +37,15 @@
<div class="btn-group">
<button type="button" class="btn {{ $cssClass['table_action_btn'] }} btn-sm dropdown-toggle" data-toggle="dropdown" data-display="static">{{ trans('role-creator::sp_role_creator.action') }}</button>
<div class="dropdown-menu dropdown-menu-sm dropdown-menu-lg-right">
<a class="dropdown-item" href="{{ route($routeName . '.show', $val->id) }}">{{ trans('role-creator::sp_role_creator.show') }}</a>
<a class="dropdown-item" href="{{ route($routeName . '.edit', $val->id) }}">{{ trans('role-creator::sp_role_creator.edit') }}</a>
<a class="dropdown-item" href="javascript:void(0)" onclick="if (confirm('Are you sure to delete this role?')) { event.preventDefault(); document.getElementById('role-delete-form{{ $val->id }}').submit(); } else { event.stopPropagation(); event.preventDefault(); };">{{ trans('role-creator::sp_role_creator.destroy') }}</a>

<li>
<a class="dropdown-item" href="{{ route($routeName . '.show', $val->id) }}">{{ trans('role-creator::sp_role_creator.show') }}</a>
</li>
<li>
<a class="dropdown-item" href="{{ route($routeName . '.edit', $val->id) }}">{{ trans('role-creator::sp_role_creator.edit') }}</a>
</li>
<li>
<a class="dropdown-item" href="javascript:void(0)" onclick="if (confirm('Are you sure to delete this role?')) { event.preventDefault(); document.getElementById('role-delete-form{{ $val->id }}').submit(); } else { event.stopPropagation(); event.preventDefault(); };">{{ trans('role-creator::sp_role_creator.destroy') }}</a>
</li>

<form id="role-delete-form{{ $val->id }}" action="{{ route($routeName . '.destroy', $val->id) }}" method="POST" style="display: none;">
@csrf
Expand Down
12 changes: 6 additions & 6 deletions src/resources/views/bootstrap3/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
@section(config('role-creator.section_name'))
<section class="{{ $cssClass['container'] }}">
<div class="{{ $cssClass['card'] }}">
<div class="card-header">
<div class="d-flex justify-content-between">
<h4 class="m-0">{{ trans('role-creator::sp_role_creator.role_show') }}</h4>
<div class="d-flex">
<div class="panel-heading">
<div style="height: 40px;">
<h4 class="pull-left">{{ trans('role-creator::sp_role_creator.role_show') }}</h4>
<div class="pull-right">
<a class="btn {{ $cssClass['btn'] }} ml-3" href="{{ route($routeName . '.index') }}">{{ trans('role-creator::sp_role_creator.back_to_list') }}</a>
</div>
</div>
</div>

<div class="card-body">
<table class="table browser mt-4 no-border">
<div class="panel-body">
<table class="table">
<tbody>
<tr>
<td>{{ trans('role-creator::sp_role_creator.name') }}</td>
Expand Down

0 comments on commit f7988ee

Please sign in to comment.