{% extends "freeform/_layouts/settings" %}
{% import "_includes/forms" as forms %}

{% set crumbs = [
    { label: craft.freeform.name, url: url("freeform") },
    { label: "Settings"|t("freeform"), url: url("freeform/settings") },
    { label: "Demo Templates"|t("freeform"), url: url("freeform/settings/demo-templates") },
] %}

{% set selectedSubnavItem = "settings" %}
{% set title = "Demo Templates"|t('freeform') %}

{% block actionButton %}{% endblock %}

{% block content %}

    {% set stats = {
        templates: codePack.templates.contents.fileCount,
        assets: codePack.assets.contents.fileCount
    } %}

    <div class="zilch">
        {{ "Successfully installed <b>{templates} templates</b> and <b>{assets} assets</b>"|t('freeform', stats)|raw }}
        <br /><br />
        <small>{{ "<a href='{link}'>View the Demo area now!</a>"|t('freeform', {link: (siteUrl ~ prefix ~ '/')})|raw }}</small>
    </div>

{% endblock %}
