> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dirtview.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scope and versions: Global vs. This Project

> Editing a published template saves a new version automatically. Global scope means every job you run.

export const Video = ({id, title, runtime, url}) => {
  const meta = VIDEOS[id] || ({});
  const label = title || meta.title || "Tutorial video";
  const length = runtime || meta.runtime || "";
  const track = meta.track || "";
  const src = toEmbedUrl(url || meta.url);
  const frame = {
    position: "relative",
    width: "100%",
    paddingTop: "56.25%",
    borderRadius: "10px",
    overflow: "hidden",
    background: "rgba(127,127,127,0.09)",
    border: src ? "1px solid rgba(127,127,127,0.24)" : "1px dashed rgba(127,127,127,0.42)"
  };
  const fill = {
    position: "absolute",
    inset: 0,
    width: "100%",
    height: "100%",
    border: 0
  };
  const center = {
    position: "absolute",
    inset: 0,
    display: "flex",
    flexDirection: "column",
    alignItems: "center",
    justifyContent: "center",
    gap: "10px",
    padding: "24px",
    textAlign: "center"
  };
  const idBadge = {
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
    fontSize: "12px",
    letterSpacing: "0.06em",
    padding: "2px 8px",
    borderRadius: "4px",
    background: "rgba(184,82,40,0.14)",
    color: "#B85228",
    fontWeight: 600
  };
  const caption = {
    display: "flex",
    flexWrap: "wrap",
    alignItems: "center",
    gap: "8px",
    marginTop: "8px",
    fontSize: "13px",
    opacity: 0.66,
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace"
  };
  return <div style={{
    margin: "0 0 28px"
  }}>
      <div style={frame}>
        {src ? <iframe style={fill} src={src} title={label} frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" allowFullScreen /> : <div style={center}>
            <svg width="44" height="44" viewBox="0 0 44 44" fill="none" aria-hidden="true">
              <circle cx="22" cy="22" r="20" stroke="currentColor" strokeOpacity="0.28" strokeWidth="2" />
              <path d="M18 15.5L29 22L18 28.5V15.5Z" fill="currentColor" fillOpacity="0.32" />
            </svg>
            <div style={{
    fontWeight: 600,
    fontSize: "15px",
    maxWidth: "36ch",
    lineHeight: 1.35
  }}>{label}</div>
            <div style={{
    fontSize: "13px",
    opacity: 0.6
  }}>
              Video coming soon{length ? " · " + length : ""}
            </div>
          </div>}
      </div>
      <div style={caption}>
        {id ? <span style={idBadge}>{id}</span> : null}
        {length ? <span>{length}</span> : null}
        {track ? <span>{track} track</span> : null}
      </div>
    </div>;
};

<Video id="40.5" />

<Warning>
  **Global means every job.** A template saved with Global scope is your company's form, on every project, including the ones already running. Change it carelessly and you've changed the paperwork on all of them.
</Warning>

## Two scopes

<CardGroup cols={2}>
  <Card title="Global" icon="globe">
    Your company's standard form. Use it for things that should be identical everywhere — your daily log, your safety inspection.
  </Card>

  <Card title="This Project" icon="helmet-safety">
    Lives on one job only. Use it for an owner-specific form, or anything you're still trying out.
  </Card>
</CardGroup>

<Tip>
  Build a new form as **This Project** first. Run it on one job for a couple of weeks. Promote it to Global once it's actually right.
</Tip>

## Draft vs. Published, and automatic versions

* A **draft** template can't be filled out yet. Build in draft.
* **Publishing** makes it available to fill out.
* Editing a **published** template **automatically saves a new version**. You don't have to remember to version it, and you can't accidentally overwrite the version people already used.

<Note>
  Submissions stay attached to the version of the template they were filled out on. That's why last month's logs still show last month's fields.
</Note>

## Next

<CardGroup cols={2}>
  <Card title="The built-in forms" icon="file-lines" href="/forms/built-in-forms">
    Copy one into your own house version.
  </Card>

  <Card title="The approval loops" icon="route" href="/approvals/overview">
    Status vs. ball in court — learn it once, use it three times.
  </Card>
</CardGroup>
