1. Component Guide
  2. Admin layout

Component

Admin layout

A layout to be used by admin applications

Typically you’ll use this together with the layout header component and the layout footer component.

Because it is an entire HTML document, this component can only be previewed on a separate page.

How to call this component

<%= render "govuk_publishing_components/components/layout_for_admin", {
  environment: "production",
  product_name: "Publishing",
  browser_title: "A page title"
} do %>
  <!-- You probably want to use the header, main & footer components here -->
<% end %>
Search for usage on GitHub

How it looks

<!DOCTYPE html>
<html lang="en" class="govuk-template">
  <head>
    <meta charset="utf-8" />
    <title>A page title - GOV.UK Publishing</title>
    <meta name="robots" content="noindex,nofollow,noimageindex">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="YG8fv7Y9YW3GTrIuIEuVYgkS1aSPFwVmzpBJiaH5lk/mfFxZ3jj8NJbhc/Wm7Y0dVc1XyyKnbiPopQu6Arh9rg==" />
    <link rel="shortcut icon" type="image/x-icon" href="/assets/govuk_publishing_components/favicon-production-3d29621e53fc949f82338b9efeaeaa1a803066deef2e8e6b390c23d79c21c90b.png" />
    <link rel="stylesheet" media="screen" href="/assets/application-23399cea142ab2ca04dfb15b695dff38a9c74a433bd1337a547374a27fb59a3d.css" />
    <script src="/assets/govuk_publishing_components/vendor/modernizr-a694b2e4420935261ee2a50f5702d93197f5207f75a24a6ecdae2bfea4a160a3.js"></script>
    
  </head>
  <body class="gem-c-layout-for-admin govuk-template__body">
    <script>
      document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
    </script>
    
      <!-- You probably want to use the header, main & footer components here -->


    <script src="/assets/application-293960048a88a8636d65e92be68d6694322e057937b852e6bf49391aface95f4.js"></script>
  </body>
</html>

Accessibility acceptance criteria

TBD