-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_ticket.php
executable file
·37 lines (32 loc) · 1.54 KB
/
new_ticket.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
function display_new_ticket_form() {
global $repo, $orgrepo;
global $gh_username;
global $forum_url, $context, $memberContext;
$page = $repo . '/issues';
if ($context['user']['is_logged']) {
echo '<form method="post" action="post.php">';
echo '<div id="issueheader"><div id="issueavatar">';
echo $context['user']['avatar']['image'];
echo '</div><div id="issueinfo">';
echo '<h1 style="padding: 2px 0;"><div style="float:left">Title:</div> ';
echo '<div style="margin-left:72px; margin-right:100px;">'
. '<input type="text" name="title" style="width:100%" placeholder="A succinct title for your issue or suggestion"/>'
. '</div></h1>';
echo '<div style="float:left;">Labels:</div><div style="margin-left:56px; margin-right:100px;">'
. '<input type="text" name="labels" style="width:100%" placeholder="Comma separated; eg, Parser, Event System, Compile Error"/></div>';
echo '<hr/></div></div>';
echo '<div style="display:block; clear:both; padding-top: 12px;">';
include('editorbuttons.php');
echo '<input type="submit" value="Post issue" style="float:right">';
echo '<br/>';
echo '<textarea name="body" id="commentfield" style="width: 100%" rows="15" '
. 'placeholder="Enter a description of your issue or suggestion here. Be thorough first, and brief second."'
. '></textarea>';
echo '</div>';
}
else {
echo 'Please sign in to post comments; or you can <a href="https://github.com/' . $orgrepo . '/issues/">view these issues on GitHub</a>.';
}
}
?>