1. Finder Frontend Component Guide
  2. Admin layout
  3. Default
Admin layout example

Default

How it looks (preview)

<!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">
    
    <link rel="icon" type="image/x-icon" href="/assets/finder-frontend/govuk_publishing_components/favicon-production-e0de5a19794718059fac0d33d2a76a9224571294ae1105f8346aa484bb119926.png" />
    <link rel="stylesheet" href="/assets/finder-frontend/application-6cc20f54f73a18d014c8c4cb3a5241d3e4b3204e3af4479a6cbe7adfb4e8a2f5.css" media="all" />
    <script src="/assets/finder-frontend/govuk_publishing_components/vendor/modernizr-4787a826170e64d1f0269e3bf9b5d8282678791e7a7b6ca28dc1e2b4b42430e2.js"></script>
    
  </head>
  <body class="gem-c-layout-for-admin govuk-template__body">
    <script nonce="SosP/LZ5yDb244orX4w+Dg==">
//<![CDATA[
      document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');

//]]>
</script>    
      <!-- You probably want to use the header, main & footer components here -->


    <script src="/assets/finder-frontend/application-c299ce52213d1035ab5a9c732fc740582762d4c20641f8601e32af09e0cb1eea.js"></script>
  </body>
</html>

How to call this example

<%= 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 %>