Skip to content

Commit

Permalink
Update impelling > ncarps
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoofus committed Sep 15, 2023
1 parent e8870b6 commit cc14d30
Show file tree
Hide file tree
Showing 30 changed files with 111 additions and 111 deletions.
26 changes: 13 additions & 13 deletions Plugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Impelling\Projects;
<?php namespace Ncarps\Projects;

use Backend;
use System\Classes\PluginBase;
Expand All @@ -18,7 +18,7 @@ public function pluginDetails()
return [
'name' => 'Projects',
'description' => 'Time management for web projects',
'author' => 'Impelling',
'author' => 'Ncarps',
'icon' => 'icon-leaf'
];
}
Expand Down Expand Up @@ -47,7 +47,7 @@ public function registerComponents()
return []; // Remove this line to activate

return [
'Impelling\Projects\Components\MyComponent' => 'myComponent',
'Ncarps\Projects\Components\MyComponent' => 'myComponent',
];
}

Expand All @@ -59,7 +59,7 @@ public function registerPermissions()
return []; // Remove this line to activate

return [
'impelling.projects.some_permission' => [
'ncarps.projects.some_permission' => [
'tab' => 'Projects',
'label' => 'Some permission'
],
Expand All @@ -74,31 +74,31 @@ public function registerNavigation()
return [
'projects' => [
'label' => 'Projects',
'url' => Backend::url('impelling/projects/projects'),
'url' => Backend::url('ncarps/projects/projects'),
'icon' => 'icon-leaf',
'permissions' => ['impelling.projects.*'],
'permissions' => ['ncarps.projects.*'],
'order' => 500,

'sideMenu' => [
'projects' => [
'label' => 'Projects',
'url' => Backend::url('impelling/projects/projects'),
'url' => Backend::url('ncarps/projects/projects'),
'icon' => 'icon-leaf',
'permissions' => ['impelling.projects.*'],
'permissions' => ['ncarps.projects.*'],
'order' => 500,
],
'tasks' => [
'label' => 'Tasks',
'url' => Backend::url('impelling/projects/tasks'),
'url' => Backend::url('ncarps/projects/tasks'),
'icon' => 'icon-leaf',
'permissions' => ['impelling.projects.*'],
'permissions' => ['ncarps.projects.*'],
'order' => 500,
],
'records' => [
'label' => 'Records',
'url' => Backend::url('impelling/projects/records'),
'url' => Backend::url('ncarps/projects/records'),
'icon' => 'icon-leaf',
'permissions' => ['impelling.projects.*'],
'permissions' => ['ncarps.projects.*'],
'order' => 500,
],
]
Expand Down
10 changes: 5 additions & 5 deletions controllers/Projects.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php namespace Impelling\Projects\Controllers;
<?php namespace Ncarps\Projects\Controllers;

use BackendMenu;
use Backend\Classes\Controller;
use Impelling\Projects\Models\Record;
use Impelling\Projects\Models\Project;
use Ncarps\Projects\Models\Record;
use Ncarps\Projects\Models\Project;

/**
* Projects Backend Controller
Expand All @@ -30,7 +30,7 @@ class Projects extends Controller
/**
* @var array required permissions
*/
public $requiredPermissions = ['impelling.projects.projects'];
public $requiredPermissions = ['ncarps.projects.projects'];

/**
* __construct the controller
Expand All @@ -39,7 +39,7 @@ public function __construct()
{
parent::__construct();

BackendMenu::setContext('Impelling.Projects', 'projects', 'projects');
BackendMenu::setContext('Ncarps.Projects', 'projects', 'projects');
}

public function update($projectId = null)
Expand Down
6 changes: 3 additions & 3 deletions controllers/Records.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Impelling\Projects\Controllers;
<?php namespace Ncarps\Projects\Controllers;

use BackendMenu;
use Backend\Classes\Controller;
Expand Down Expand Up @@ -28,7 +28,7 @@ class Records extends Controller
/**
* @var array required permissions
*/
public $requiredPermissions = ['impelling.projects.records'];
public $requiredPermissions = ['ncarps.projects.records'];

/**
* __construct the controller
Expand All @@ -37,6 +37,6 @@ public function __construct()
{
parent::__construct();

BackendMenu::setContext('Impelling.Projects', 'projects', 'records');
BackendMenu::setContext('Ncarps.Projects', 'projects', 'records');
}
}
6 changes: 3 additions & 3 deletions controllers/Tasks.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Impelling\Projects\Controllers;
<?php namespace Ncarps\Projects\Controllers;

use BackendMenu;
use Backend\Classes\Controller;
Expand Down Expand Up @@ -28,7 +28,7 @@ class Tasks extends Controller
/**
* @var array required permissions
*/
public $requiredPermissions = ['impelling.projects.tasks'];
public $requiredPermissions = ['ncarps.projects.tasks'];

/**
* __construct the controller
Expand All @@ -37,6 +37,6 @@ public function __construct()
{
parent::__construct();

BackendMenu::setContext('Impelling.Projects', 'projects', 'tasks');
BackendMenu::setContext('Ncarps.Projects', 'projects', 'tasks');
}
}
2 changes: 1 addition & 1 deletion controllers/projects/_list_toolbar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div data-control="toolbar">
<a
href="<?= Backend::url('impelling/projects/projects/create') ?>"
href="<?= Backend::url('ncarps/projects/projects/create') ?>"
class="btn btn-primary oc-icon-plus">
<?= e(trans('backend::lang.list.create_button', ['name'=>'Project'])) ?>
</a>
Expand Down
14 changes: 7 additions & 7 deletions controllers/projects/config_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
name: Project

# Model Form Field configuration
form: $/impelling/projects/models/project/fields.yaml
form: $/ncarps/projects/models/project/fields.yaml

# Model Class name
modelClass: Impelling\Projects\Models\Project
modelClass: Ncarps\Projects\Models\Project

# Default redirect location
defaultRedirect: impelling/projects/projects
defaultRedirect: ncarps/projects/projects

# Create page
create:
title: backend::lang.form.create_title
redirect: impelling/projects/projects/update/:id
redirectClose: impelling/projects/projects
redirect: ncarps/projects/projects/update/:id
redirectClose: ncarps/projects/projects

# Update page
update:
title: backend::lang.form.update_title
redirect: impelling/projects/projects
redirectClose: impelling/projects/projects
redirect: ncarps/projects/projects
redirectClose: ncarps/projects/projects

# Preview page
preview:
Expand Down
6 changes: 3 additions & 3 deletions controllers/projects/config_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# ===================================

# Model List Column configuration
list: $/impelling/projects/models/project/columns.yaml
list: $/ncarps/projects/models/project/columns.yaml

# Model Class name
modelClass: Impelling\Projects\Models\Project
modelClass: Ncarps\Projects\Models\Project

# List Title
title: Manage Projects

# Link URL for each record
recordUrl: impelling/projects/projects/update/:id
recordUrl: ncarps/projects/projects/update/:id

# Message to display if the list is empty
noRecordsMessage: backend::lang.list.no_records
Expand Down
6 changes: 3 additions & 3 deletions controllers/projects/create.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php Block::put('breadcrumb') ?>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= Backend::url('impelling/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item"><a href="<?= Backend::url('ncarps/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= e($this->pageTitle) ?></li>
</ol>
<?php Block::endPut() ?>
Expand Down Expand Up @@ -33,7 +33,7 @@ class="btn btn-default">
<?= e(trans('backend::lang.form.create_and_close')) ?>
</button>
<span class="btn-text">
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('impelling/projects/projects') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('ncarps/projects/projects') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
</span>
</div>
</div>
Expand All @@ -43,6 +43,6 @@ class="btn btn-default">
<?php else: ?>

<p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('impelling/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
<p><a href="<?= Backend::url('ncarps/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>

<?php endif ?>
4 changes: 2 additions & 2 deletions controllers/projects/preview.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php Block::put('breadcrumb') ?>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= Backend::url('impelling/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item"><a href="<?= Backend::url('ncarps/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= e($this->pageTitle) ?></li>
</ol>
<?php Block::endPut() ?>
Expand All @@ -14,6 +14,6 @@
<?php else: ?>

<p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('impelling/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
<p><a href="<?= Backend::url('ncarps/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>

<?php endif ?>
6 changes: 3 additions & 3 deletions controllers/projects/update.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php Block::put('breadcrumb') ?>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= Backend::url('impelling/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item"><a href="<?= Backend::url('ncarps/projects/projects') ?>">Projects</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= e($this->pageTitle) ?></li>
</ol>
<?php Block::endPut() ?>
Expand Down Expand Up @@ -42,7 +42,7 @@ class="oc-icon-trash-o btn-icon danger pull-right"
data-request-confirm="<?= e(trans('backend::lang.form.confirm_delete')) ?>">
</button>
<span class="btn-text">
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('impelling/projects/projects') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('ncarps/projects/projects') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
</span>
</div>
</div>
Expand All @@ -52,6 +52,6 @@ class="oc-icon-trash-o btn-icon danger pull-right"
<?php else: ?>

<p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('impelling/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
<p><a href="<?= Backend::url('ncarps/projects/projects') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>

<?php endif ?>
2 changes: 1 addition & 1 deletion controllers/records/_list_toolbar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div data-control="toolbar">
<a
href="<?= Backend::url('impelling/projects/records/create') ?>"
href="<?= Backend::url('ncarps/projects/records/create') ?>"
class="btn btn-primary oc-icon-plus">
<?= e(trans('backend::lang.list.create_button', ['name'=>'Record'])) ?>
</a>
Expand Down
14 changes: 7 additions & 7 deletions controllers/records/config_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
name: Record

# Model Form Field configuration
form: $/impelling/projects/models/record/fields.yaml
form: $/ncarps/projects/models/record/fields.yaml

# Model Class name
modelClass: Impelling\Projects\Models\Record
modelClass: Ncarps\Projects\Models\Record

# Default redirect location
defaultRedirect: impelling/projects/records
defaultRedirect: ncarps/projects/records

# Create page
create:
title: backend::lang.form.create_title
redirect: impelling/projects/records/update/:id
redirectClose: impelling/projects/records
redirect: ncarps/projects/records/update/:id
redirectClose: ncarps/projects/records

# Update page
update:
title: backend::lang.form.update_title
redirect: impelling/projects/records
redirectClose: impelling/projects/records
redirect: ncarps/projects/records
redirectClose: ncarps/projects/records

# Preview page
preview:
Expand Down
6 changes: 3 additions & 3 deletions controllers/records/config_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# ===================================

# Model List Column configuration
list: $/impelling/projects/models/record/columns.yaml
list: $/ncarps/projects/models/record/columns.yaml

# Model Class name
modelClass: Impelling\Projects\Models\Record
modelClass: Ncarps\Projects\Models\Record

# List Title
title: Manage Records

# Link URL for each record
recordUrl: impelling/projects/records/update/:id
recordUrl: ncarps/projects/records/update/:id

# Message to display if the list is empty
noRecordsMessage: backend::lang.list.no_records
Expand Down
6 changes: 3 additions & 3 deletions controllers/records/create.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php Block::put('breadcrumb') ?>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= Backend::url('impelling/projects/records') ?>">Records</a></li>
<li class="breadcrumb-item"><a href="<?= Backend::url('ncarps/projects/records') ?>">Records</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= e($this->pageTitle) ?></li>
</ol>
<?php Block::endPut() ?>
Expand Down Expand Up @@ -33,7 +33,7 @@ class="btn btn-default">
<?= e(trans('backend::lang.form.create_and_close')) ?>
</button>
<span class="btn-text">
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('impelling/projects/records') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
<?= e(trans('backend::lang.form.or')) ?> <a href="<?= Backend::url('ncarps/projects/records') ?>"><?= e(trans('backend::lang.form.cancel')) ?></a>
</span>
</div>
</div>
Expand All @@ -43,6 +43,6 @@ class="btn btn-default">
<?php else: ?>

<p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('impelling/projects/records') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
<p><a href="<?= Backend::url('ncarps/projects/records') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>

<?php endif ?>
4 changes: 2 additions & 2 deletions controllers/records/preview.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php Block::put('breadcrumb') ?>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= Backend::url('impelling/projects/records') ?>">Records</a></li>
<li class="breadcrumb-item"><a href="<?= Backend::url('ncarps/projects/records') ?>">Records</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= e($this->pageTitle) ?></li>
</ol>
<?php Block::endPut() ?>
Expand All @@ -14,6 +14,6 @@
<?php else: ?>

<p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('impelling/projects/records') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>
<p><a href="<?= Backend::url('ncarps/projects/records') ?>" class="btn btn-default"><?= e(trans('backend::lang.form.return_to_list')) ?></a></p>

<?php endif ?>
Loading

0 comments on commit cc14d30

Please sign in to comment.