Skip to content

Commit

Permalink
bug in p_mode and count
Browse files Browse the repository at this point in the history
  • Loading branch information
aponscat authored Oct 22, 2021
1 parent 5c92e60 commit de59994
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Admin/views/templates/instances_list.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if($p_mode=='R')
@if(isset($p_mode) && $p_mode=='R')
@php($id_rel=0)
<form class="form" id="relation_all" name="relation_all" method="post" enctype="multipart/form-data" action="{{route('editora.action', 'join_all')}}">
{{ csrf_field() }}
Expand Down Expand Up @@ -36,7 +36,7 @@
</button>
</td>
<td class="id">
@if($p_mode=='R')
@if(isset($p_mode) && $p_mode=='R')
<span class="btn-favorite">
<input type="checkbox" id="rel_chb_{{$id_rel}}" name="rel_chb[]" id="table-add-{{$item['id']}}" value="{{$item['id']}}">
</span>
Expand Down Expand Up @@ -66,7 +66,7 @@
</button>
</td>

@if($p_mode=='R')
@if(isset($p_mode) && $p_mode=='R')
@php($link=route('editora.action', 'join2?p_pagina=1&p_relation_id='.$parent['rel_id'].'&p_parent_class_id='.$parent['class_id'].'&p_parent_inst_id='.$parent['inst_id'].'&p_child_inst_id='.$item['id'].'&p_tab='))
<td class="actions">
<a href="{{$link}}" class="btn-square clr-mid"><i class="icon-link-rel"></i><span class="hide-txt">{{getMessage('info_word_join')}}</span> </a>
Expand All @@ -85,10 +85,10 @@
@endif
</tbody>
</table>
@if($count!=-1)
@if(isset($count) && $count!=-1)
<h3>{{$count}} {{getMessage('info_objects_found')}}</h3>
@endif
@if($count>40)
@if(isset($count) && $count>40)
@php($pages = ceil($count/40))
<div class="dataTables_paginate paging_simple_numbers" id="pages-table_paginate">
<ul class="pagination">
Expand All @@ -104,7 +104,7 @@
</ul>
</div>
@endif
@if($p_mode=='R')
@if(isset($p_mode) && $p_mode=='R')
</form>
@endif

Expand Down

0 comments on commit de59994

Please sign in to comment.