Review Request 128908: Syntax file for Blade template (PHP)
Gregor Mi
codestruct at posteo.org
Sun Feb 4 14:23:18 UTC 2018
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128908/#review103858
-----------------------------------------------------------
> Bump. Does someone want to review/import this RR?
I think this Review Request needs to be moved to Phabricator since Reviewboard is closed down soon.
- Gregor Mi
On Dez. 20, 2017, 12:17 vorm., Yunhe Guo wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128908/
> -----------------------------------------------------------
>
> (Updated Dez. 20, 2017, 12:17 vorm.)
>
>
> Review request for Kate, Dominik Haumann and Volker Krause.
>
>
> Repository: ktexteditor
>
>
> Description
> -------
>
> Blade template (`*.blade.php`) is a simple PHP template engine used in Laravel framework.
>
> https://laravel.com/docs/master/blade
>
>
> Diffs
> -----
>
> src/syntax/data/blade.xml PRE-CREATION
>
>
> Diff: https://git.reviewboard.kde.org/r/128908/diff/4/
>
>
> Testing
> -------
>
> Screenshot:
>
> http://imgur.com/WOYV4Qu
>
> Test file:
> ```
> @extends('layouts.app', [
> 'title' => trans('common.edit') . ': ' . $tag->text('name'),
> 'body_id' => 'tag-edit-page',
> 'body_classes' => ['tag-edit-page', 'tag-page', 'edit-page'],
> 'active_nav' => parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),
> ])
>
> @section('header')
> <div class="container">
> <h1 class="page-header">{{ trans('common.edit') }}: {{ $tag->text('name') }}</h1>
> </div>
> @endsection
>
> {{-- This is a comment :-) --}}
>
> @section('main')
> <div class="container">
> <form id="edit-form" class="edit-form" action="/tag/{{ $tag->id }}"
> data-id="{{ $tag->id }}">
>
>
> {!! csrf_field() !!}
>
> <div class="tab-pane-group">
> <!-- Nav tabs -->
> <ul id="translation-tabs" class="nav nav-tabs">
> @foreach (App\Localization\Languages::names() as $locale => $names)
> <li class="{{ $locale==='en'?'active':'' }}">
> <a href="#translation-{{ $locale }}" data-toggle="tab" title="{{ $names['native'] }}">
> {{ $names['localized'] }}
> </a>
> </li>
> @endforeach
> </ul>
>
> <!-- Tab panes -->
> <div class="tab-content">
> @foreach (App\Localization\Languages::all() as $locale)
> <?php $translation = $tag->translations()->where('locale', $locale)->first(); ?>
> <div id="translation-{{ $locale }}" class="tab-pane {{ $locale==='en'?'active':'' }}">
> <div class="form-group">
> <label>{{ trans('common.name') }}</label>
> <input name="translations[{{ $locale }}][name]" value="{{ $translation->name or '' }}"
> class="form-control" type="text" maxlength="255">
> </div>
>
> <div class="form-group">
> <label>{{ trans('common.alias') }}</label>
> <input name="translations[{{ $locale }}][alias]" value="{{ $translation->alias or '' }}"
> class="form-control" type="text" maxlength="255">
> </div>
>
> <div class="form-group">
> <label>{{ trans('common.description') }}</label>
> <textarea name="translations[{{ $locale }}][description]"
> class="form-control">{{ $translation->description or '' }}</textarea>
> </div>
> </div>
> @endforeach
> </div>
> </div>
>
> <br>
>
> <div class="form-group">
> <label>{{ trans('image.cover_image') }}</label>
> @include('components.upload.image-chooser', [
> 'id' => 'cover-chooser',
> 'image' => $tag->image,
> ])
> </div>
>
> <div class="form-group">
> <label>{{ trans('common.level') }}</label>
> <input name="level" value="{{ $tag->level or '' }}"
> class="form-control" type="number" min="0" max="255">
> </div>
>
> <button type="submit" class="btn btn-primary">{{ new trans('common.save') }}</button>
>
> <a class="btn btn-link" href="{{ $tag->url }}">{{ trans('common.cancel') }}</a>
>
> </form>
> </div><!-- .container -->
> @endsection
>
> @push('templates')
> @include('templates.image-preview')
> @endpush
>
> @push('modals')
> @include('components.upload.image-manager')
> @endpush
>
> ```
>
>
> File Attachments
> ----------------
>
> Blade template highlight file
> https://git.reviewboard.kde.org/media/uploaded/files/2016/09/14/19bb8866-9ce0-4e2d-9880-8d1fbc7f8f37__blade.xml
> Blade template highlight file
> https://git.reviewboard.kde.org/media/uploaded/files/2016/09/14/1a93d489-3d7c-4c27-8ff6-54c7653a3dfe__blade.xml
>
>
> Thanks,
>
> Yunhe Guo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180204/f5f9b343/attachment-0001.html>
More information about the KWrite-Devel
mailing list