<commit_before><? defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="ccm-pane-controls">
<? 

Loader::model('collection_attributes');
Loader::model('collection_types');
$dh = Loader::helper('date');

if ($c->isAlias() && $c->getCollectionPointerExternalLink() != '') {
?>

<h1><?=t('Edit External Link')?></h1>

	<form method="post" action="<?=$c->getCollectionAction()?>" id="ccmEditLink">		
	
	<div class="ccm-form-area">
	<div class="ccm-field">
	
	<label><?=t('Name')?></label> <input type="text" name="cName" value="<?=$c->getCollectionName()?>" class="text" style="width: 100%" />
	
	</div>
	<div class="ccm-field">

	<label><?=t('URL')?></label> <input type="text" name="cExternalLink" style="width: 100%" value="<?=$c->getCollectionPointerExternalLink()?>" />

	</div>

	<div class="ccm-field">

	<label for="cExternalLinkNewWindow"><input type="checkbox" value="1" <? if ($c->openCollectionPointerExternalLinkInNewWindow()) { ?> checked <? } ?> name="cExternalLinkNewWindow" id="cExternalLinkNewWindow" style="vertical-align: middle" /> <?=t('Open Link in New Window')?></label>

	</div>
	
	<div class="ccm-spacer">&nbsp;</div>
	</div>


	<div class="ccm-buttons">
	<a href="javascript:void(0)" onclick="$('#ccmEditLink').get(0).submit()" class="ccm-button-right accept"><span><?=('Save')?></span></a>
	</div>	
	<input type="hidden" name="update_external" value="1" />
	<input type="hidden" name="processCollection" value="1">

</form>
<? } ?>
</div><commit_msg>updated the edit dialog to match the add<commit_after><? defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="ccm-ui">
<? 

Loader::model('collection_attributes');
Loader::model('collection_types');
$dh = Loader::helper('date');

if ($c->isAlias() && $c->getCollectionPointerExternalLink() != '') {
?>

<h2><?=t('Edit External Link')?></h2>

	<form class="form-stacked" method="post" action="<?=$c->getCollectionAction()?>" id="ccmEditLink">		
	
	<div class="ccm-form-area">
	<div class="ccm-field">
	
	<label><?=t('Name')?></label> <input type="text" name="cName" value="<?=$c->getCollectionName()?>" class="text" style="width: 95%" />
	
	</div>
	<div class="ccm-field">

	<label><?=t('URL')?></label> <input type="text" name="cExternalLink" style="width: 95%" value="<?=$c->getCollectionPointerExternalLink()?>" />

	</div>

	<div class="ccm-field">

	<label for="cExternalLinkNewWindow"><input type="checkbox" value="1" <? if ($c->openCollectionPointerExternalLinkInNewWindow()) { ?> checked <? } ?> name="cExternalLinkNewWindow" id="cExternalLinkNewWindow" style="vertical-align: middle" /> <?=t('Open Link in New Window')?></label>

	</div>
	
	<div class="ccm-spacer">&nbsp;</div>
	</div>


	<div class="ccm-buttons">
	<a href="javascript:void(0)" onclick="$('#ccmEditLink').get(0).submit()" class="btn primary ccm-button-right accept"><span><?=('Save')?></span></a>
	</div>	
	<input type="hidden" name="update_external" value="1" />
	<input type="hidden" name="processCollection" value="1">

</form>
<? } ?>
</div>
{'fraction_non_alphanumeric': 0.25323597743113174, 'fraction_numerical': 0.0086292731496847, 'mean_word_length': 6.910761154855643, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 107, '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': '5994843', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1042, 'n_words': 177}