Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Added hints to some of the ticket properties on the New Ticket page.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirix committed Apr 28, 2013
1 parent 64ac9d0 commit 4b88c42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vendor/traq/locale/enus.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ public static function locale()
'help.custom_fields.values' => "Options for select, one per line.",
'help.custom_fields.multiple' => "Allows multiple options to be selected.",

// Ticket property hints
'help.milestone' => "The version in which the ticket should be completed for.",
'help.version' => "The version in which the defect was introduced or the version being used.",
'help.component' => "The part of the project the ticket is related to.",
'help.severity' => "How severe the ticket is.",

// Confirmations
'confirm.delete' => "Are you sure you want to delete that?",
'confirm.delete_x' => "Are you sure you want to delete '{1}' ?",
Expand Down
4 changes: 4 additions & 0 deletions vendor/traq/views/default/tickets/new.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,27 @@
<div class="field">
<?php echo Form::label(l('milestone'), 'milestone'); ?>
<?php echo Form::select('milestone', $project->milestone_select_options('open'), array('value' => $ticket->milestone_id)); ?>
<abbr title="<?php echo l('help.milestone'); ?>" class="hint">?</abbr>
</div>
<?php if (current_user()->permission($project->id, 'ticket_properties_set_version')) { ?>
<div class="field">
<?php echo Form::label(l('version'), 'version'); ?>
<?php echo Form::select('version', array_merge(array(array('value' => 0, 'label' => l('none'))), $project->milestone_select_options('all', 'DESC')), array('value' => $ticket->version_id)); ?>
<abbr title="<?php echo l('help.version'); ?>" class="hint">?</abbr>
</div>
<?php } ?>
<?php if (current_user()->permission($project->id, 'ticket_properties_set_component')) { ?>
<div class="field">
<?php echo Form::label(l('component'), 'component'); ?>
<?php echo Form::select('component', array_merge(array(array('value' => 0, 'label' => l('none'))), traq\models\Component::select_options($project->id)), array('value' => $ticket->component_id)); ?>
<abbr title="<?php echo l('help.component'); ?>" class="hint">?</abbr>
</div>
<?php } ?>
<?php if (current_user()->permission($project->id, 'ticket_properties_set_severity')) { ?>
<div class="field">
<?php echo Form::label(l('severity'), 'severity'); ?>
<?php echo Form::select('severity', traq\models\Severity::select_options(), array('value' => $ticket->severity_id)); ?>
<abbr title="<?php echo l('help.severity'); ?>" class="hint">?</abbr>
</div>
<?php } ?>
<?php if (current_user()->permission($project->id, 'ticket_properties_set_priority')) { ?>
Expand Down

0 comments on commit 4b88c42

Please sign in to comment.