* Copyright 2002-2003, Tim Perdue/GForge, LLC
* Copyright 2010, FusionForge Team
* Copyright 2011, Franck Villaume - Capgemini
- * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012-2014, Franck Villaume - TrivialDev
*
* This file is part of FusionForge. FusionForge is free software;
* you can redistribute it and/or modify it under the terms of the
} else {
$feedback .= _('Tracker created successfully');
$feedback .= '<br/>';
- $feedback .= _('Please configure also the roles (by default, it\'s \'No Access\')');
+ $feedback .= _("Please configure also the roles (by default, it's “No Access”)");
}
$group->normalizeAllRoles () ;
}
}
-
//
// Display existing artifact types
//
</td>
</tr>';
}
- echo $HTML->listTableBottom();
+ echo $HTML->listTableBottom();
+
+ $roadmap_factory = new RoadmapFactory($group);
+ $roadmaps = $roadmap_factory->getRoadmaps(true);
+ if (!empty($roadmaps)) {
+ echo ' <p id="roadmapadminlink">
+ <a href="'.util_make_url('/tracker/admin/?group_id='.$group_id.'&admin_roadmap=1').'" >'._('Manage your roadmaps.').'</a>
+ </p>';
}
+}
- //
- // Set up blank ArtifactType
- //
+//
+// Set up blank ArtifactType
+//
+
+if (forge_check_perm ('tracker_admin', $group->getID())) { ?>
+ <h3><?php echo _('Create a new tracker') ?></h3>
+ <p><?php echo _('You can use this system to track virtually any kind of data, with each tracker having separate user, group, category, and permission lists. You can also easily move items between trackers when needed.') ?></p>
+ <p><?php echo _('Trackers are referred to as “Artifact Types” and individual pieces of data are “Artifacts”. “Bugs” might be an Artifact Type, whiles a bug report would be an Artifact. You can create as many Artifact Types as you want, but remember you need to set up categories, groups, and permission for each type, which can get time-consuming.') ?></p>
- if (forge_check_perm ('tracker_admin', $group->getID())) {
- ?><?php echo _('<h3>Create a new tracker</h3><p>You can use this system to track virtually any kind of data, with each tracker having separate user, group, category, and permission lists. You can also easily move items between trackers when needed.</p><p>Trackers are referred to as "Artifact Types" and individual pieces of data are "Artifacts". "Bugs" might be an Artifact Type, whiles a bug report would be an Artifact. You can create as many Artifact Types as you want, but remember you need to set up categories, groups, and permission for each type, which can get time-consuming.</p>') ?>
<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id; ?>" method="post">
<input type="hidden" name="add_at" value="y" />
<p>
<?php echo _('<strong> Name:</strong> (examples: meeting minutes, test results, RFP Docs)') ?><br />
- <input type="text" name="name" value="" /></p>
+ <input type="text" name="name" value="" required="required" /></p>
<p>
- <strong><?php echo _('Description') ?>:</strong><br />
- <input type="text" name="description" value="" size="50" /></p>
+ <strong><?php echo _('Description')._(':'); ?></strong><br />
+ <input type="text" name="description" value="" size="50" required="required" /></p>
<p>
- <strong><?php echo _('Send email on new submission to address') ?>:</strong><br />
+ <strong><?php echo _('Send email on new submission to address')._(':'); ?></strong><br />
<input type="text" name="email_address" value="" /></p>
<p>
<input type="checkbox" name="email_all" value="1" /> <strong><?php echo _('Send email on all changes') ?></strong></p>
<p>
- <strong><?php echo _('Days till considered overdue') ?>:</strong><br />
+ <strong><?php echo _('Days till considered overdue')._(':'); ?></strong><br />
<input type="text" name="due_period" value="30" /></p>
<p>
- <strong><?php echo _('Days till pending tracker items time out') ?>:</strong><br />
+ <strong><?php echo _('Days till pending tracker items time out')._(':'); ?></strong><br />
<input type="text" name="status_timeout" value="14" /></p>
<p>
- <strong><?php echo _('Free form text for the "submit new item" page') ?>:</strong><br />
+ <strong><?php echo _('Free form text for the “Submit New” page')._(':'); ?></strong><br />
<textarea name="submit_instructions" rows="10" cols="55"></textarea></p>
<p>
- <strong><?php echo _('Free form text for the "browse items" page') ?>:</strong><br />
+ <strong><?php echo _('Free form text for the Browse page')._(':'); ?></strong><br />
<textarea name="browse_instructions" rows="10" cols="55"></textarea></p>
<p>
<input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
</form>
<?php
- }
+}
$atf->footer();