Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions com_examples/admin/tmpl/example/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
@extends('form')

<?php $method = 'post' ?>

@section('toolbar')
<?php
JToolbarHelper::save('store')
?>
@extends('crud.edit')
@php
/** @var \Joomplace\X\Model $item */
@endphp
@section('field.body')
<label>@lang($item->getLabelFor('body'))</label>
<textarea name="body" placeholder="@lang($item->getPlaceholderFor('body'))">{{$item->body}}</textarea>
@endsection

@section('form')
<label>Title</label>
<input type="text" name="title" placeholder="Example title" />
<label>Body</label>
<textarea name="body" placeholder="Example body"></textarea>
@endsection
23 changes: 7 additions & 16 deletions com_examples/admin/tmpl/example/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
@extends('form')

<?php $method = 'put' ?>

@section('toolbar')
<?php
JToolbarHelper::save('update')
?>
@extends('crud.edit')
@php
/** @var \Joomplace\X\Model $item */
@endphp
@section('field.body')
<label>@lang($item->getLabelFor('body'))</label>
<textarea name="body" placeholder="@lang($item->getPlaceholderFor('body'))">{{$item->body}}</textarea>
@endsection

@section('form')
<input type="hidden" name="id" value="{{$item->id}}">
<label>Title</label>
<input type="text" name="title" placeholder="Example title" value="{{$item->title}}"/>
<label>Body</label>
<textarea name="body" placeholder="Example body">{{$item->body}}</textarea>
@endsection
9 changes: 0 additions & 9 deletions com_examples/admin/tmpl/example/form.blade.php

This file was deleted.

6 changes: 0 additions & 6 deletions com_examples/admin/tmpl/example/show.blade.php

This file was deleted.