\thebuggenie\core\framework\Event::createNew('core', 'project_overview_item_links', $project)->trigger(); if (!$project->isLocked() && $tbg_user->canReportIssues($project)) { ?> <?php echo javascript_link_tag(__('Report an issue'), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $project->getId())) . "', this);", 'class' => 'button button-green button-report-issue righthugging')); ?> <a class="dropper button button-green last lefthugging reportissue_dropdown_button" style="font-size: 0.9em; position: relative;" href="javascript:void(0);">▼</a> <ul id="create_issue_<?php echo $project->getID(); ?> " class="more_actions_dropdown popup_box" style="position: absolute; right: 0; margin-top: 25px; display: none;"> <?php foreach ($project->getIssuetypeScheme()->getReportableIssuetypes() as $issuetype) { ?> <li><?php echo javascript_link_tag(image_tag($issuetype->getIcon() . '_tiny.png') . __($issuetype->getName()), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $project->getId(), 'issuetype' => $issuetype->getKey())) . "', this);")); ?> </li> <?php } ?> </ul> <?php } ?> </nav> <div style="margin-left: 20px; min-height: 26px"> <b class="project_name"><?php echo link_tag(make_url('project_dashboard', array('project_key' => $project->getKey())), '<span id="project_name_span">' . $project->getName() . ($project->usePrefix() ? ' (' . mb_strtoupper($project->getPrefix()) . ')' : '') . '</span>'); ?> </b>
} ?> </select> </dd> </dl> <br style="clear: both;"> <div style="text-align: right; clear: both; padding: 10px 0 0 0;" id="update_step_buttons"> <input type="submit" value="<?php echo __('Update step details'); ?> " name="edit"> <?php echo __('%update_step_details or %cancel', array('%update_step_details' => '', '%cancel' => '')); ?> <b><?php echo javascript_link_tag(__('cancel'), array('onclick' => "\$('step_details_form').toggle();\$('step_details_info').toggle();")); ?> </b> </div> <div style="text-align: right; padding: 10px 0 10px 0; display: none;" id="step_update_indicator"><span style="float: right;"><?php echo image_tag('spinning_16.gif'); ?> </span> <?php echo __('Please wait'); ?> </div> </form> <?php } ?> </div>
echo link_tag(isset($project_url) ? $project_url : $url, image_tag('tab_publish.png', array(), false, 'publish') . \thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle()); ?> <?php } else { ?> <?php echo link_tag($wiki_url, \thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle(), array('target' => 'blank')); ?> <?php } ?> <?php if (count(\thebuggenie\core\entities\Project::getAll())) { ?> <?php echo javascript_link_tag(image_tag('tabmenu_dropdown.png', array('class' => 'menu_dropdown'))); ?> <?php } ?> </div> <?php if (count(\thebuggenie\core\entities\Project::getAll())) { ?> <div id="wiki_dropdown_menu" class="tab_menu_dropdown"> <?php if (\thebuggenie\core\framework\Context::isProjectContext()) { ?> <div class="header"><?php echo \thebuggenie\core\framework\Context::getCurrentProject()->getName(); ?>
if ($role instanceof TBGRole) { ?> <li class="greybox" style="padding: 3px 5px; margin-bottom: 5px;" id="role_<?php echo $role->getID(); ?> _container"> <div class="button-group" style="float: right; margin-right: -3px; margin-top: -1px;"> <?php echo javascript_link_tag(__('Details'), array('onclick' => "TBG.Config.Roles.getPermissions('" . make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'list_permissions')) . "', 'role_{$role->getID()}_permissions_list');", 'class' => 'button button-silver')); ?> <?php if (!TBGContext::isProjectContext() || !$role->isSystemRole()) { ?> <?php echo javascript_link_tag(__('Edit'), array('onclick' => "TBG.Config.Roles.getPermissionsEdit('" . make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'edit')) . "', 'role_{$role->getID()}_permissions_edit');", 'class' => 'button button-silver')); ?> <button class="button button-silver" onclick="TBG.Main.Helpers.Dialog.show('<?php echo __('Delete this role?'); ?> ', '<?php echo __('Do you really want to delete this role?') . '<br>' . __('Users assigned via this role will be unassigned, and depending on other roles their project permissions may be reset.') . '<br><b>' . __('This action cannot be reverted') . '</b>'; ?> ', {yes: {click: function() {TBG.Config.Roles.remove('<?php echo make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'delete')); ?> ', <?php print $role->getID(); ?> );}}, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"><?php echo __('Delete');
} ?> <?php echo link_tag(make_url('client_dashboard', array('client_id' => $client->getID())), image_tag('tab_clients.png') . $client->getName()); ?> <?php } ?> </div> </li> <?php } ?> <?php framework\Event::createNew('core', 'templates/headermainmenu::projectmenulinks', framework\Context::getCurrentProject())->trigger(); ?> </ul> <?php if (framework\Context::isProjectContext() && !framework\Context::getCurrentProject()->isArchived() && !framework\Context::getCurrentProject()->isLocked() && ($tbg_user->canReportIssues() || $tbg_user->canReportIssues(framework\Context::getCurrentProject()->getID()))) { ?> <div class="reportissue_button_container"> <?php echo javascript_link_tag(image_tag('icon-mono-add.png') . __('Report an issue'), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => framework\Context::getCurrentProject()->getId())) . "');", 'class' => 'button button-lightblue', 'id' => 'reportissue_button')); ?> </div> <?php } framework\Event::createNew('core', 'before_header_userinfo')->trigger(); ?> </nav>
<?php if ($milestone instanceof \thebuggenie\core\entities\Milestone) { ?> <div class="milestone_details" id="milestone_details_<?php echo $milestone->getID(); ?> "> <h3> <span id="milestone_name" class="milestone_name"><?php echo $milestone->getName(); ?> </span> <?php echo javascript_link_tag(image_tag('icon_edit.png'), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'milestone', 'project_id' => $milestone->getProject()->getId(), 'milestone_id' => $milestone->getID())) . "');", 'class' => 'button button-icon button-silver')); ?> <br> </h3> <span class="milestone_date"> <?php if ($milestone->getStartingDate() && $milestone->isScheduled()) { ?> (<?php echo tbg_formatTime($milestone->getStartingDate(), 22, true, true); ?> - <?php echo tbg_formatTime($milestone->getScheduledDate(), 22, true, true); ?> ) <?php } elseif ($milestone->getStartingDate() && !$milestone->isScheduled()) {
<li><?php echo link_tag(make_url('publish_article_new'), __('Create new article')); ?> </li> <?php } ?> <?php } ?> <li class="separator"></li> <?php if ($article->canDelete()) { ?> <li><?php echo javascript_link_tag(__('Delete this article'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Please confirm') . "', '" . __('Do you really want to delete this article?') . "', {yes: {click: function () { TBG.Main.deleteArticle('" . make_url('publish_article_delete', array('article_name' => $article->getName())) . "') }}, no: {click: TBG.Main.Helpers.Dialog.dismiss}})")); ?> </li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php }
<?php switch ($notification->getNotificationType()) { case \thebuggenie\modules\vcs_integration\Vcs_integration::NOTIFICATION_COMMIT_MENTIONED: ?> <h1> <time><?php echo tbg_formatTime($notification->getCreatedAt(), 20); ?> </time> <?php echo __('%user_name mentioned you in commit %rev', array('%user_name' => get_component_html('main/userdropdown', array('user' => $notification->getTriggeredByUser())), '%rev' => javascript_link_tag($notification->getTarget()->getRevisionString(), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'vcs_integration_getcommit', 'commit_id' => $notification->getTarget()->getID())) . "');")))); ?> </h1> <div class="notification_content"><?php echo $notification->getTarget()->getLog(); ?> </div> <?php break; }
?> <?php if ($can_remove) { ?> <div class="removelink"> <?php if ($mode == 'issue') { ?> <?php echo javascript_link_tag(image_tag('action_delete.png'), array('id' => $base_id . '_' . $file_id . '_remove_link', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Do you really want to detach this file?') . "', '" . __('If you detach this file, it will be deleted. This action cannot be undone. Are you sure you want to remove this file?') . "', {yes: {click: function() {TBG.Issues.File.remove('" . make_url('issue_detach_file', array('issue_id' => $issue->getID(), 'file_id' => $file_id)) . "', " . $file_id . "); }}, no: { click: TBG.Main.Helpers.Dialog.dismiss }});")); ?> <?php } elseif ($mode == 'article') { ?> <?php echo javascript_link_tag(image_tag('action_delete.png'), array('id' => $base_id . '_' . $file_id . '_remove_link', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Do you really want to detach this file?') . "', '" . __('If you detach this file, it will be deleted. This action cannot be undone. Are you sure you want to remove this file?') . "', {yes: {click: function() {TBG.Main.detachFileFromArticle('" . make_url('article_detach_file', array('article_id' => $article->getID(), 'file_id' => $file_id)) . "', " . $file_id . ", " . $article->getID() . "); }}, no: { click: TBG.Main.Helpers.Dialog.dismiss }});")); ?> <?php } ?> <?php echo image_tag('spinning_16.gif', array('id' => $base_id . '_' . $file_id . '_remove_indicator', 'style' => 'display: none;')); ?> </div> <?php } ?> <div class="upload_details"> <?php echo __('%filename uploaded %date by %username', array('%filename' => '<span class="filename">' . $file->getOriginalFilename() . '</span>', '%date' => tbg_formatTime($file->getUploadedAt(), 23), '%username' => $file->getUploadedBy() instanceof \thebuggenie\core\entities\User ? '<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.show(\'' . make_url('get_partial_for_backdrop', array('key' => 'usercard', 'user_id' => $file->getUploadedBy()->getID())) . '\');" class="faded_out">' . $file->getUploadedBy()->getNameWithUsername() . '</a>' : __('unknown user'))); ?>
if ($issue->isEditable() && $issue->canEditReproductionSteps()) { ?> <div id="reproduction_steps_change" style="display: none;" class="editor_container"> <form id="reproduction_steps_form" action="<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps')); ?> " method="post" onSubmit="TBG.Issues.Field.set('<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps')); ?> ', 'reproduction_steps'); return false;"> <?php include_component('main/textarea', array('area_name' => 'value', 'target_type' => 'issue', 'target_id' => $issue->getID(), 'area_id' => 'reproduction_steps_form_value', 'syntax' => \thebuggenie\core\framework\Settings::getSyntaxClass($issue->getReproductionStepsSyntax()), 'height' => '250px', 'width' => '100%', 'value' => htmlentities($issue->getReproductionSteps(), ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset()))); ?> <div class="textarea_save_container"> <?php echo __('%cancel or %save', array('%save' => '<input class="button button-silver" type="submit" value="' . __('Save') . '">', '%cancel' => javascript_link_tag(__('Cancel'), array('onclick' => "\$('reproduction_steps_change').hide();" . ($issue->getReproductionSteps() != '' ? "\$('reproduction_steps_name').show();" : "\$('no_reproduction_steps').show();") . "return false;")))); ?> </div> </form> <?php echo image_tag('spinning_16.gif', array('style' => 'display: none; float: left; margin-right: 5px;', 'id' => 'reproduction_steps_spinning')); ?> <div id="reproduction_steps_change_error" class="error_message" style="display: none;"></div> </div> <?php } ?> </fieldset> <?php include_component('main/issuemaincustomfields', array('issue' => $issue)); ?>
if ($issue->canEditColor()) { ?> onclick="TBG.Project.Scrum.Story.setColor('<?php echo make_url('project_scrum_story_setcolor', array('project_key' => $issue->getProject()->getKey(), 'story_id' => $issue->getID())); ?> ', <?php echo $issue->getID(); ?> , '<?php echo $color; ?> ', event);" <?php } ?> class="story_color_selector_item" style="background-color: <?php echo $color; ?> ;"> </div> <?php } ?> </div> <br style="clear: both;"> <div style="margin: 5px;"> <?php echo javascript_link_tag(__('%color_list or keep the current color', array('%color_list' => '')), array('onclick' => "\$('color_selector_{$issue->getID()}').toggle()")); ?> </div> </div> <?php }
<li><?php echo javascript_link_tag(__('Delete this user'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Permanently delete this user?') . "', '" . __e('Are you sure you want to remove this user? This will remove the users login data, as well as memberships in (and data in) any scopes the user is a member of.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});")); ?> </li> <?php } elseif ($user->isScopeConfirmed()) { ?> <li><?php echo javascript_link_tag(__('Remove user from this scope'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Remove this user?') . "', '" . __e('Are you sure you want to remove this user from the current scope? The users login is kept, and you can re-add the user later.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});")); ?> </li> <?php } else { ?> <li><?php echo javascript_link_tag(__('Cancel invitation'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Cancel membership in this scope?') . "', '" . __e('If you cancel the invitation to this scope, then this user will be notified and the unconfirmed membership removed from this scope.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});")); ?> </li> <?php } ?> <?php } else { ?> <li class="disabled"><a href="javascript:void(0);" onclick="TBG.Main.Helpers.Message.error('<?php echo __e('This user cannot be removed'); ?> ', '<?php echo __e('This is a system user which cannot be removed'); ?> ');" class="disabled"><?php
echo image_tag('spinning_30.gif'); ?> </div> <div class="project_save_container" id="project_planning_action_strip"> <?php echo javascript_link_tag(__('New milestone'), array('class' => 'button button-silver', 'onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'milestone', 'project_id' => $selected_project->getId())) . "');")); ?> <?php echo image_tag('spinning_16.gif', array('id' => 'retrieve_indicator', 'class' => 'indicator', 'style' => 'display: none;')); ?> <?php echo image_tag('icon-mono-settings.png', array('class' => 'dropper dropdown_link planning_board_settings_gear', 'id' => 'planning_board_settings_gear')); ?> <ul class="more_actions_dropdown popup_box"> <li><?php echo javascript_link_tag(__('Sort milestones'), array('onclick' => "TBG.Project.Planning.toggleMilestoneSorting();")); ?> </li> </ul> </div> <div class="project_save_container" id="milestone-sort-actions"> <button class="button button-silver" id="milestone_sort_toggler_button" onclick="TBG.Project.Planning.toggleMilestoneSorting();"><?php echo __('Done sorting'); ?> </button> </div> <?php } ?> <div id="project_roadmap" style="<?php if (isset($selected_milestone) && $selected_milestone instanceof \thebuggenie\core\entities\Milestone) {
);return false;" id="copy_workflow_scheme_<?php echo $scheme->getID(); ?> _form"> <label for="copy_scheme_<?php echo $scheme->getID(); ?> _new_name"><?php echo __('New name'); ?> </label> <input type="text" name="new_name" id="copy_scheme_<?php echo $scheme->getID(); ?> _new_name" value="<?php echo __('Copy of %old_name', array('%old_name' => addslashes($scheme->getName()))); ?> " style="width: 300px;"> <div style="text-align: right;"> <?php echo image_tag('spinning_16.gif', array('style' => 'margin-right: 5px; display: none;', 'id' => 'copy_workflow_scheme_' . $scheme->getID() . '_indicator')); ?> <?php echo __('%copy_workflow_scheme or %cancel', array('%copy_workflow_scheme' => '<input type="submit" value="' . __('Copy worfklow scheme') . '">', '%cancel' => javascript_link_tag(__('cancel'), array('onclick' => "\$('copy_scheme_{$scheme->getID()}_popup').toggle();")))); ?> </div> </form> </div> </li> <?php }
} else { ?> <div class="project_commits_box"> <div id="commits"> <?php include_component('vcs_integration/projectcommits', array('selected_project' => $selected_project, 'commits' => $commits)); ?> </div> <div class="commits_next"> <input id="commits_offset" value="40" type="hidden"> <?php echo image_tag('spinning_16.gif', array('id' => 'commits_indicator', 'style' => 'display: none; float: left; margin-right: 5px;')); ?> <?php echo javascript_link_tag(__('Show more') . image_tag('action_add_small.png', array('style' => 'float: left; margin-right: 5px;')), array('onclick' => "TBG.Project.Commits.update('" . make_url('vcs_commitspage', array('project_key' => $selected_project->getKey())) . "');", 'id' => 'commits_more_link')); ?> </div> </div> <?php } ?> </div> </div> </div> <div class="project_left_container"> <div class="project_left"> </div> </div> <br style="clear: both;"> </div>
</div> </form> </div> <div id="acl_<?php echo $issue->getID(); ?> _restricted" style="<?php if ($issue->isUnlocked()) { ?> display: none;<?php } ?> "> <h4 style="margin-top: 10px;"> <?php echo javascript_link_tag(__('Add a user or team'), array('onclick' => "\$('popup_find_acl_{$issue->getID()}').toggle();", 'style' => 'float: right;', 'class' => 'button button-silver')); ?> <?php echo __('Users or teams who can see this issue'); ?> </h4> <?php include_component('identifiableselector', array('html_id' => "popup_find_acl_{$issue->getID()}", 'header' => __('Give someone access to this issue'), 'callback' => "TBG.Issues.ACL.addTarget('" . make_url('getacl_formentry', array('identifiable_type' => 'user', 'identifiable_value' => '%identifiable_value')) . "', {$issue->getID()});", 'team_callback' => "TBG.Issues.ACL.addTarget('" . make_url('getacl_formentry', array('identifiable_type' => 'team', 'identifiable_value' => '%identifiable_value')) . "', {$issue->getID()});", 'base_id' => "popup_find_acl_{$issue->getID()}", 'include_teams' => true, 'allow_clear' => false, 'absolute' => true)); ?> <form action="<?php echo make_url('move_issue', array('issue_id' => $issue->getID())); ?> " method="post" onsubmit="TBG.Issues.ACL.set('<?php echo make_url('lock_issue', array('issue_id' => $issue->getID())); ?> ', <?php
?> </a> <?php } else { ?> <?php echo link_tag(make_url('dashboard'), image_tag($tbg_user->getAvatarURL(true), array('alt' => '[avatar]', 'id' => 'header_avatar'), true) . '<span id="header_user_fullname">' . tbg_decodeUTF8($tbg_user->getDisplayName()) . '</span>'); ?> <?php } ?> <?php if (TBGContext::getRouting()->getCurrentRouteName() != 'login_page') { ?> <?php echo javascript_link_tag(image_tag('tabmenu_dropdown.png', array('class' => 'menu_dropdown')), array('onmouseover' => "")); ?> <?php } ?> </div> <?php if (TBGEvent::createNew('core', 'header_usermenu_decider')->trigger()->getReturnValue() !== false) { ?> <?php require THEBUGGENIE_CORE_PATH . 'templates/headerusermenu.inc.php'; ?> <?php } ?> </li>
?> class="selected"<?php } ?> ><?php echo javascript_link_tag(__('Team'), array('onclick' => "TBG.Main.Helpers.tabSwitcher('tab_developers', 'project_config_menu');")); ?> </li> <li id="tab_permissions"<?php if ($selected_tab == 'permissions') { ?> class="selected"<?php } ?> ><?php echo javascript_link_tag(__('Roles and permissions'), array('onclick' => "TBG.Main.Helpers.tabSwitcher('tab_permissions', 'project_config_menu');")); ?> </li> <?php \thebuggenie\core\framework\Event::createNew('core', 'config_project_tabs_other')->trigger(array('selected_tab' => $selected_tab)); ?> </ul> <?php if ($settings_saved) { ?> <script type="text/javascript"> require(['domReady', 'thebuggenie/tbg'], function (domReady, TBG) { domReady(function () { TBG.Main.Helpers.Message.success('<?php echo __('Settings saved'); ?>
<input type="hidden" name="account_id" value="<?php echo $account->getID(); ?> "> <input type="hidden" name="project_id" value="<?php echo $project->getID(); ?> "> <?php } ?> <input type="submit" class="button button-green" style="float: right;" value="<?php echo $account->getId() ? __('Save changes') : __('Add account'); ?> "> <span id="add_account_indicator" style="display: none; float: right;"><?php echo image_tag('spinning_20.gif'); ?> </span> </td> </tr> </table> </form> </div> <div class="backdrop_detail_footer"> <?php echo javascript_link_tag(__('Close popup'), array('onclick' => 'TBG.Main.Helpers.Backdrop.reset();')); ?> </div> </div>
<div class="backdrop_detail_header"><?php echo __('Configure advanced permissions for %username', array('%username' => $user->getNameWithUsername())); ?> </div> <?php include_component('configuration/permissionswarning'); ?> <?php echo image_tag('spinning_16.gif', array('id' => 'permissions_' . $user->getID() . '_indicator', 'style' => 'display: none;')); ?> <div class="backdrop_detail_content config_permissions" id="users_results_user_<?php echo $user->getID(); ?> _permissions"></div> <div class="backdrop_detail_footer"><?php echo javascript_link_tag(__('Close'), array('onclick' => "TBG.Config.User.getPermissionsBlock('" . make_url('configure_permissions_get_configurator', array('user_id' => $user->getID(), 'base_id' => $user->getID())) . "', " . $user->getID() . ");")); ?> </div> </td> </tr> <?php } ?> </tbody> </table> <?php } } if (isset($more_available)) { ?> <script type="text/javascript">
<h3><?php echo __('Import data'); ?> </h3> <div style="margin-top: 15px;" class="tab_menu inset"> <ul id="import_menu"> <li id="tab_csv" class="selected"><?php echo javascript_link_tag(image_tag('cfg_icon_import.png', array('style' => 'float: left; margin-right: 5px;')) . __('CSV'), array('onclick' => "TBG.Main.Helpers.tabSwitcher('tab_csv', 'import_menu');")); ?> </li> <li id="tab_tbg"><?php echo javascript_link_tag(image_tag('logo_24.png', array('style' => 'float: left; margin-right: 5px;')) . __('BUGS 1.x/The Bug Genie 2'), array('onclick' => "TBG.Main.Helpers.tabSwitcher('tab_tbg', 'import_menu');")); ?> </li> <li id="tab_sample"><?php echo javascript_link_tag(image_tag('cfg_icon_generate_sampledata.png', array('style' => 'float: left; margin-right: 5px;')) . __('Sample data'), array('onclick' => "TBG.Main.Helpers.tabSwitcher('tab_sample', 'import_menu');")); ?> </li> </ul> </div> <div id="import_menu_panes"> <div id="tab_csv_pane" style="padding-top: 0;"> <div class="tab_content"> <?php echo __('You can import data from a CSV file copied into a text box in The Bug Genie, exported from other sources. Please see the %CSVImport wiki article for further details and instructions.', array('%CSVImport' => link_tag(make_url('publish_article', array('article_name' => 'CSVImport')), __('CSVImport'), array('target' => '_blank')))); ?> <div id="csv_button_area" class="button-group"> <button class="button" onclick="TBG.Main.Helpers.Backdrop.show('<?php echo make_url('configure_import_csv', array('type' => 'issues')); ?> ');"><?php
?> </a><div class="tooltip rightie"><?php echo __('This action is not available when this issue is closed'); ?> </div></li> <?php } ?> <?php if ($issue->isUpdateable()) { ?> <?php if ($issue->canAddRelatedIssues() && $tbg_user->canReportIssues($issue->getProject())) { ?> <li><?php echo javascript_link_tag(image_tag('icon_new_related_issue.png') . __('Create a new related issue'), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $issue->getProject()->getId(), 'parent_issue_id' => $issue->getID())) . "');", 'title' => __('Create a new child issue'))); ?> </li> <?php } ?> <?php if ($issue->canAddRelatedIssues()) { ?> <li><a href="javascript:void(0)" id="relate_to_existing_issue_button" onclick="TBG.Main.Helpers.Backdrop.show('<?php echo make_url('get_partial_for_backdrop', array('key' => 'relate_issue', 'issue_id' => $issue->getID())); ?> ');"><?php echo image_tag('action_add_related.png') . __('Add an existing issue as a child issue'); ?> </a></li>
?> _delete"> <div class="dropdown_header"><?php echo __('Do you really want to delete this team?'); ?> </div> <div class="dropdown_content"> <?php echo __('If you delete this team, then all users in this team will be disabled until moved to a different team'); ?> <div style="text-align: right;"> <?php echo javascript_link_tag(__('Yes'), array('onclick' => 'deleteTeam(\'' . make_url('configure_users_delete_team', array('team_id' => $team->getID())) . '\', ' . $team->getID() . ');')); ?> :: <b><?php echo javascript_link_tag(__('No'), array('onclick' => '$(\'confirm_team_' . $team->getID() . '_delete\').toggle();')); ?> </b> </div> <table cellpadding=0 cellspacing=0 style="display: none; margin-left: 5px; width: 300px;" id="delete_team_<?php echo $team->getID(); ?> _indicator"> <tr> <td style="width: 20px; padding: 2px;"><?php echo image_tag('spinning_20.gif'); ?> </td> <td style="padding: 0px; text-align: left;"><?php echo __('Deleting team, please wait'); ?>
echo __($a_view); ?> </div> <?php } ?> <?php } ?> </div> </li> </ul> <br style="clear: both;"> <div style="clear: both; margin: 20px auto; text-align: center;"> <?php echo javascript_link_tag(__('Add a view to dashboard'), array('onclick' => "TBG.Main.Dashboard.View.add();", 'class' => 'button button-green')); ?> </div> <div id="save_dashboard" style="text-align: right; padding: 10px;"> <?php echo __("When you're happy, save your changes"); ?> <button onclick="TBG.Main.Dashboard.save('<?php echo make_url('dashboard_save', array('target_type' => $target_type, 'tid' => $tid)); ?> ');" class="button button-silver" style="float: right; margin-left: 10px;"><?php echo __('Save dashboard'); ?> </button> </div> <span id="save_dashboard_indicator" style="display: none;"><?php
echo $template_key; ?> "><?php echo $template_name; ?> </option> <?php } ?> </select> </dd> </dl> </li> </ul> <br style="clear: both;"> <div style="text-align: center; padding: 10px;"> <input type="submit" value="<?php echo __('Add transition'); ?> "> <?php echo __('%add_transition or %cancel', array('%add_transition' => '', '%cancel' => '')); ?> <?php echo javascript_link_tag(__('cancel'), array('onclick' => "\$('step_{$step->getID()}_transition_add').toggle()")); ?> </div> </form> </div> </div>
} ?> > <tr> <td class="project_information_sidebar" id="project_information_sidebar"> <div id="project_header_container"> <?php echo image_tag('sidebar_collapse.png', array('id' => 'project_sidebar_collapse', 'onclick' => "\$('project_information_sidebar').addClassName('collapsed');\$(this).hide();\$('project_sidebar_expand').show();")); ?> <?php echo image_tag('sidebar_expand.png', array('id' => 'project_sidebar_expand', 'style' => 'display: none;', 'onclick' => "\$('project_information_sidebar').removeClassName('collapsed');\$(this).hide();\$('project_sidebar_collapse').show();")); ?> <div> <?php if ($tbg_user->canEditProjectDetails($selected_project)) { echo javascript_link_tag(image_tag('cfg_icon_projectheader.png', array('class' => 'config_link')), array('onclick' => "showFadedBackdrop('" . make_url('get_partial_for_backdrop', array('key' => 'project_config', 'project_id' => $selected_project->getID())) . "');")); } ?> <div id="project_name"> <?php echo image_tag($selected_project->getIcon(), array('class' => 'logo'), $selected_project->hasIcon(), 'core', !$selected_project->hasIcon()); ?> <span id="project_name_span"><?php echo $selected_project->getName(); ?> </span><br> <span id="project_key_span"><?php echo $selected_project->getKey(); ?> </span> </div>
echo __('You cannot delete the last step'); ?> ', '<?php echo __('To delete this step, make sure there are other steps available'); ?> ');"><?php echo __('Delete step'); ?> </a></span><br> <?php } else { ?> <?php echo javascript_link_tag(__('Delete step'), array('onclick' => "\$('step_{$step->getID()}_delete').toggle();")); ?> <br> <?php } ?> <?php echo javascript_link_tag(__('Add transition'), array('onclick' => "\$('step_{$step->getID()}_transition_add').toggle()")); ?> | <?php echo javascript_link_tag(__('Delete outgoing transitions'), array('onclick' => "\$('step_{$step->getID()}_transitions_delete').toggle();")); ?> <?php } ?> </td> </tr>
</li> <?php } elseif ($issue->getIssuetype()->getID() != $board->getTaskIssuetypeID()) { ?> <li><?php echo javascript_link_tag(fa_image_tag('list-alt') . __('Add a new task'), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $issue->getProject()->getId(), 'parent_issue_id' => $issue->getID(), 'issuetype_id' => $board->getTaskIssuetypeID(), 'lock_issuetype' => 1)) . "');", 'title' => __('Add a new task'))); ?> </li> <?php } ?> <?php } else { ?> <li><?php echo javascript_link_tag(fa_image_tag('list-alt') . __('Create a new related issue'), array('onclick' => "TBG.Main.Profile.clearPopupsAndButtons();TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $issue->getProject()->getId(), 'parent_issue_id' => $issue->getID())) . "');", 'title' => __('Create a new child issue'))); ?> </li> <?php } ?> <?php } ?> <?php if ($issue->canAddRelatedIssues()) { ?> <li><a href="javascript:void(0)" id="relate_to_existing_issue_button" onclick="TBG.Main.Profile.clearPopupsAndButtons();TBG.Main.Helpers.Backdrop.show('<?php echo make_url('get_partial_for_backdrop', array('key' => 'relate_issue', 'issue_id' => $issue->getID())); ?> ');"><?php
echo TBGContext::getI18n()->getCharset(); ?> " action="<?php echo make_url('configure_issuetypes_delete_scheme', array('scheme_id' => $scheme->getID())); ?> " onsubmit="TBG.Config.IssuetypeScheme.remove('<?php echo make_url('configure_issuetypes_delete_scheme', array('scheme_id' => $scheme->getID())); ?> ', <?php echo $scheme->getID(); ?> );return false;" id="delete_issuetype_scheme_<?php echo $scheme->getID(); ?> _form"> <div style="text-align: right;"> <?php echo image_tag('spinning_16.gif', array('style' => 'margin-right: 5px; display: none;', 'id' => 'delete_issuetype_scheme_' . $scheme->getID() . '_indicator')); ?> <input type="submit" value="<?php echo __('Yes, delete it'); ?> "><?php echo __('%delete or %cancel', array('%delete' => '', '%cancel' => '<b>' . javascript_link_tag(__('cancel'), array('onclick' => "\$('delete_scheme_{$scheme->getID()}_popup').toggle();")) . '</b>')); ?> </div> </form> </div> </li> <?php }
?> <div class="settings_container"> <?php echo image_tag('icon-mono-settings.png', array('class' => 'dropper dropdown_link')); ?> <ul class="popup_box milestone_moreactions more_actions_dropdown" id="milestone_<?php echo $milestone->getID(); ?> _moreactions" style="display: none;"> <li><?php echo javascript_link_tag(__('Edit'), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'milestone', 'project_id' => $milestone->getProject()->getId(), 'milestone_id' => $milestone->getID())) . "');")); ?> </li> <li class="separator"></li> <li><?php echo javascript_link_tag(__('Delete'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Do you really want to delete this milestone?') . "', '" . __('Removing this milestone will unassign all issues from this milestone and remove it from all available lists. This action cannot be undone.') . "', {yes: {click: function() { TBG.Project.Milestone.remove('" . make_url('project_milestone', array('project_key' => $milestone->getProject()->getKey(), 'milestone_id' => $milestone->getID())) . "', " . $milestone->getID() . "); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss} });")); ?> </li> </ul> </div> <?php } ?> <div class="button-group" style="float: right;"> <?php if ($milestone->getID()) { ?> <?php echo link_tag(make_url('project_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey(), 'search' => true, 'fs[milestone]' => array('o' => '=', 'v' => $milestone->getId()))) . "?sortfields=issues.last_updated=asc", __('Show issues'), array('class' => 'button button-silver', 'title' => __('Show issues'))); ?> <?php