mirror of
https://github.com/Karaka-Management/oms-Labeling.git
synced 2026-01-11 00:58:42 +00:00
bump
This commit is contained in:
parent
c0018d2d77
commit
66a1abbb90
35
.github/dev_bug_report.md
vendored
35
.github/dev_bug_report.md
vendored
|
|
@ -1,35 +0,0 @@
|
||||||
---
|
|
||||||
name: Dev Bug Report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: stat_backlog, type_bug
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
# Bug Description
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
# How to Reproduce
|
|
||||||
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
## Minimal Code Example
|
|
||||||
|
|
||||||
```
|
|
||||||
// your code ...
|
|
||||||
```
|
|
||||||
|
|
||||||
# Expected Behavior
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
# Screenshots
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
# Additional Information
|
|
||||||
Add any other context about the problem here.
|
|
||||||
18
.github/dev_feature_request.md
vendored
18
.github/dev_feature_request.md
vendored
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
name: Dev Feature Request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: stat_backlog, type_feature
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
# What is the feature you request
|
|
||||||
* A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
* A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
# Alternatives
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
# Additional Information
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"type": "setting",
|
|
||||||
"name": "1005700001",
|
|
||||||
"content": "1",
|
|
||||||
"pattern": "",
|
|
||||||
"module": "Labeling"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Jingga
|
|
||||||
*
|
|
||||||
* PHP Version 8.1
|
|
||||||
*
|
|
||||||
* @package Modules\Labeling\Admin\Install
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
*/
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Modules\Labeling\Admin\Install;
|
|
||||||
|
|
||||||
use phpOMS\Application\ApplicationAbstract;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Admin class.
|
|
||||||
*
|
|
||||||
* @package Modules\Labeling\Admin\Install
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Admin
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Install Admin providing
|
|
||||||
*
|
|
||||||
* @param ApplicationAbstract $app Application
|
|
||||||
* @param string $path Module path
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
public static function install(ApplicationAbstract $app, string $path) : void
|
|
||||||
{
|
|
||||||
\Modules\Admin\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Admin.install.json']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -76,7 +76,7 @@ final class Installer extends InstallerAbstract
|
||||||
$layoutModels = [];
|
$layoutModels = [];
|
||||||
|
|
||||||
/** @var \Modules\Labeling\Controller\ApiController $module */
|
/** @var \Modules\Labeling\Controller\ApiController $module */
|
||||||
$module = $app->moduleManager->getModuleInstance('Labeling');
|
$module = $app->moduleManager->get('Labeling');
|
||||||
|
|
||||||
$tempPath = __DIR__ . '/../../../temp/';
|
$tempPath = __DIR__ . '/../../../temp/';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@ use phpOMS\Views\View;
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://jingga.app
|
* @link https://jingga.app
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* @todo Create easy front end label editor (drag and drop, images, textareas, database values, ...)
|
||||||
|
* https://github.com/Karaka-Management/Karaka/issues/204
|
||||||
*/
|
*/
|
||||||
final class BackendController extends Controller
|
final class BackendController extends Controller
|
||||||
{
|
{
|
||||||
|
|
@ -88,7 +91,7 @@ final class BackendController extends Controller
|
||||||
->with('files')
|
->with('files')
|
||||||
->with('files/types')
|
->with('files/types')
|
||||||
->where('l11n/language', $response->header->l11n->language)
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->where('l11n/type/title', ['name1', 'name2', 'name3'], 'IN')
|
->where('l11n/type/title', ['name1', 'name2'], 'IN')
|
||||||
->where('files/types/name', 'item_profile_image')
|
->where('files/types/name', 'item_profile_image')
|
||||||
->limit(50)
|
->limit(50)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
@ -121,7 +124,7 @@ final class BackendController extends Controller
|
||||||
->with('l11n/type')
|
->with('l11n/type')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', (int) $request->getData('id'))
|
||||||
->where('l11n/language', $response->header->l11n->language)
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->where('l11n/type/title', ['name1', 'name2', 'name3'], 'IN')
|
->where('l11n/type/title', ['name1', 'name2'], 'IN')
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$view->data['item'] = $item;
|
$view->data['item'] = $item;
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<label>
|
<label>
|
||||||
<i class="filter g-icon">filter_alt</i>
|
<i class="filter g-icon">filter_alt</i>
|
||||||
</label>
|
</label>
|
||||||
<td><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
|
<td class="wf-100"><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
|
||||||
<label for="iItemList-sort-5">
|
<label for="iItemList-sort-5">
|
||||||
<input type="radio" name="iItemList-sort" id="iItemList-sort-5">
|
<input type="radio" name="iItemList-sort" id="iItemList-sort-5">
|
||||||
<i class="sort-asc g-icon">expand_less</i>
|
<i class="sort-asc g-icon">expand_less</i>
|
||||||
|
|
@ -65,18 +65,6 @@ echo $this->data['nav']->render(); ?>
|
||||||
<label>
|
<label>
|
||||||
<i class="filter g-icon">filter_alt</i>
|
<i class="filter g-icon">filter_alt</i>
|
||||||
</label>
|
</label>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
|
|
||||||
<label for="iItemList-sort-7">
|
|
||||||
<input type="radio" name="iItemList-sort" id="iItemList-sort-7">
|
|
||||||
<i class="sort-asc g-icon">expand_less</i>
|
|
||||||
</label>
|
|
||||||
<label for="iItemList-sort-8">
|
|
||||||
<input type="radio" name="iItemList-sort" id="iItemList-sort-8">
|
|
||||||
<i class="sort-desc g-icon">expand_more</i>
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<i class="filter g-icon">filter_alt</i>
|
|
||||||
</label>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||||
$url = UriFactory::build('{/base}/warehouse/labeling/item?id=' . $value->id);
|
$url = UriFactory::build('{/base}/warehouse/labeling/item?id=' . $value->id);
|
||||||
|
|
@ -90,7 +78,6 @@ echo $this->data['nav']->render(); ?>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->content); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->content); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->content); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->content); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name3')->content); ?></a>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user