Skip to content

Commit

Permalink
MOSC-2666
Browse files Browse the repository at this point in the history
  • Loading branch information
Relison Galvão committed Oct 25, 2024
1 parent 61ac247 commit 0613086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/cms/resources/views/subitems/_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
{{--
{!! Form::label('video', 'Video') !!}<br>
{!! Form::text('video', null, ['class'=>"form-control width-grande <% validar(subitem.video) %>", 'ng-model'=>'subitem.video', 'init-model'=>'subitem.video', 'placeholder' => '']) !!}<br>
{!! Form::label('url', 'Link') !!}<br>
--}}
{!! Form::label('url', 'Caminho') !!}<br>
{!! Form::text('url', null, ['class'=>"form-control width-grande <% validar(subitem.url) %>", 'ng-model'=>'subitem.url', 'init-model'=>'subitem.url', 'placeholder' => '']) !!}<br>

--}}


4 changes: 2 additions & 2 deletions resources/views/page/about/accordion.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@if(isset($subitems) && $subitems->isNotEmpty())
@foreach($subitems as $subitem)
<?php
$path = public_path('arquivos/subitems/' . $subitem->arquivo);
$path = public_path($subitem->url!= "" ? $subitem->url : 'arquivos/subitems/' . $subitem->arquivo);
if (file_exists($path)) {
$subitem->file_size = filesize($path);
$subitem->file_extension = pathinfo($path, PATHINFO_EXTENSION);
Expand All @@ -53,7 +53,7 @@
?>
@if($subitem->arquivo!="")
<p style="padding-top: 20px">
<a href="arquivos/subitems/{{$subitem->arquivo}}" class="col-md-5 text-center btn-file" target="_blank" style="vertical-align: middle;">
<a href="{{$subitem->url!= "" ? $subitem->url : 'arquivos/subitems/' . $subitem->arquivo}}" class="col-md-5 text-center btn-file" target="_blank" style="vertical-align: middle;">
<i class="far fa-file fa-2x" style="padding-top: 10px;"></i>
{{$subitem->titulo}}
Atualizado em: {{formatBr($subitem->updated_at, 'num')}}
Expand Down

0 comments on commit 0613086

Please sign in to comment.