Skip to content

Commit

Permalink
v2.3.00
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Dec 12, 2024
1 parent 9e303c3 commit 2c3be61
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 30 deletions.
5 changes: 5 additions & 0 deletions Help Desk/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,8 @@
++$count;
$sql[$count][0] = '2.2.01';
$sql[$count][1] = "";

//v2.3.00
++$count;
$sql[$count][0] = '2.3.00';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Help Desk/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v2.3.00
-------
Gibbon v28 support

v2.2.01
-------
Fixed CSS bug introduced in last version
Expand Down
31 changes: 9 additions & 22 deletions Help Desk/issues_discussView.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@
->addParam('issueID', $issueID);
}
} else {
$table->addHeaderAction('refresh', __('Refresh'))
->setIcon('refresh')
->setURL('/modules/' . $session->get('module') . '/issues_discussView.php')
->addParam('issueID', $issueID);

if (($techGroupGateway->getPermissionValue($gibbonPersonID, 'reassignIssue') && !$isPersonsIssue) || $hasFullAccess) {
$table->addHeaderAction('reassign', __('Reassign'))
->setIcon('attendance')
Expand Down Expand Up @@ -172,28 +167,24 @@

if ($isTechnician && !$isPersonsIssue && $settingGateway->getSettingByScope('Help Desk', 'techNotes')) {
$form = Form::create('techNotes', $session->get('absoluteURL') . '/modules/' . $session->get('module') . '/issues_discussNoteProccess.php', 'post');
$form->setAttribute('x-data', '{comments: false, invalid: false, submitting: false}');
$form->addHiddenValue('issueID', $issueID);
$form->addHiddenValue('address', $session->get('address'));

$row = $form->addRow();
$col = $row->addColumn();
$col->addHeading(__('Technician Notes'))->addClass('inline-block');

$col->addWebLink('<img title="'.__('Add Technician Note').'" src="./themes/'.$session->get('gibbonThemeName').'/img/plus.png" />')
->addData('toggle', '.techNote')
->addClass('floatRight');
$col->addButton(__('Add Technician Note'))->setIcon('add')->addClass('float-right')->setAttribute('@click', 'comments = !comments');

$row = $form->addRow()->setClass('techNote hidden flex flex-col sm:flex-row items-stretch sm:items-center');
$row = $form->addRow()->setClass('flex flex-col sm:flex-row items-stretch sm:items-center')->setAttribute('x-cloak')->setAttribute('x-show', 'comments');
$col = $row->addColumn();
$col->addLabel('techNote', __('Technician Note'));
$col->addEditor('techNote', $guid)
->setRows(5)
->showMedia()
->required();

$row = $form->addRow()->setClass('techNote hidden flex flex-col sm:flex-row items-stretch sm:items-center');;
$row->addFooter();
$row->addSubmit();
$col->addSubmit();

$issueNoteGateway = $container->get(IssueNoteGateway::class);
$notes = $issueNoteGateway->getIssueNotesByID($issueID)->fetchAll();
Expand All @@ -212,13 +203,14 @@


$form = Form::create('issueDiscuss', $session->get('absoluteURL') . '/modules/' . $session->get('module') . '/issues_discussPostProccess.php?issueID=' . $issueID, 'post');
$form->setAttribute('x-data', '{comments: false, invalid: false, submitting: false}');
$form->addHiddenValue('address', $session->get('address'));
$row = $form->addRow();
$col = $row->addColumn();
$col->addHeading(__('Comments'))->addClass('inline-block');

if ($issue['status'] == 'Pending' && ($isRelated || $hasFullAccess)) {
$col->addWebLink('<img title="'.__('Add Comment').'" src="./themes/'.$session->get('gibbonThemeName').'/img/plus.png" />')->addData('toggle', '.comment')->addClass('floatRight');
$col->addButton(__('Add Comment'))->setIcon('add')->addClass('float-right')->setAttribute('@click', 'comments = !comments');

if ($isTechnician) {
$replyTemplateGateway = $container->get(ReplyTemplateGateway::class);
Expand All @@ -232,25 +224,20 @@
$templates[$replyTemplate['helpDeskReplyTemplateID']] = $replyTemplate['body'];
}
if ($templates != NULL) {
$row = $form->addRow()->setClass('comment hidden flex flex-col sm:flex-row items-stretch sm:items-center');
$row = $form->addRow()->setClass('flex flex-col sm:flex-row items-stretch sm:items-center')->setAttribute('x-cloak')->setAttribute('x-show', 'comments');
$row->addLabel('replyTemplates', __('Reply Templates'));
$row->addSelect('replyTemplates')
->fromArray($templateNames)->placeholder('Select a Reply Template');
}
}
$row = $form->addRow()->setClass('comment hidden flex flex-col sm:flex-row items-stretch sm:items-center');
$row = $form->addRow()->setClass('flex flex-col sm:flex-row items-stretch sm:items-center')->setAttribute('x-cloak')->setAttribute('x-show', 'comments');
$column = $row->addColumn();
$column->addLabel('comment', __('Comment'));
$column->addEditor('comment', $guid)
->setRows(5)
->showMedia()
->required();

$row = $form->addRow()->setClass('comment hidden flex flex-col sm:flex-row items-stretch sm:items-center');
$row->addFooter();
$row->addSubmit();


$column->addSubmit();

}

Expand Down
2 changes: 1 addition & 1 deletion Help Desk/issues_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
$form->addHiddenValue('q', '/modules/' . $moduleName . '/issues_view.php');
$form->addHiddenValue('address', $session->get('address'));

$form->setClass('noIntBorder fullWidth standardForm');
$form->setClass('noIntBorder w-full standardForm');
$form->setTitle(__('Search & Filter'));

$row = $form->addRow();
Expand Down
4 changes: 2 additions & 2 deletions Help Desk/js/module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Gibbon: the flexible, open school platform
/* Gibbon: the flexible, open school platform
Founded by Ross Parker at ICHK Secondary. Built by Ross Parker, Sandra Kuipers and the Gibbon community (https://gibbonedu.org/about/)
Copyright © 2010, Gibbon Foundation
Gibbon™, Gibbon Education Ltd. (Hong Kong)
Expand All @@ -15,4 +15,4 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
2 changes: 1 addition & 1 deletion Help Desk/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'issues_view.php';
$type = 'Additional';
$category = 'Other';
$version = '2.2.01';
$version = '2.3.00';
$author = "Gibbon Foundation";
$url = "https://gibbonedu.org";

Expand Down
4 changes: 2 additions & 2 deletions Help Desk/tests/_support/AcceptanceTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function deleteDepartment()
$I = $this;
$I->amOnModulePage('Help Desk', 'helpDesk_manageDepartments.php');
$I->click("Delete", "//td[contains(text(),'Test Department')]//..");
$I->click('Yes');
$I->click('Delete');
$I->seeSuccessMessage();
}

Expand All @@ -330,7 +330,7 @@ public function deleteSubcategory($departmentID, $subcategoryID)
{
$I = $this;
$I->click("Delete", "//td[contains(text(),'Test Subcategory')]//..");
$I->click('Yes');
$I->click('Delete');
$I->seeSuccessMessage();
}

Expand Down
4 changes: 2 additions & 2 deletions Help Desk/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Sets version information
*/
$moduleVersion='2.2.01';
$coreVersion = '22.0.00';
$moduleVersion='2.3.00';
$coreVersion = '28.0.00';

?>

0 comments on commit 2c3be61

Please sign in to comment.