Example Reports Summary section report

This is an example report using the summary-section template

Contents

    <div class="govuk-width-container">
      <div class="govuk-width-container report-list-container">
    
        <div class="dpr-reports-heading-container govuk-!-margin-top-5">
    
          <div class="dpr-report-header">
    
            <div class="dpr-report-heading__actions">
    
              <div class="report-actions" data-dpr-module='report-actions'>
                <div class="moj-button-menu"></div>
    
                <div class="dpr-display-none">
    
                </div>
              </div>
    
            </div>
    
            <div class="dpr-report-heading">
              <div class="dpr-report-heading__title">
                <span class="govuk-caption-l">C Test Report</span>
                <h1 class="govuk-heading-l">
                  Sectioned Summaries template
                </h1>
              </div>
            </div>
    
            <div id="dpr-download-message" class="dpr-download-message--hidden govuk-!-margin-bottom-6" data-dpr-module='download-message'>
              <article class="moj-ticket-panel" aria-label="Sub navigation 1">
    
                <section class="moj-ticket-panel__content moj-ticket-panel__content--blue" aria-label="Section 1">
                  <h2 class="govuk-heading-m">To download this report</h2>
                  <p><a href="/download/test-report-3/variantId-29/tblId_1747314574674/feedback?reportUrl=/async/report/test-report-3/variantId-29/request/tblId_1747314574674/report" class="govuk-link govuk-link--no-visited-state">Fill out a form</a>, which will take about 1 minute to complete.</p>
                  <p>You can then download the report whenever you need it.</p>
                </section>
    
              </article>
    
            </div>
    
            <details class="govuk-details dpr-meta-data-details">
              <summary class="govuk-details__summary">
                <span class="govuk-details__summary-text">
                  Report details
                </span>
              </summary>
              <div class="govuk-details__text">
    
                <div class="dpr-request-details">
    
                  <table class="dpr-request-details__table">
                    <tbody>
    
                      <tr>
                        <td class="dpr-request-details__table-heading">
                          <p class="govuk-body-m dpr-request-details__table-heading_name">Name:</p>
                        </td>
                        <td>
                          <h1 class="govuk-heading-s govuk-!-margin-bottom-0">Sectioned Summaries template</h1>
                        </td>
                      </tr>
    
                      <tr>
                        <td class="dpr-request-details__table-heading">
                          <p class="govuk-body-m dpr-request-details__table-heading_name">Product:</p>
                        </td>
                        <td>
                          <h1 class="govuk-heading-s govuk-!-margin-bottom-0">C Test Report</h1>
                        </td>
                      </tr>
    
                      <tr>
                        <td class="dpr-request-details__table-heading">
                          <p class="govuk-body-m dpr-request-details__table-heading_name">Description:</p>
                        </td>
                        <td>
                          <p class="govuk-body-m govuk-!-margin-bottom-0">A report with summaries in sections, but no list.</p>
                        </td>
                      </tr>
    
                      <tr>
                        <td class="dpr-request-details__table-heading">
                          <p class="govuk-body-m dpr-request-details__table-heading_name">Classification:</p>
                        </td>
                        <td>
                          <p class="govuk-body-m govuk-!-margin-bottom-0">OFFICIAL</p>
                        </td>
                      </tr>
    
                      <tr>
                        <td class="dpr-request-details__table-heading">
                          <p class="govuk-body-m dpr-request-details__table-heading_name">Requested at:</p>
                        </td>
                        <td>
                          <p class="govuk-body-m govuk-!-margin-bottom-0">15/05/2025, 14:09:35</p>
                        </td>
                      </tr>
    
                    </tbody>
                  </table>
                </div>
    
              </div>
            </details>
    
            <div class="dpr-report-details-print">
    
              <div class="dpr-request-details">
    
                <table class="dpr-request-details__table">
                  <tbody>
    
                    <tr>
                      <td class="dpr-request-details__table-heading">
                        <p class="govuk-body-m dpr-request-details__table-heading_name">Name:</p>
                      </td>
                      <td>
                        <h1 class="govuk-heading-s govuk-!-margin-bottom-0">Sectioned Summaries template</h1>
                      </td>
                    </tr>
    
                    <tr>
                      <td class="dpr-request-details__table-heading">
                        <p class="govuk-body-m dpr-request-details__table-heading_name">Product:</p>
                      </td>
                      <td>
                        <h1 class="govuk-heading-s govuk-!-margin-bottom-0">C Test Report</h1>
                      </td>
                    </tr>
    
                    <tr>
                      <td class="dpr-request-details__table-heading">
                        <p class="govuk-body-m dpr-request-details__table-heading_name">Description:</p>
                      </td>
                      <td>
                        <p class="govuk-body-m govuk-!-margin-bottom-0">A report with summaries in sections, but no list.</p>
                      </td>
                    </tr>
    
                    <tr>
                      <td class="dpr-request-details__table-heading">
                        <p class="govuk-body-m dpr-request-details__table-heading_name">Classification:</p>
                      </td>
                      <td>
                        <p class="govuk-body-m govuk-!-margin-bottom-0">OFFICIAL</p>
                      </td>
                    </tr>
    
                    <tr>
                      <td class="dpr-request-details__table-heading">
                        <p class="govuk-body-m dpr-request-details__table-heading_name">Requested at:</p>
                      </td>
                      <td>
                        <p class="govuk-body-m govuk-!-margin-bottom-0">15/05/2025, 14:09:35</p>
                      </td>
                    </tr>
    
                  </tbody>
                </table>
              </div>
    
            </div>
    
            <div class="dpr-report-interactive-actions">
    
            </div>
          </div>
    
        </div>
    
        <div class="report-template-container  ">
    
          <div class="dpr-report-totals">
            <p class="govuk-body"></p>
          </div>
    
          <div class='dpr-table-container dpr-table-container--summary-section'>
    
            <div id="table-container" class='dpr-table-container' data-dpr-module="data-table">
              <div class="dpr-overflow-gradient" id="dpr-overflow-gradient"></div>
              <div class="dpr-table-wrapper" id="dpr-table-wrapper">
                <table class="govuk-table" id="dpr-data-table" data-classification="" data-col-length="0">
    
                  <tbody class="govuk-table__body">
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header">
                        <h2 class="govuk-heading-m">First: One, Second: A</h2>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer-bottom"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-summary-cell">
                        <div class='dpr-summary-container-group dpr-summary-container-group-section-footer'>
                          <div class='dpr-summary-container'>
                            <table class='govuk-table'>
                              <thead class='govuk-table__head'>
                                <th scope='col' class='govuk-table__header'>Field 1</th>
                                <th scope='col' class='govuk-table__header'>Field 2</th>
                                <th scope='col' class='govuk-table__header'>Field 3</th>
                                <th scope='col' class='govuk-table__header'>Field 4</th>
                              </thead>
                              <tbody class='govuk-table__body'>
                                <tr class='govuk-table__row'>
                                  <td class='govuk-table__cell govuk-table__cell--string '>Section One A Header</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>1</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>12219380923</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>4 Freds</td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                          <div class='dpr-summary-container'>
                            <table class='govuk-table'>
                              <thead class='govuk-table__head'>
                                <th scope='col' class='govuk-table__header'>Field 1</th>
                                <th scope='col' class='govuk-table__header'>Field 2</th>
                                <th scope='col' class='govuk-table__header'>Field 3</th>
                                <th scope='col' class='govuk-table__header'>Field 4</th>
                              </thead>
                              <tbody class='govuk-table__body'>
                                <tr class='govuk-table__row'>
                                  <td class='govuk-table__cell govuk-table__cell--string '>Section One A Footer</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>1</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>12219380923</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>6 Freds</td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                        </div>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header">
                        <h2 class="govuk-heading-m">First: One, Second: B</h2>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer-bottom"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-summary-cell">
                        <div class='dpr-summary-container-group dpr-summary-container-group-section-footer'>
                          <div class='dpr-summary-container'>
                            <table class='govuk-table'>
                              <thead class='govuk-table__head'>
                                <th scope='col' class='govuk-table__header'>Field 1</th>
                                <th scope='col' class='govuk-table__header'>Field 2</th>
                                <th scope='col' class='govuk-table__header'>Field 3</th>
                                <th scope='col' class='govuk-table__header'>Field 4</th>
                              </thead>
                              <tbody class='govuk-table__body'>
                                <tr class='govuk-table__row'>
                                  <td class='govuk-table__cell govuk-table__cell--string '>Section One B Footer</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>1</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>12219380923</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>7 Freds</td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                        </div>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header">
                        <h2 class="govuk-heading-m">First: Two, Second: A</h2>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer-bottom"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-summary-cell">
                        <div class='dpr-summary-container-group dpr-summary-container-group-section-footer'>
                          <div class='dpr-summary-container'>
                            <table class='govuk-table'>
                              <thead class='govuk-table__head'>
                                <th scope='col' class='govuk-table__header'>Field 1</th>
                                <th scope='col' class='govuk-table__header'>Field 2</th>
                                <th scope='col' class='govuk-table__header'>Field 3</th>
                                <th scope='col' class='govuk-table__header'>Field 4</th>
                              </thead>
                              <tbody class='govuk-table__body'>
                                <tr class='govuk-table__row'>
                                  <td class='govuk-table__cell govuk-table__cell--string '>Section Two A Header</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>1</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>12219380923</td>
                                  <td class='govuk-table__cell govuk-table__cell--string '>5 Freds</td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                        </div>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer"></td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header">
                        <h2 class="govuk-heading-m">First: Two, Second: B</h2>
                      </td>
    
                    </tr>
    
                    <tr class="govuk-table__row">
    
                      <td class="govuk-table__cell dpr-section-header-spacer-bottom"></td>
    
                    </tr>
    
                  </tbody>
                </table>
    
              </div>
            </div>
    
          </div>
    
          <div class='govuk-!-margin-bottom-6'>
    
            <div class="dpr-report-totals">
              <p class="govuk-body"></p>
            </div>
    
          </div>
    
        </div>
    
      </div>
    </div>
    

    
    {%- from "dpr/components/_reports/report-wrapper/view.njk" import dprReportWrapper -%}
    
    {% set data = {
      "columns": {
        "name": "columns",
        "options": [],
        "text": "Select report columns",
        "value": []
      },
      "filterData": {
        "filters": [],
        "selectedFilters": []
      },
      "count": 100,
      "csrfToken": "csrfToken",
      "classification": "OFFICIAL",
      "template": "summary-section",
      "loadType": "async",
      "type": "report",
      "actions": [],
      "canDownload": false,
      "printable": true,
      "reportName": "C Test Report",
      "name": "Sectioned Summaries template",
      "description": "A report with summaries in sections, but no list.",
      "requestedTimestamp": "15/05/2025, 14:09:35",
      "reportId": "test-report-3",
      "tableId": "tblId_1747314574674",
      "id": "variantId-29",
      "executionId": "exId_1747314574674",
      "querySummary": [],
      "requestUrl": {
        "fullUrl": "http://localhost:3010/async/report/test-report-3/variantId-29/request",
        "pathname": "/async/report/test-report-3/variantId-29/request",
        "search": ""
      },
      "reportUrl": "/async/report/test-report-3/variantId-29/request/tblId_1747314574674/report",
      "reportSearch": null,
      "search": null,
      "pathname": "/async/report/test-report-3/variantId-29/request/tblId_1747314574674/report",
      "reportSummaries": {},
      "dataTable": [{
        "head": null,
        "rows": [
          [
            {
              "classes": "dpr-section-header",
              "colspan": 0,
              "html": "<h2 class=\"govuk-heading-m\">First: One, Second: A</h2>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer-bottom",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-summary-cell",
              "colspan": 0,
              "html": "<div class='dpr-summary-container-group dpr-summary-container-group-section-footer'><div class='dpr-summary-container'><table class='govuk-table'><thead class='govuk-table__head'><th scope='col' class='govuk-table__header'>Field 1</th><th scope='col' class='govuk-table__header'>Field 2</th><th scope='col' class='govuk-table__header'>Field 3</th><th scope='col' class='govuk-table__header'>Field 4</th></thead><tbody class='govuk-table__body'><tr class='govuk-table__row'><td class='govuk-table__cell govuk-table__cell--string '>Section One A Header</td><td class='govuk-table__cell govuk-table__cell--string '>1</td><td class='govuk-table__cell govuk-table__cell--string '>12219380923</td><td class='govuk-table__cell govuk-table__cell--string '>4 Freds</td></tr></tbody></table></div><div class='dpr-summary-container'><table class='govuk-table'><thead class='govuk-table__head'><th scope='col' class='govuk-table__header'>Field 1</th><th scope='col' class='govuk-table__header'>Field 2</th><th scope='col' class='govuk-table__header'>Field 3</th><th scope='col' class='govuk-table__header'>Field 4</th></thead><tbody class='govuk-table__body'><tr class='govuk-table__row'><td class='govuk-table__cell govuk-table__cell--string '>Section One A Footer</td><td class='govuk-table__cell govuk-table__cell--string '>1</td><td class='govuk-table__cell govuk-table__cell--string '>12219380923</td><td class='govuk-table__cell govuk-table__cell--string '>6 Freds</td></tr></tbody></table></div></div>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-section-header",
              "colspan": 0,
              "html": "<h2 class=\"govuk-heading-m\">First: One, Second: B</h2>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer-bottom",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-summary-cell",
              "colspan": 0,
              "html": "<div class='dpr-summary-container-group dpr-summary-container-group-section-footer'><div class='dpr-summary-container'><table class='govuk-table'><thead class='govuk-table__head'><th scope='col' class='govuk-table__header'>Field 1</th><th scope='col' class='govuk-table__header'>Field 2</th><th scope='col' class='govuk-table__header'>Field 3</th><th scope='col' class='govuk-table__header'>Field 4</th></thead><tbody class='govuk-table__body'><tr class='govuk-table__row'><td class='govuk-table__cell govuk-table__cell--string '>Section One B Footer</td><td class='govuk-table__cell govuk-table__cell--string '>1</td><td class='govuk-table__cell govuk-table__cell--string '>12219380923</td><td class='govuk-table__cell govuk-table__cell--string '>7 Freds</td></tr></tbody></table></div></div>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-section-header",
              "colspan": 0,
              "html": "<h2 class=\"govuk-heading-m\">First: Two, Second: A</h2>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer-bottom",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-summary-cell",
              "colspan": 0,
              "html": "<div class='dpr-summary-container-group dpr-summary-container-group-section-footer'><div class='dpr-summary-container'><table class='govuk-table'><thead class='govuk-table__head'><th scope='col' class='govuk-table__header'>Field 1</th><th scope='col' class='govuk-table__header'>Field 2</th><th scope='col' class='govuk-table__header'>Field 3</th><th scope='col' class='govuk-table__header'>Field 4</th></thead><tbody class='govuk-table__body'><tr class='govuk-table__row'><td class='govuk-table__cell govuk-table__cell--string '>Section Two A Header</td><td class='govuk-table__cell govuk-table__cell--string '>1</td><td class='govuk-table__cell govuk-table__cell--string '>12219380923</td><td class='govuk-table__cell govuk-table__cell--string '>5 Freds</td></tr></tbody></table></div></div>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer",
              "colspan": 0,
              "text": ""
            }
          ],
          [
            {
              "classes": "dpr-section-header",
              "colspan": 0,
              "html": "<h2 class=\"govuk-heading-m\">First: Two, Second: B</h2>"
            }
          ],
          [
            {
              "classes": "dpr-section-header-spacer-bottom",
              "colspan": 0,
              "text": ""
            }
          ]
        ],
        "rowCount": 100,
        "colCount": 0
      }]
    } %}
    
    {{ dprReportWrapper(data) }}