<commit_before><?php
defined('C5_EXECUTE') or die("Access Denied.");
$form = Core::make('helper/form');
?>

<form method="post" action="<?=$view->action('submit')?>" class="form-horizontal">
<?php if (PermissionKey::getByHandle('add_topic_tree')->validate()) {
    ?>
	<?=Loader::helper('validation/token')->output('submit')?>
	<div class="control-group">
		<?=$form->label('topicTreeName', t('Tree Name'))?>
		<div class="controls">
			<?=$form->text('topicTreeName', $topicTreeName, array('class' => 'span4'))?>
		</div>
	</div>
<?php 
} else {
    ?>
	<p><?=t('You may not add topic trees.')?></p>
<?php 
} ?>

<div class="ccm-dashboard-form-actions-wrapper">
    <div class="ccm-dashboard-form-actions ">
        <a href="<?=$view->url('/dashboard/system/attributes/topics')?>" class="btn btn-default pull-left"><?=t("Cancel")?></a>
        <button type="submit" class="btn btn-primary pull-right"><?=t('Add Topic Tree')?></button>
    </div>
</div>
</form><commit_msg>make Add Topic Tree input fieldless (#4196)<commit_after><?php defined('C5_EXECUTE') or die("Access Denied.");
$form = Core::make('helper/form');
?>

<form method="post" action="<?php echo $view->action('submit'); ?>" class="form-horizontal">
<?php if (PermissionKey::getByHandle('add_topic_tree')->validate()) { ?>
	<?php echo Loader::helper('validation/token')->output('submit'); ?>
	<div class="form-group">
		<?php echo $form->label('topicTreeName', t('Tree Name')); ?>
		<?php echo $form->text('topicTreeName', $topicTreeName); ?>
	</div>
<?php } else { ?>
	<p><?php echo t('You may not add topic trees.'); ?></p>
<?php } ?>

    <div class="ccm-dashboard-form-actions-wrapper">
        <div class="ccm-dashboard-form-actions ">
            <a href="<?php echo $view->url('/dashboard/system/attributes/topics'); ?>" class="btn btn-default pull-left"><?php echo t("Cancel"); ?></a>
            <button type="submit" class="btn btn-primary pull-right"><?php echo t('Add Topic Tree'); ?></button>
        </div>
    </div>
</form>
{'fraction_non_alphanumeric': 0.24738154613466334, 'fraction_numerical': 0.003491271820448878, 'mean_word_length': 5.024024024024024, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 70, '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': '2142489', 'n_tokens_mistral': 667, 'n_tokens_neox': 675, 'n_words': 131}