Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Sep 28, 2023
1 parent c82b03e commit a4da7ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Models/Control.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Control extends Model
'name',
'clause',
'objective',
'observations',
'input',
'attributes',
'model',
'action_plan',
'realisation_date',
];

protected $dates = [
Expand Down
6 changes: 3 additions & 3 deletions resources/views/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<div data-role="panel" data-title-caption="Résultats de la recherche" data-collapsible="true" data-title-icon="<span class='mif-search'></span>">
@foreach($results as $result)
@if ($result['model']==='App\\Models\\Domain')
<b>Domaine</b>
<b>{{ trans("cruds.domain.title")}}</b>
<a href="/domains/{{ $result['id'] }}">{{ $result['title'] }}</a> : {{ $result['description'] }}
@elseif ($result['model']==='App\\Models\\Measure')
<b>Mesure</b>
<b>{{ trans("cruds.measure.title")}}</b>
<a href="/measures/{{ $result['id'] }}">{{ $result['clause'] }}</a> : {{ $result["name"] }}
@elseif ($result['model']==='App\\Models\\Control')
<b>Contrôle</b>
<b>{{ trans("cruds.control.title_singular")}}</b>
<a href="/controls/{{ $result['id'] }}">{{ $result["clause"] }}</a> : {{ $result["name"] }}
@if (array_key_exists("realisation_date",$result))
- {{ $result["realisation_date"] }}
Expand Down

0 comments on commit a4da7ab

Please sign in to comment.