-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #898 from dbarzin/dev
Dev
- Loading branch information
Showing
16 changed files
with
393 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,85 @@ | ||
@extends('layouts.admin') | ||
@section('content') | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-blocks.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
|
||
<a class="btn btn-success" href="{{ route('admin.report.explore') }}?node=BLOCK_{{$applicationBlock->id}}"> | ||
{{ trans('global.explore') }} | ||
</a> | ||
|
||
@can('application_block_edit') | ||
<a class="btn btn-info" href="{{ route('admin.application-blocks.edit', $applicationBlock->id) }}"> | ||
{{ trans('global.edit') }} | ||
</a> | ||
@endcan | ||
|
||
@can('application_block_delete') | ||
<form action="{{ route('admin.application-blocks.destroy', $applicationBlock->id) }}" method="POST" onsubmit="return confirm('{{ trans('global.areYouSure') }}');" style="display: inline-block;"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | ||
<input type="submit" class="btn btn-danger" value="{{ trans('global.delete') }}"> | ||
</form> | ||
@endcan | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
{{ trans('global.show') }} {{ trans('cruds.applicationBlock.title') }} | ||
</div> | ||
|
||
<div class="card-body"> | ||
<div class="form-group"> | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-blocks.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
|
||
<a class="btn btn-success" href="{{ route('admin.report.explore') }}?node=BLOCK_{{$applicationBlock->id}}"> | ||
{{ trans('global.explore') }} | ||
</a> | ||
|
||
@can('application_block_edit') | ||
<a class="btn btn-info" href="{{ route('admin.application-blocks.edit', $applicationBlock->id) }}"> | ||
{{ trans('global.edit') }} | ||
</a> | ||
@endcan | ||
|
||
@can('application_block_delete') | ||
<form action="{{ route('admin.application-blocks.destroy', $applicationBlock->id) }}" method="POST" onsubmit="return confirm('{{ trans('global.areYouSure') }}');" style="display: inline-block;"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | ||
<input type="submit" class="btn btn-danger" value="{{ trans('global.delete') }}"> | ||
</form> | ||
@endcan | ||
|
||
</div> | ||
<table class="table table-bordered table-striped"> | ||
<tbody> | ||
<tr> | ||
<th width="10%"> | ||
{{ trans('cruds.applicationBlock.fields.name') }} | ||
</th> | ||
<td> | ||
{{ $applicationBlock->name }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationBlock.fields.description') }} | ||
</th> | ||
<td> | ||
{!! $applicationBlock->description !!} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationBlock.fields.responsible') }} | ||
</th> | ||
<td> | ||
{{ $applicationBlock->responsible }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
Applications | ||
</th> | ||
<td> | ||
@foreach($applicationBlock->applications as $key => $application) | ||
<a href="{{ route('admin.applications.show',$application->id) }}">{{ $application->name }}</a> | ||
@if(!$loop->last) | ||
, | ||
@endif | ||
@endforeach | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-blocks.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
</div> | ||
</div> | ||
<table class="table table-bordered table-striped"> | ||
<tbody> | ||
<tr> | ||
<th width="10%"> | ||
{{ trans('cruds.applicationBlock.fields.name') }} | ||
</th> | ||
<td> | ||
{{ $applicationBlock->name }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationBlock.fields.description') }} | ||
</th> | ||
<td> | ||
{!! $applicationBlock->description !!} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationBlock.fields.responsible') }} | ||
</th> | ||
<td> | ||
{{ $applicationBlock->responsible }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
Applications | ||
</th> | ||
<td> | ||
@foreach($applicationBlock->applications as $key => $application) | ||
<a href="{{ route('admin.applications.show',$application->id) }}">{{ $application->name }}</a> | ||
@if(!$loop->last) | ||
, | ||
@endif | ||
@endforeach | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="card-footer"> | ||
{{ trans('global.created_at') }} {{ $applicationBlock->created_at ? $applicationBlock->created_at->format(trans('global.timestamp')) : '' }} | | ||
{{ trans('global.updated_at') }} {{ $applicationBlock->updated_at ? $applicationBlock->updated_at->format(trans('global.timestamp')) : '' }} | ||
{{ trans('global.updated_at') }} {{ $applicationBlock->updated_at ? $applicationBlock->updated_at->format(trans('global.timestamp')) : '' }} | ||
</div> | ||
</div> | ||
@endsection | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-blocks.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 50 additions & 54 deletions
104
resources/views/admin/applicationModules/show.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,63 @@ | ||
@extends('layouts.admin') | ||
@section('content') | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-modules.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
|
||
<a class="btn btn-success" href="{{ route('admin.report.explore') }}?node=MOD_{{$applicationModule->id}}"> | ||
{{ trans('global.explore') }} | ||
</a> | ||
|
||
@can('application_module_edit') | ||
<a class="btn btn-info" href="{{ route('admin.application-modules.edit', $applicationModule->id) }}"> | ||
{{ trans('global.edit') }} | ||
</a> | ||
@endcan | ||
|
||
@can('application_module_delete') | ||
<form action="{{ route('admin.application-modules.destroy', $applicationModule->id) }}" method="POST" onsubmit="return confirm('{{ trans('global.areYouSure') }}');" style="display: inline-block;"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | ||
<input type="submit" class="btn btn-danger" value="{{ trans('global.delete') }}"> | ||
</form> | ||
@endcan | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
{{ trans('global.show') }} {{ trans('cruds.applicationModule.title') }} | ||
</div> | ||
<div class="card-body"> | ||
<div class="form-group"> | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-modules.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
|
||
<a class="btn btn-success" href="{{ route('admin.report.explore') }}?node=MOD_{{$applicationModule->id}}"> | ||
{{ trans('global.explore') }} | ||
</a> | ||
|
||
@can('application_module_edit') | ||
<a class="btn btn-info" href="{{ route('admin.application-modules.edit', $applicationModule->id) }}"> | ||
{{ trans('global.edit') }} | ||
</a> | ||
@endcan | ||
|
||
@can('application_module_delete') | ||
<form action="{{ route('admin.application-modules.destroy', $applicationModule->id) }}" method="POST" onsubmit="return confirm('{{ trans('global.areYouSure') }}');" style="display: inline-block;"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | ||
<input type="submit" class="btn btn-danger" value="{{ trans('global.delete') }}"> | ||
</form> | ||
@endcan | ||
|
||
</div> | ||
<table class="table table-bordered table-striped"> | ||
<tbody> | ||
<tr> | ||
<th width="10%"> | ||
{{ trans('cruds.applicationModule.fields.name') }} | ||
</th> | ||
<td> | ||
{{ $applicationModule->name }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationModule.fields.description') }} | ||
</th> | ||
<td> | ||
{!! $applicationModule->description !!} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-modules.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
</div> | ||
</div> | ||
<table class="table table-bordered table-striped"> | ||
<tbody> | ||
<tr> | ||
<th width="10%"> | ||
{{ trans('cruds.applicationModule.fields.name') }} | ||
</th> | ||
<td> | ||
{{ $applicationModule->name }} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th> | ||
{{ trans('cruds.applicationModule.fields.description') }} | ||
</th> | ||
<td> | ||
{!! $applicationModule->description !!} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="card-footer"> | ||
{{ trans('global.created_at') }} {{ $applicationModule->created_at ? $applicationModule->created_at->format(trans('global.timestamp')) : '' }} | | ||
{{ trans('global.updated_at') }} {{ $applicationModule->updated_at ? $applicationModule->updated_at->format(trans('global.timestamp')) : '' }} | ||
{{ trans('global.updated_at') }} {{ $applicationModule->updated_at ? $applicationModule->updated_at->format(trans('global.timestamp')) : '' }} | ||
</div> | ||
</div> | ||
|
||
@endsection | ||
<div class="form-group"> | ||
<a class="btn btn-default" href="{{ route('admin.application-modules.index') }}"> | ||
{{ trans('global.back_to_list') }} | ||
</a> | ||
</div> | ||
@endsection |
Oops, something went wrong.