Blade syntax consistency updates - no functional changes
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 4m7s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 2m35s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m3s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2025-06-01 19:28:08 +10:00
parent 6599bb7f4f
commit b08de519d4
16 changed files with 34 additions and 34 deletions

View File

@ -46,13 +46,13 @@
</div>
</div>
@if (count($errors) > 0)
@if(count($errors) > 0)
<div class="row">
<div class="col">
<div class="alert alert-danger m-3">
<strong>Whoops!</strong> Something went wrong?<br><br>
<ul>
@foreach ($errors->all() as $error)
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>

View File

@ -16,7 +16,7 @@
<div class="app-main__outer">
<div class="app-main__inner">
<div class="main-content">
@if (trim($__env->yieldContent('page_title')))
@if(trim($__env->yieldContent('page_title')))
@include('architect::layouts.partials.contentheader')
@endif

View File

@ -1,7 +1,7 @@
<div class="app-page-title">
<div class="page-title-wrapper bg-white">
<div class="page-title-heading">
@if (trim($__env->yieldContent('page_icon')))
@if(trim($__env->yieldContent('page_icon')))
<div class="page-title-icon f32">
<i class="@yield('page_icon','')"></i>
</div>

View File

@ -142,7 +142,7 @@
<img width="35" height="35" class="rounded-circle p-1 bg-light" src="{{ url('user/image') }}" alt="">
</a>
<div tabindex="-1" role="menu" aria-hidden="true" class="dropdown-menu dropdown-menu-right">
@if ($user->exists)
@if($user->exists)
<h6 tabindex="-1" class="dropdown-header text-center">User Menu</h6>
<div tabindex="-1" class="dropdown-divider"></div>
<a href="{{ url('logout') }}" tabindex="0" class="dropdown-item">

View File

@ -11,7 +11,7 @@
<sup>
[
@foreach($o->hints as $name => $description)
@if ($loop->index),@endif
@if($loop->index),@endif
<abbr title="{{ $description }}">{{ $name }}</abbr>
@endforeach
]

View File

@ -6,7 +6,7 @@
<x-attribute.widget.objectclass :o="$o" :edit="$edit" :new="$new" :langtag="$langtag" :updated="$updated" :value="$value" :loop="$loop" />
@else
{{ $o->render_item_old($key) }}
@if ($o->isStructural($value))
@if($o->isStructural($value))
<input type="hidden" name="{{ $o->name_lc }}[{{ $langtag }}][]" value="{{ $value }}">
<span class="float-end">@lang('structural')</span>
@endif

View File

@ -2,7 +2,7 @@
<div class="input-group has-validation">
<!-- @todo Have an "x" to remove the entry, we need an event to process the removal, removing any attribute values along the way -->
<input type="text" @class(['form-control','input-group-end','is-invalid'=>($e=$errors->get($o->name_lc.'.'.$langtag.'.'.$loop->index)),'mb-1','border-focus'=>! $o->tagValuesOld($langtag)->contains($value),'bg-success-subtle'=>$updated]) name="{{ $o->name_lc }}[{{ $langtag }}][]" value="{{ $value }}" placeholder="{{ Arr::get($o->values,$loop->index,'['.__('NEW').']') }}" @readonly(true)>
@if ($o->isStructural($value))
@if($o->isStructural($value))
<span class="input-group-end text-black-50">@lang('structural')</span>
@else
<span class="input-group-end"><i class="fas fa-fw fa-xmark"></i></span>

View File

@ -3,7 +3,7 @@
<h4 class="alert-heading"><i class="fas fa-fw fa-thumbs-up"></i> Success!</h4>
<hr>
<ul class="square">
@foreach (session()->get('success') as $item)
@foreach(session()->get('success') as $item)
<li>{{ $item }}</li>
@endforeach
</ul>

View File

@ -2,14 +2,14 @@
<div class="col-12 col-xl-3">
<select id="attributetype" class="form-control">
<option value="-all-">-all-</option>
@foreach ($attributetypes as $o)
@foreach($attributetypes as $o)
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
@endforeach
</select>
</div>
<div class="col-12 col-xl-9">
@foreach ($attributetypes as $o)
@foreach($attributetypes as $o)
<span id="at-{{ $o->name_lc }}">
<table class="schema table table-sm table-bordered table-striped">
<thead>
@ -30,16 +30,16 @@
</tr>
<tr>
<td>@lang('Inherits from')</td>
<td><strong>@if ($o->sup_attribute)<a class="attributetype" id="{{ strtolower($o->sup_attribute) }}" href="#{{ strtolower($o->sup_attribute) }}">{{ $o->sup_attribute }}</a>@else @lang('(none)')@endif</strong></td>
<td><strong>@if($o->sup_attribute)<a class="attributetype" id="{{ strtolower($o->sup_attribute) }}" href="#{{ strtolower($o->sup_attribute) }}">{{ $o->sup_attribute }}</a>@else @lang('(none)')@endif</strong></td>
</tr>
<tr>
<td>@lang('Parent to')</td>
<td>
<strong>
@if (! $o->children->count())
@if(! $o->children->count())
@lang('(none)')
@else
@foreach ($o->children->sort() as $child)
@foreach($o->children->sort() as $child)
@if($loop->index)</strong> <strong>@endif
<a class="attributetype" id="{{ strtolower($child) }}" href="#{{ strtolower($child) }}">{{ $child }}</a>
@endforeach
@ -77,9 +77,9 @@
<tr>
<td>@lang('Aliases')</td>
<td><strong>
@if ($o->aliases->count())
@foreach ($o->aliases as $alias)
@if ($loop->index)</strong> <strong>@endif
@if($o->aliases->count())
@foreach($o->aliases as $alias)
@if($loop->index)</strong> <strong>@endif
<a class="attributetype" id="{{ strtolower($alias) }}" href="#{{ strtolower($alias) }}">{{ $alias }}</a>
@endforeach
@else
@ -90,8 +90,8 @@
<tr>
<td>@lang('Used by ObjectClasses')</td>
<td>
@if ($o->used_in_object_classes->count())
@foreach ($o->used_in_object_classes as $class => $structural)
@if($o->used_in_object_classes->count())
@foreach($o->used_in_object_classes as $class => $structural)
@if($structural)
<strong>
@endif
@ -108,8 +108,8 @@
<tr>
<td>@lang('Required by ObjectClasses')</td>
<td>
@if ($o->required_by_object_classes->count())
@foreach ($o->required_by_object_classes as $class => $structural)
@if($o->required_by_object_classes->count())
@foreach($o->required_by_object_classes as $class => $structural)
@if($structural)
<strong>
@endif

View File

@ -9,14 +9,14 @@
</thead>
<tbody>
@foreach ($ldapsyntaxes as $o)
@foreach($ldapsyntaxes as $o)
<tr>
<td>
<abbr title="{{ $o->line }}">{{ $o->description }}</abbr>
@if ($o->binary_transfer_required)
@if($o->binary_transfer_required)
<span class="float-end"><i class="fas fa-fw fa-file-download"></i></span>
@endif
@if ($o->is_not_human_readable)
@if($o->is_not_human_readable)
<span class="float-end"><i class="fas fa-fw fa-tools"></i></span>
@endif
</td>

View File

@ -2,14 +2,14 @@
<div class="col-12 col-xl-3">
<select id="matchingrule" class="form-control">
<option value="-all-">-all-</option>
@foreach ($matchingrules as $o)
@foreach($matchingrules as $o)
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
@endforeach
</select>
</div>
<div class="col-12 col-xl-9">
@foreach ($matchingrules as $o)
@foreach($matchingrules as $o)
<span id="me-{{ $o->name_lc }}">
<table class="schema table table-sm table-bordered table-striped">
<thead>
@ -32,10 +32,10 @@
<td>@lang('Used by Attributes')</td>
<td>
<strong>
@if ($o->used_by_attrs->count() === 0)
@if($o->used_by_attrs->count() === 0)
@lang('(none)')
@else
@foreach ($o->used_by_attrs as $attr)
@foreach($o->used_by_attrs as $attr)
@if($loop->index)</strong> <strong>@endif
<a class="attributetype" id="{{ strtolower($attr) }}" href="#at-{{ strtolower($attr) }}">{{ $attr }}</a>
@endforeach

View File

@ -49,7 +49,7 @@
@case(2)
<x-attribute-type :o="$o->getObject('rdn')" :edit="TRUE" :new="FALSE" :updated="FALSE"/>
@foreach ($o->getVisibleAttributes() as $ao)
@foreach($o->getVisibleAttributes() as $ao)
<x-attribute-type :o="$ao" :edit="TRUE" :new="FALSE" :updated="FALSE"/>
@endforeach
@ -79,7 +79,7 @@
function editmode() {
// Find all input items and turn off readonly
$('input.form-control').each(function() {
// Except for objectClass - @todo show an "X" instead
// Except for objectClass
if ($(this)[0].name.match(/^objectclass/))
return;

View File

@ -28,7 +28,7 @@
<th class="text-end">@lang('Line')</th>
</tr>
</thead>
@foreach ($result as $item)
@foreach($result as $item)
<tr>
<td>{{ $item->get('dn') }}</td>
<td>{{ $item->get('result') }}</td>

View File

@ -13,7 +13,7 @@
<div class="main-card mb-3 card">
<div class="card-body">
<table class="table">
@foreach ($server->rootDSE()->getObjects() as $attribute => $ao)
@foreach($server->rootDSE()->getObjects() as $attribute => $ao)
<tr>
<th class="w-25">
{!! ($x=$server->schema('attributetypes',$attribute))

View File

@ -1,4 +1,4 @@
@if (trim($__env->yieldContent('page_title')))
@if(trim($__env->yieldContent('page_title')))
@include('architect::layouts.partials.contentheader')
@endif

View File

@ -30,7 +30,7 @@
</thead>
<tbody>
@foreach ($o->getObjects()->filter(fn($item)=>$item->isDirty()) as $key => $oo)
@foreach($o->getObjects()->filter(fn($item)=>$item->isDirty()) as $key => $oo)
<tr>
<th rowspan="{{ $x=max($oo->values->dot()->keys()->count(),$oo->values_old->dot()->keys()->count())}}">
<abbr title="{{ $oo->description }}">{{ $oo->name }}</abbr>