<commit_before><?php
defined('C5_EXECUTE') or die("Access Denied.");
?>

<script type="text/template" class="attribute">
	<div class="form-group <% if (pending) { %>ccm-page-attribute-adding<% } %>" data-attribute-key-id="<%=akID%>">
		<a href="javascript:void(0)" data-remove-attribute-key="<%=akID%>"><i class="fa fa-minus-circle"></i></a>
		<label class="control-label"><%=label%></label>
		<div>
			<%=content%>
		</div>
		<input type="hidden" name="selectedAKIDs[]" value="<%=akID%>" />
	</div>
</script>

<div id="ccm-detail-page-attributes">

<section class="ccm-ui">
	<form method="post" action="<?=$controller->action('submit')?>" data-dialog-form="attributes" data-panel-detail-form="attributes"  data-action-after-save="reload">

        <?php if (isset($sitemap) && $sitemap) {
    ?>
            <input type="hidden" name="sitemap" value="1" />
        <?php
} ?>

		<span class="ccm-detail-page-attributes-id"><?=t('Page ID: %s', $c->getCollectionID())?></span>

		<?php if ($assignment->allowEditName()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Name')?></label>
			<div>
			<input type="text" class="form-control" id="cName" name="cName" value="<?=htmlentities($c->getCollectionName(), ENT_QUOTES, APP_CHARSET) ?>" />
			</div>
		</div>
		<?php
} ?>

		<?php if ($assignment->allowEditDateTime()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Created Time')?></label>
			<div>
				<?php echo $dt->datetime('cDatePublic', $c->getCollectionDatePublic());
    ?>
			</div>
		</div>
		<?php
} ?>

		<?php if ($assignment->allowEditUserID()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Author')?></label>
			<div>
			<?php
            echo $uh->selectUser('uID', $c->getCollectionUserID());
    ?>
			</div>
		</div>
		<?php
} ?>


		<?php if ($assignment->allowEditDescription()) {
    ?>
		<div class="form-group">
			<label for="cDescription" class="control-label"><?=t('Description')?></label>
			<div>
				<textarea id="cDescription" name="cDescription" class="form-control" rows="8"><?=$c->getCollectionDescription()?></textarea>
			</div>
		</div>
		<?php
} ?>

	</form>
	<div class="ccm-panel-detail-form-actions dialog-buttons"><commit_msg>Fix H1 309470<commit_after><?php
defined('C5_EXECUTE') or die("Access Denied.");
?>

<script type="text/template" class="attribute">
	<div class="form-group <% if (pending) { %>ccm-page-attribute-adding<% } %>" data-attribute-key-id="<%=akID%>">
		<a href="javascript:void(0)" data-remove-attribute-key="<%=akID%>"><i class="fa fa-minus-circle"></i></a>
		<label class="control-label"><%=label%></label>
		<div>
			<%=content%>
		</div>
		<input type="hidden" name="selectedAKIDs[]" value="<%=akID%>" />
	</div>
</script>

<div id="ccm-detail-page-attributes">

<section class="ccm-ui">
	<form method="post" action="<?=$controller->action('submit')?>" data-dialog-form="attributes" data-panel-detail-form="attributes"  data-action-after-save="reload">

        <?php if (isset($sitemap) && $sitemap) {
    ?>
            <input type="hidden" name="sitemap" value="1" />
        <?php
} ?>

		<span class="ccm-detail-page-attributes-id"><?=t('Page ID: %s', $c->getCollectionID())?></span>

		<?php if ($assignment->allowEditName()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Name')?></label>
			<div>
			<input type="text" class="form-control" id="cName" name="cName" value="<?=htmlentities($c->getCollectionName(), ENT_QUOTES, APP_CHARSET) ?>" />
			</div>
		</div>
		<?php
} ?>

		<?php if ($assignment->allowEditDateTime()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Created Time')?></label>
			<div>
				<?php echo $dt->datetime('cDatePublic', $c->getCollectionDatePublic());
    ?>
			</div>
		</div>
		<?php
} ?>

		<?php if ($assignment->allowEditUserID()) {
    ?>
		<div class="form-group">
			<label for="cName" class="control-label"><?=t('Author')?></label>
			<div>
			<?php
            echo $uh->selectUser('uID', $c->getCollectionUserID());
    ?>
			</div>
		</div>
		<?php
} ?>


		<?php if ($assignment->allowEditDescription()) {
    ?>
		<div class="form-group">
			<label for="cDescription" class="control-label"><?=t('Description')?></label>
			<div>
				<textarea id="cDescription" name="cDescription" class="form-control" rows="8"><?= htmlentities($c->getCollectionDescription(), ENT_QUOTES, APP_CHARSET) ?></textarea>
			</div>
		</div>
		<?php
} ?>

	</form>
	<div class="ccm-panel-detail-form-actions dialog-buttons">
{'fraction_non_alphanumeric': 0.24669412529807067, 'fraction_numerical': 0.003251680034684587, 'mean_word_length': 4.409144196951934, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 179, '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': '7313936', 'n_tokens_mistral': 1792, 'n_tokens_neox': 1658, 'n_words': 261}