<commit_before><? defined('C5_EXECUTE') or die("Access Denied."); ?> 
<style type="text/css">
div.survey-block-option {
	position: relative; border-bottom: 1px solid #ddd; margin-bottom: 3px;
}

div.survey-block-option img {
	position: absolute; top: 3px; right: 0px;
}

</style>

<script>
var currentOption = 0;
</script>
<div class="ccm-ui">
<div class="form-group">
    <label for="questionEntry"><?=t('Question')?></label>
    <input type="text" style="width: 320px" name="question" value="" class="form-control" />
</div>
<label for="requiresRegistration"><?=t('Target Audience')?></label>
<div class="radio">
    <label>
        <input id="requiresRegistration" type="radio" value="0" name="requiresRegistration" style="vertical-align: middle" checked />&nbsp;<?=t('Public')?>
    </label>
</div>
<div class="radio">
    <label>
        <input type="radio" value="1" name="requiresRegistration" style="vertical-align: middle" />&nbsp;<?=t('Only Registered Users')?>
    </label>
</div>
<hr />
<label><?=t('Answer Options')?></label>
<div class="form-group">
    <div id="pollOptions">
    <?=t('None')?>
    </div>
</div>
<label for="optionEntry"><?=t('Add Option')?></label>
<div class="form-group">
    <div class="input-group">
        <input type="text" name="optionValue" id="ccm-survey-optionValue" class="form-control"/>
    <span class="input-group-btn">
    <button class="btn btn-default" type="button" value="Add" onclick="addOption()"><?php echo t('Add'); ?></button>
    </span>
    </div>
</div>
</div><commit_msg>Use the edit view for the survey block add interface<commit_after><?php
$this->inc('edit.php');
{'fraction_non_alphanumeric': 0.2234499693063229, 'fraction_numerical': 0.006752608962553714, 'mean_word_length': 5.150943396226415, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, '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': '3933690', 'n_tokens_mistral': 558, 'n_tokens_neox': 552, 'n_words': 122}