From b8fa0246803dab40cf57d40b45984c53046f2d55 Mon Sep 17 00:00:00 2001 From: "Dzial Techniczny WMW Projekt s.c" Date: Tue, 10 Dec 2019 11:34:53 +0100 Subject: Plugins directory and local modifications --- .../Template/action_creation/params.php | 73 +++++++++++++++++ plugins/Group_assign/Template/board/filter.php | 12 +++ plugins/Group_assign/Template/board/group.php | 7 ++ plugins/Group_assign/Template/board/multi.php | 5 ++ plugins/Group_assign/Template/config/toggle.php | 4 + .../Group_assign/Template/header/user_dropdown.php | 46 +++++++++++ plugins/Group_assign/Template/task/changes.php | 92 ++++++++++++++++++++++ plugins/Group_assign/Template/task/details.php | 10 +++ plugins/Group_assign/Template/task/multi.php | 6 ++ .../Group_assign/Template/task_creation/show.php | 50 ++++++++++++ .../Template/task_modification/show.php | 43 ++++++++++ 11 files changed, 348 insertions(+) create mode 100644 plugins/Group_assign/Template/action_creation/params.php create mode 100644 plugins/Group_assign/Template/board/filter.php create mode 100644 plugins/Group_assign/Template/board/group.php create mode 100644 plugins/Group_assign/Template/board/multi.php create mode 100644 plugins/Group_assign/Template/config/toggle.php create mode 100644 plugins/Group_assign/Template/header/user_dropdown.php create mode 100644 plugins/Group_assign/Template/task/changes.php create mode 100644 plugins/Group_assign/Template/task/details.php create mode 100644 plugins/Group_assign/Template/task/multi.php create mode 100644 plugins/Group_assign/Template/task_creation/show.php create mode 100644 plugins/Group_assign/Template/task_modification/show.php (limited to 'plugins/Group_assign/Template') diff --git a/plugins/Group_assign/Template/action_creation/params.php b/plugins/Group_assign/Template/action_creation/params.php new file mode 100644 index 00000000..0506007b --- /dev/null +++ b/plugins/Group_assign/Template/action_creation/params.php @@ -0,0 +1,73 @@ + + +
+ form->csrf() ?> + + form->hidden('event_name', $values) ?> + form->hidden('action_name', $values) ?> + + form->label(t('Action'), 'action_name') ?> + form->select('action_name', $available_actions, $values, array(), array('disabled')) ?> + + form->label(t('Event'), 'event_name') ?> + form->select('event_name', $events, $values, array(), array('disabled')) ?> + + $param_desc): ?> + text->contains($param_name, 'column_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $columns_list, $values) ?> + text->contains($param_name, 'user_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $users_list, $values) ?> + text->contains($param_name, 'group_id')): ?> + model->projectGroupRoleModel->getGroups($values['project_id']); ?> + + + + + + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $groupvalues, $values) ?> + text->contains($param_name, 'check_box')): ?> + form->label(t('Options'), $param_name) ?> + form->checkbox('params['.$param_name.']', $param_desc, 1) ?> + text->contains($param_name, 'project_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $projects_list, $values) ?> + text->contains($param_name, 'color_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $colors_list, $values) ?> + text->contains($param_name, 'category_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $categories_list, $values) ?> + text->contains($param_name, 'link_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $links_list, $values) ?> + + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $priorities_list, $values) ?> + text->contains($param_name, 'duration')): ?> + form->label($param_desc, $param_name) ?> + form->number('params['.$param_name.']', $values) ?> + text->contains($param_name, 'swimlane_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $swimlane_list, $values) ?> + + form->label(ucfirst($param_name), $param_name) ?> + form->select('params['.$param_name.']', $param_desc, $values) ?> + text->contains($param_name, 'multitasktitles')): ?> + form->label($param_desc, $param_name) ?> + form->textarea('params['.$param_name.']', $values) ?> +
+ +
+ + form->label($param_desc, $param_name) ?> + form->text('params['.$param_name.']', $values) ?> + + + + modal->submitButtons() ?> +
diff --git a/plugins/Group_assign/Template/board/filter.php b/plugins/Group_assign/Template/board/filter.php new file mode 100644 index 00000000..322c483f --- /dev/null +++ b/plugins/Group_assign/Template/board/filter.php @@ -0,0 +1,12 @@ + + +
+ + \ No newline at end of file diff --git a/plugins/Group_assign/Template/board/group.php b/plugins/Group_assign/Template/board/group.php new file mode 100644 index 00000000..6ac95c1f --- /dev/null +++ b/plugins/Group_assign/Template/board/group.php @@ -0,0 +1,7 @@ + + + + text->e($task['assigned_groupname'] ?: $task['owner_gp']) ?> +
+ +
diff --git a/plugins/Group_assign/Template/board/multi.php b/plugins/Group_assign/Template/board/multi.php new file mode 100644 index 00000000..46084b5f --- /dev/null +++ b/plugins/Group_assign/Template/board/multi.php @@ -0,0 +1,5 @@ + 0 && count($this->task->multiselectMemberModel->getMembers($task['owner_ms'])) > 0) : ?> + + helper->smallAvatarHelperExtend->miniMultiple($task['owner_ms'], 'avatar-inline') ?> +
+ diff --git a/plugins/Group_assign/Template/config/toggle.php b/plugins/Group_assign/Template/config/toggle.php new file mode 100644 index 00000000..801a6a26 --- /dev/null +++ b/plugins/Group_assign/Template/config/toggle.php @@ -0,0 +1,4 @@ +
+ form->radio('enable_am_group_management', 'Enable Group Managment for Application Managers' , 1, isset($values['enable_am_group_management'])&& $values['enable_am_group_management']==1) ?> + form->radio('enable_am_group_management', 'Disable Group Managment for Application Managers' , 2, isset($values['enable_am_group_management'])&& $values['enable_am_group_management']==2) ?> +
diff --git a/plugins/Group_assign/Template/header/user_dropdown.php b/plugins/Group_assign/Template/header/user_dropdown.php new file mode 100644 index 00000000..e3a38787 --- /dev/null +++ b/plugins/Group_assign/Template/header/user_dropdown.php @@ -0,0 +1,46 @@ + diff --git a/plugins/Group_assign/Template/task/changes.php b/plugins/Group_assign/Template/task/changes.php new file mode 100644 index 00000000..7a0d2720 --- /dev/null +++ b/plugins/Group_assign/Template/task/changes.php @@ -0,0 +1,92 @@ + + + + +

+ +
text->markdown($task['description'], true) ?>
+ +
text->markdown($task['description']) ?>
+ + + diff --git a/plugins/Group_assign/Template/task/details.php b/plugins/Group_assign/Template/task/details.php new file mode 100644 index 00000000..907739bc --- /dev/null +++ b/plugins/Group_assign/Template/task/details.php @@ -0,0 +1,10 @@ +
  • + + + + text->e($task['assigned_groupname'] ?: $task['owner_gp']) ?> + + + + +
  • diff --git a/plugins/Group_assign/Template/task/multi.php b/plugins/Group_assign/Template/task/multi.php new file mode 100644 index 00000000..5c1fcfb0 --- /dev/null +++ b/plugins/Group_assign/Template/task/multi.php @@ -0,0 +1,6 @@ + 0 && count($this->task->multiselectMemberModel->getMembers($task['owner_ms'])) > 0) : ?> +
  • + +
  • + helper->smallAvatarHelperExtend->smallMultiple($task['owner_ms'], 'avatar-inline') ?> + diff --git a/plugins/Group_assign/Template/task_creation/show.php b/plugins/Group_assign/Template/task_creation/show.php new file mode 100644 index 00000000..81f610a8 --- /dev/null +++ b/plugins/Group_assign/Template/task_creation/show.php @@ -0,0 +1,50 @@ + +
    + form->csrf() ?> + +
    +
    + task->renderTitleField($values, $errors) ?> + task->renderDescriptionField($values, $errors) ?> + task->renderDescriptionTemplateDropdown($project['id']) ?> + task->renderTagField($project) ?> + + hook->render('template:task:form:first-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + task->renderColorField($values) ?> + task->renderAssigneeField($users_list, $values, $errors) ?> + helper->newTaskHelper->renderGroupField($values, $errors) ?> + helper->newTaskHelper->renderMultiAssigneeField($users_list, $values) ?> + task->renderCategoryField($categories_list, $values, $errors) ?> + task->renderSwimlaneField($swimlanes_list, $values, $errors) ?> + task->renderColumnField($columns_list, $values, $errors) ?> + task->renderPriorityField($project, $values) ?> + + hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + task->renderDueDateField($values, $errors) ?> + task->renderStartDateField($values, $errors) ?> + task->renderTimeEstimatedField($values, $errors) ?> + task->renderTimeSpentField($values, $errors) ?> + task->renderScoreField($values, $errors) ?> + task->renderReferenceField($values, $errors) ?> + + hook->render('template:task:form:third-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + + form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?> + form->checkbox('duplicate_multiple_projects', t('Duplicate to multiple projects'), 1) ?> + + + modal->submitButtons() ?> +
    +
    +
    diff --git a/plugins/Group_assign/Template/task_modification/show.php b/plugins/Group_assign/Template/task_modification/show.php new file mode 100644 index 00000000..31599ef6 --- /dev/null +++ b/plugins/Group_assign/Template/task_modification/show.php @@ -0,0 +1,43 @@ + +
    + form->csrf() ?> + +
    +
    + task->renderTitleField($values, $errors) ?> + task->renderDescriptionField($values, $errors) ?> + task->renderDescriptionTemplateDropdown($project['id']) ?> + task->renderTagField($project, $tags) ?> + + hook->render('template:task:form:first-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + task->renderColorField($values) ?> + task->renderAssigneeField($users_list, $values, $errors) ?> + helper->newTaskHelper->renderGroupField($values, $errors) ?> + helper->newTaskHelper->renderMultiAssigneeField($users_list, $values) ?> + task->renderCategoryField($categories_list, $values, $errors) ?> + task->renderPriorityField($project, $values) ?> + + hook->render('template:task:form:second-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + task->renderDueDateField($values, $errors) ?> + task->renderStartDateField($values, $errors) ?> + task->renderTimeEstimatedField($values, $errors) ?> + task->renderTimeSpentField($values, $errors) ?> + task->renderScoreField($values, $errors) ?> + task->renderReferenceField($values, $errors) ?> + + hook->render('template:task:form:third-column', array('values' => $values, 'errors' => $errors)) ?> +
    + +
    + modal->submitButtons() ?> +
    +
    +
    -- cgit v1.2.3