<commit_before><form id="b-page-version-template" name="pageversion-template">
    <h1><?= Lang::get('boomcms::settings.template.heading') ?></h1>

	<div class="b-template">
		<p>Changing the template of the page will change how the content of the page is visually displayed.</p>
		<p>Although some content may not be visible with certain templates, the content will remain with the page and become visible if the template is changed back.</p>

		<label for="template_id">Template:</label>
		<select id='template' name='template_id'>
			<?php foreach ($templates as $t): ?>
				<option value='<?= $t->getId() ?>' data-description="<?= $t->getDescription() ?>" data-count='<?= $countPages(['tempalte' => $t]) ?>'<?php if ($t->is($current)): ?> selected='selected'<?php endif ?>><?= $t->getTheme() ?> - <?= $t->getName() ?></option>
			<?php endforeach ?>
		</select>

		<div id='description'><strong>Template description:</strong><p></p></div>
		<div id='count'><strong>Pages using this template:</strong><p></p></div>
        
        <?= $button('refresh', 'reset', ['class' => 'b-template-cancel b-button-withtext']) ?>
        <?= $button('save', 'save', ['class' => 'b-template-save b-button-withtext']) ?>
    </div><commit_msg>Fixed template settings page count<commit_after><form id="b-page-version-template" name="pageversion-template">
    <h1><?= Lang::get('boomcms::settings.template.heading') ?></h1>

	<div class="b-template">
		<p>Changing the template of the page will change how the content of the page is visually displayed.</p>
		<p>Although some content may not be visible with certain templates, the content will remain with the page and become visible if the template is changed back.</p>

		<label for="template_id">Template:</label>
		<select id='template' name='template_id'>
			<?php foreach ($templates as $t): ?>
				<option value='<?= $t->getId() ?>' data-description="<?= $t->getDescription() ?>" data-count='<?= $countPages(['template' => $t]) ?>'<?php if ($t->is($current)): ?> selected='selected'<?php endif ?>><?= $t->getTheme() ?> - <?= $t->getName() ?></option>
			<?php endforeach ?>
		</select>

		<div id='description'><strong>Template description:</strong><p></p></div>
		<div id='count'><strong>Pages using this template:</strong><p></p></div>
        
        <?= $button('refresh', 'reset', ['class' => 'b-template-cancel b-button-withtext']) ?>
        <?= $button('save', 'save', ['class' => 'b-template-save b-button-withtext']) ?>
    </div>
{'fraction_non_alphanumeric': 0.2187374346602332, 'fraction_numerical': 0.0016083634901487736, 'mean_word_length': 4.77262180974478, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4933768', 'n_tokens_mistral': 792, 'n_tokens_neox': 761, 'n_words': 201}