Skip to content

Commit

Permalink
fixed modal view
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Sep 3, 2024
1 parent 15a4699 commit 87706d6
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 46 deletions.
15 changes: 3 additions & 12 deletions src/Repository/MolLogRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
namespace Mollie\Repository;

use DusanKasan\Knapsack\Collection;
use Mollie\Subscription\Exception\NotImplementedException;

if (!defined('_PS_VERSION_')) {
exit;
Expand All @@ -37,18 +38,8 @@ public function prune(int $daysToKeep): void
->realize();
}

public function findAll(int $langId = null): \PrestaShopCollection
public function findAll()
{
// TODO: Implement findAll() method.
}

public function findAllBy(array $keyValueCriteria, int $langId = null): ?\PrestaShopCollection
{
// TODO: Implement findAllBy() method.
}

public function findOrFail(array $keyValueCriteria, int $langId = null): \ObjectModel
{
// TODO: Implement findOrFail() method.
throw new NotImplementedException('Find all not implemented');
}
}
2 changes: 0 additions & 2 deletions src/Repository/MolLogRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Mollie\Repository;

use Mollie\Shared\Infrastructure\Repository\ReadOnlyRepositoryInterface;

if (!defined('_PS_VERSION_')) {
exit;
}
Expand Down
35 changes: 35 additions & 0 deletions src/Repository/ReadOnlyRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Mollie https://www.mollie.nl
*
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/

namespace Mollie\Repository;

use ObjectModel;
use PrestaShopCollection;

if (!defined('_PS_VERSION_')) {
exit;
}

interface ReadOnlyRepositoryInterface
{
/**
* @return PrestaShopCollection
*/
public function findAll();

/**
* @param array $keyValueCriteria - e.g [ 'id_cart' => 5 ]
*
* @return ObjectModel|null
*/
public function findOneBy(array $keyValueCriteria);
}
13 changes: 6 additions & 7 deletions views/css/admin/logs/log.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/**
* NOTICE OF LICENSE
* Mollie https://www.mollie.nl
*
* @author Mastercard Inc. www.mastercard.com
* @copyright Copyright (c) permanent, Mastercard Inc.
* @license Apache-2.0
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see /LICENSE
*
* International Registered Trademark & Property of Mastercard Inc.
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/

.button {
Expand Down
13 changes: 6 additions & 7 deletions views/js/admin/logs/log.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/**
* NOTICE OF LICENSE
* Mollie https://www.mollie.nl
*
* @author Mastercard Inc. www.mastercard.com
* @copyright Copyright (c) permanent, Mastercard Inc.
* @license Apache-2.0
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see /LICENSE
*
* International Registered Trademark & Property of Mastercard Inc.
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/

$(document).ready(function () {
Expand Down
12 changes: 6 additions & 6 deletions views/templates/admin/logs/log_modal.tpl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{**
* NOTICE OF LICENSE
* Mollie https://www.mollie.nl
*
* @author Mastercard Inc. www.mastercard.com
* @copyright Copyright (c) permanent, Mastercard Inc.
* @license Apache-2.0
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see /LICENSE
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*
* International Registered Trademark & Property of Mastercard Inc.
*}

<div
Expand Down
13 changes: 7 additions & 6 deletions views/templates/admin/logs/severity_level_column.tpl
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{**
* NOTICE OF LICENSE
* Mollie https://www.mollie.nl
*
* @author Mastercard Inc. www.mastercard.com
* @copyright Copyright (c) permanent, Mastercard Inc.
* @license Apache-2.0
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see /LICENSE
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*
* International Registered Trademark & Property of Mastercard Inc.
*}


{if $log_severity_level == $log_severity_level_informative}
<span class="badge badge-pill badge-success" style="margin-bottom: 5px">{l s='Informative only' mod='mollie'} ({$log_severity_level|intval})</span>
{elseif $log_severity_level == $log_severity_level_warning}
Expand Down
13 changes: 7 additions & 6 deletions views/templates/admin/logs/severity_levels.tpl
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{**
* NOTICE OF LICENSE
* Mollie https://www.mollie.nl
*
* @author Mastercard Inc. www.mastercard.com
* @copyright Copyright (c) permanent, Mastercard Inc.
* @license Apache-2.0
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see /LICENSE
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*
* International Registered Trademark & Property of Mastercard Inc.
*}


<div class="panel col-lg-12">
<h3>
<i class="icon-warning-sign"></i>
Expand Down

0 comments on commit 87706d6

Please sign in to comment.