|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @package Akeeba Data Compliance |
| 4 | + * @copyright Copyright (c)2018 Nicholas K. Dionysopoulos / Akeeba Ltd |
| 5 | + * @license GNU General Public License version 3, or later |
| 6 | + */ |
| 7 | +
|
| 8 | +use Akeeba\DataCompliance\Admin\Model\Cookietrails; |
| 9 | +use FOF30\Utils\FEFHelper\BrowseView; |
| 10 | +use FOF30\Utils\SelectOptions; |
| 11 | +
|
| 12 | +defined('_JEXEC') or die(); |
| 13 | +
|
| 14 | +/** |
| 15 | + * @var \Akeeba\DataCompliance\Admin\View\Cookietrail\Html $this |
| 16 | + * @var Cookietrails $row |
| 17 | + * @var Cookietrails $model |
| 18 | + */ |
| 19 | +
|
| 20 | +$model = $this->getModel(); |
| 21 | +?> |
| 22 | + |
| 23 | +@extends('admin:com_datacompliance/Common/browse') |
| 24 | + |
| 25 | +@section('browse-filters') |
| 26 | + {{-- Created by --}} |
| 27 | + <div class="akeeba-filter-element akeeba-form-group"> |
| 28 | + @searchfilter('created_by', 'created_by', 'COM_DATACOMPLIANCE_USERTRAIL_FIELD_USER_ID') |
| 29 | + </div> |
| 30 | + |
| 31 | +@stop |
| 32 | + |
| 33 | +@section('browse-table-header') |
| 34 | +{{-- ### HEADER ROW ### --}} |
| 35 | +<tr> |
| 36 | + {{-- Row select --}} |
| 37 | + <th width="20"> |
| 38 | + @jhtml('FEFHelper.browse.checkall') |
| 39 | + </th> |
| 40 | + {{-- Created by --}} |
| 41 | + <th> |
| 42 | + @sortgrid('created_by') |
| 43 | + </th> |
| 44 | + {{-- Created on --}} |
| 45 | + <th width="20%"> |
| 46 | + @sortgrid('created_on') |
| 47 | + </th> |
| 48 | + {{-- Requester IP --}} |
| 49 | + <th width="20%"> |
| 50 | + @sortgrid('requester_ip') |
| 51 | + </th> |
| 52 | + {{-- Preference --}} |
| 53 | + <th width="10%"> |
| 54 | + @sortgrid('preference') |
| 55 | + </th> |
| 56 | + {{-- DNT --}} |
| 57 | + <th width="10%"> |
| 58 | + @sortgrid('dnt') |
| 59 | + </th> |
| 60 | + {{-- Reset --}} |
| 61 | + <th width="60"> |
| 62 | + @sortgrid('reset') |
| 63 | + </th> |
| 64 | +</tr> |
| 65 | +@stop |
| 66 | + |
| 67 | +@section('browse-table-body-withrecords') |
| 68 | +{{-- Table body shown when records are present. --}} |
| 69 | +<?php $i = 0; ?> |
| 70 | +@foreach($this->items as $row) |
| 71 | + <tr> |
| 72 | + {{-- Row select --}} |
| 73 | + <td> |
| 74 | + @jhtml('FEFHelper.browse.id', ++$i, $row->getId()) |
| 75 | + </td> |
| 76 | + {{-- Created by --}} |
| 77 | + <td> |
| 78 | + @include('admin:com_datacompliance/Common/ShowUser', ['item' => $row, 'field' => 'created_by']) |
| 79 | + </td> |
| 80 | + {{-- Created on --}} |
| 81 | + <td> |
| 82 | + {{ \Akeeba\DataCompliance\Admin\Helper\Format::date($row->created_on) }} |
| 83 | + </td> |
| 84 | + {{-- Requester IP --}} |
| 85 | + <td> |
| 86 | + {{{ $row->requester_ip }}} |
| 87 | + </td> |
| 88 | + |
| 89 | + {{-- Preference --}} |
| 90 | + <td> |
| 91 | + @if($row->preference == 1) |
| 92 | + <a class="akeeba-btn--green--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_PREFERENCE_YES')"> |
| 93 | + <span class="akion-checkmark-round"></span> |
| 94 | + </a> |
| 95 | + @elseif($row->preference == 0) |
| 96 | + <a class="akeeba-btn--red--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_PREFERENCE_NO')"> |
| 97 | + <span class="akion-close-round"></span> |
| 98 | + </a> |
| 99 | + @endif |
| 100 | + </td> |
| 101 | + |
| 102 | + {{-- DNT --}} |
| 103 | + <td> |
| 104 | + @if($row->dnt == -2) |
| 105 | + <a class="akeeba-btn--orange--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_DNT_NA')"> |
| 106 | + <span class="akion-minus-round"></span> |
| 107 | + </a> |
| 108 | + @elseif($row->dnt == -1) |
| 109 | + <a class="akeeba-btn--grey--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_DNT_UNSET')"> |
| 110 | + <span class="akion-help"></span> |
| 111 | + </a> |
| 112 | + @elseif($row->dnt == 0) |
| 113 | + <a class="akeeba-btn--red--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_DNT_TRACK')"> |
| 114 | + <span class="akion-eye"></span> |
| 115 | + </a> |
| 116 | + @elseif($row->dnt == 1) |
| 117 | + <a class="akeeba-btn--green--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_DNT_NOTTRACK')"> |
| 118 | + <span class="akion-eye-disabled"></span> |
| 119 | + </a> |
| 120 | + @endif |
| 121 | + </td> |
| 122 | + |
| 123 | + {{-- Reset --}} |
| 124 | + <td> |
| 125 | + @if($row->reset == 1) |
| 126 | + <a class="akeeba-btn--green--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_RESET_YES')"> |
| 127 | + <span class="akion-checkmark-round"></span> |
| 128 | + </a> |
| 129 | + @elseif($row->reset == 0) |
| 130 | + <a class="akeeba-btn--grey--mini disabled akeebagrid hasTooltip" title="@lang('COM_DATACOMPLIANCE_COOKIETRAIL_FIELD_RESET_NO')"> |
| 131 | + <span class="akion-close-round"></span> |
| 132 | + </a> |
| 133 | + @endif |
| 134 | + |
| 135 | + </td> |
| 136 | + </tr> |
| 137 | +@endforeach |
| 138 | +@stop |
0 commit comments