|
2 | 2 |
|
3 | 3 | {% block content %} |
4 | 4 |
|
5 | | - <div class="row"> |
6 | | - <div class="col-md-12"> |
| 5 | + <div class="row justify-content-center"> |
| 6 | + <div class="col-lg-8"> |
7 | 7 | {% if status == "success" %} |
8 | | - <div class="alert alert-success" role="alert">✅ News file (<a href="{{ commit_url }}">{{ path }}</a>) created for <strong><a href="{{ pr_url }}">GH-{{ pr_number }}</a></strong></div> |
9 | | - <h3>📜🤖 Blurb it again?</h3> |
| 8 | + <div class="alert alert-success" role="alert">✅ News file (<a href="{{ commit_url }}" class="alert-link">{{ path }}</a>) created for <strong><a href="{{ pr_url }}" class="alert-link">GH-{{ pr_number }}</a></strong></div> |
| 9 | + <p class="h4 mb-3">📜🤖 Blurb it again?</p> |
10 | 10 | {% else %} |
11 | 11 | {% if status == "failure" %} |
12 | | - <div class="alert alert-danger" role="alert">❌ Cannot create news file for <strong><a href="{{ pr_url }}">GH-{{ pr_number }}</a></strong>! Make sure you have access to that PR!</div> |
13 | | - <h3>📜🤖 Blurb it again?</h3> |
| 12 | + <div class="alert alert-danger" role="alert">❌ Cannot create news file for <strong><a href="{{ pr_url }}" class="alert-link">GH-{{ pr_number }}</a></strong>! Make sure you have access to that PR!</div> |
| 13 | + <p class="h4 mb-3">📜🤖 Blurb it again?</p> |
14 | 14 | {% endif %} |
15 | 15 | {% endif %} |
16 | 16 |
|
17 | | - <form action="/add_blurb" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded"> |
18 | | - <input type="hidden" name="csrf" value="{{ csrf }}"> |
19 | | - <div class="mb-3"> |
20 | | - <div class="col form-inline"> |
21 | | - <label for="issue_number" class="form-inline">GH Issue #</label><input type="text" class="form-control form-inline" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="issue_number" name="issue_number" required> |
22 | | - </div> |
23 | | - <div class="col form-inline"> |
24 | | - <small id="issue_number-help" class="form-text text-muted">The CPython GitHub issue number.</small> |
25 | | - </div> |
26 | | - </div> |
27 | | - <div class="mb-3"> |
28 | | - <div class="col form-inline"> |
29 | | - <label for="pr_number" class="form-inline">GH Pull Request #</label><input type="text" class="form-control form-inline" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="pr_number" name="pr_number" required> |
30 | | - </div> |
31 | | - <div class="col form-inline"> |
32 | | - <small id="gh-help" class="form-text text-muted">The CPython GitHub pull request number.</small> |
33 | | - </div> |
34 | | - </div> |
35 | | - <div class="mb-3"> |
36 | | - <div class="col form-inline"> |
37 | | - <label for="section" class="form-inline">Choose an option: </label> |
38 | | - <select id="section" name="section" class="form-control form-inline" required> |
39 | | - <option></option> |
40 | | - <option>Security</option> |
41 | | - <option value="Core_and_Builtins">Core and Builtins</option> |
42 | | - <option>Library</option> |
43 | | - <option>Documentation</option> |
44 | | - <option>Tests</option> |
45 | | - <option>Build</option> |
46 | | - <option>Windows</option> |
47 | | - <option>macOS</option> |
48 | | - <option>iOS</option> |
49 | | - <option>Android</option> |
50 | | - <option>FreeBSD</option> |
51 | | - <option>WASI</option> |
52 | | - <option>Emscripten</option> |
53 | | - <option value="Unsupported_platforms">Unsupported platforms</option> |
54 | | - <option>IDLE</option> |
55 | | - <option value="Tools-Demos">Tools and Demos</option> |
56 | | - <option value="C_API">C API</option> |
57 | | - </select> |
58 | | - </div> |
59 | | - </div> |
60 | | - <div class="mb-3" id="cve-group"> |
61 | | - <div class="col form-inline"> |
62 | | - <label for="cve" class="form-inline">CVE</label><input type="text" class="form-control form-inline" pattern="^(?:[Cc][Vv][Ee]-)?\d{4}-\d{4,}$" maxlength="20" placeholder="CVE-2025-12345" id="cve" name="cve"> |
63 | | - </div> |
64 | | - <div class="col form-inline"> |
65 | | - <small id="cve-help" class="form-text text-muted">Optional. The CVE identifier (CVE-YYYY-NNNN) for this security fix.</small> |
66 | | - </div> |
67 | | - </div> |
68 | | - <div class="mb-3"> |
69 | | - <textarea class="form-control" id="news_entry" name="news_entry" rows="10" placeholder="Write your Misc/NEWS entry below. |
| 17 | + <div class="card shadow-sm"> |
| 18 | + <div class="card-body p-4"> |
| 19 | + <h1 class="h4 card-title mb-4">Add a NEWS entry</h1> |
| 20 | + <form action="/add_blurb" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded"> |
| 21 | + <input type="hidden" name="csrf" value="{{ csrf }}"> |
| 22 | + <div class="row g-3"> |
| 23 | + <div class="col-sm-6"> |
| 24 | + <label for="issue_number" class="form-label">GH Issue #</label> |
| 25 | + <input type="text" class="form-control" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="issue_number" name="issue_number" aria-describedby="issue_number-help" required> |
| 26 | + <div id="issue_number-help" class="form-text">The CPython GitHub issue number.</div> |
| 27 | + </div> |
| 28 | + <div class="col-sm-6"> |
| 29 | + <label for="pr_number" class="form-label">GH Pull Request #</label> |
| 30 | + <input type="text" class="form-control" pattern="^\d{1,6}$" maxlength="6" placeholder="12345" id="pr_number" name="pr_number" aria-describedby="pr_number-help" required> |
| 31 | + <div id="pr_number-help" class="form-text">The CPython GitHub pull request number.</div> |
| 32 | + </div> |
| 33 | + <div class="col-sm-6"> |
| 34 | + <label for="section" class="form-label">Section</label> |
| 35 | + <select id="section" name="section" class="form-select" required> |
| 36 | + <option value="">Choose a section</option> |
| 37 | + <option>Security</option> |
| 38 | + <option value="Core_and_Builtins">Core and Builtins</option> |
| 39 | + <option>Library</option> |
| 40 | + <option>Documentation</option> |
| 41 | + <option>Tests</option> |
| 42 | + <option>Build</option> |
| 43 | + <option>Windows</option> |
| 44 | + <option>macOS</option> |
| 45 | + <option>iOS</option> |
| 46 | + <option>Android</option> |
| 47 | + <option>FreeBSD</option> |
| 48 | + <option>WASI</option> |
| 49 | + <option>Emscripten</option> |
| 50 | + <option value="Unsupported_platforms">Unsupported platforms</option> |
| 51 | + <option>IDLE</option> |
| 52 | + <option value="Tools-Demos">Tools and Demos</option> |
| 53 | + <option value="C_API">C API</option> |
| 54 | + </select> |
| 55 | + </div> |
| 56 | + <div class="col-sm-6" id="cve-group"> |
| 57 | + <label for="cve" class="form-label">CVE</label> |
| 58 | + <input type="text" class="form-control" pattern="^(?:[Cc][Vv][Ee]-)?\d{4}-\d{4,}$" maxlength="20" placeholder="CVE-2025-12345" id="cve" name="cve" aria-describedby="cve-help"> |
| 59 | + <div id="cve-help" class="form-text">Optional. The CVE identifier (CVE-YYYY-NNNN) for this security fix.</div> |
| 60 | + </div> |
| 61 | + <div class="col-12"> |
| 62 | + <label for="news_entry" class="form-label">NEWS entry</label> |
| 63 | + <textarea class="form-control" id="news_entry" name="news_entry" rows="8" placeholder="Write your Misc/NEWS entry below. |
70 | 64 | It should be a simple ReST paragraph. |
71 | 65 | Don't start with '- Issue #<n>: ' or '- gh-issue-<n>: ' or that sort of stuff." required></textarea> |
| 66 | + </div> |
| 67 | + <div class="col-12"> |
| 68 | + <button type="submit" class="btn btn-primary">📜🤖 blurb it!</button> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </form> |
72 | 72 | </div> |
73 | | - <button type="submit" class="btn btn-primary mb-2">📜🤖 blurb it!</button> |
74 | | - </form> |
| 73 | + </div> |
| 74 | + <p class="text-body-secondary small mt-3">Alternatively, you can use <a href="https://devguide.python.org/getting-started/pull-request-lifecycle/#news-entry">blurb on the command line</a>.</p> |
75 | 75 | </div> |
76 | | - <div class="col-md-12">Alternatively, you can use <a href="https://devguide.python.org/getting-started/pull-request-lifecycle/#news-entry">blurb on the command line</a>.</div> |
77 | 76 | </div> |
78 | 77 |
|
79 | 78 | <script> |
|
0 commit comments