<commit_before><h3>{$ruleActionHeader}</h3>
<div class="crm-block crm-form-block crm-civirule-rule_action-block-group-contact">

    <div class="crm-section">
        <div class="label">{$form.twitter_account.label}</div>
        <div class="content">
            {$form.twitter_account.html}
            &nbsp;&nbsp;<a href="{crmURL p='civicrm/admin/twitter_account' q='?reset=1' }">{ts}Manage twitter accounts{/ts}</a>
        </div>
        <div class="clear"></div>
    </div>
    <div class="crm-section">
        <div class="label">{$form.text_message.label}</div>
        <div class="content">
            <span class="helpIcon" id="helptext">
                <a href="#" onClick="return showToken('Text', 1);">{$form.token1.label}</a>
                <div id='tokenText' style="display: none">
                    <input  style="border:1px solid #999999;" type="text" id="filter1" size="20" name="filter1" onkeyup="filter(this, 1)"/><br />
                    <span class="description">{ts}Begin typing to filter list of tokens{/ts}</span><br/>
                    {$form.token1.html}
                </div>
            </span>
            <div class="clear">
                {$form.text_message.html}
                <p class="description">{ts}You can use contact tokens{/ts}</p>
                <p class="description"><span id='char-count-message'></span></p>
            </div>
        </div>
        <div class="clear"></div>
    </div>

    <div class="crm-submit-buttons">
        {include file="CRM/common/formButtons.tpl" location="bottom"}
    </div>
</div>


{include file="CRM/Mailing/Form/InsertTokens.tpl"}
<script type="text/javascript">
    {literal}
    maxCharInfoDisplay();

    cj(function() {
        cj('#text_message').bind({
            keyup: function () {
                maxCharInfoDisplay();
            }
        });
    });

    function maxCharInfoDisplay(){
        var maxLength = 140;
        var enteredCharLength = cj('#text_message').val().length;
        var count = maxLength - enteredCharLength;

        if( count < 0 ) {
            cj('#text_message').val(cj('#text_message').val().substring(0, maxLength));
            count = 0;
        }
        cj('#char-count-message').text( "You can insert upto " + count + " characters" );
    }
    {/literal}
</script><commit_msg>update UI fixes<commit_after><h3>{$ruleActionHeader}</h3>
<div class="crm-block crm-form-block crm-civirule-rule_action-block-group-contact">

    <div class="crm-section">
        <div class="label">{$form.twitter_account.label}</div>
        <div class="content">
            {$form.twitter_account.html}
            &nbsp;&nbsp;<a href="{crmURL p='civicrm/admin/twitter_account' q='?reset=1' }">{ts}Manage twitter accounts{/ts}</a>
        </div>
        <div class="clear"></div>
    </div>
    <div class="crm-section">
        <div class="label">{$form.text_message.label}</div>
        <div class="content">
            <span class="helpIcon" id="helptext">
                <a href="#" onClick="return showToken('Text', 1);">{$form.token1.label}</a>
                <div id='tokenText' style="display: none">
                    <input  style="border:1px solid #999999;" type="text" id="filter1" size="20" name="filter1" onkeyup="filter(this, 1)"/><br />
                    <span class="description">{ts}Begin typing to filter list of tokens{/ts}</span><br/>
                    {$form.token1.html}
                </div>
            </span>
            <div class="clear">
                {$form.text_message.html}
                <p class="description">{ts}You can use contact tokens{/ts}</p>
                <p class="description"><span id='char-count-message'></span></p>
            </div>
        </div>
        <div class="clear"></div>
    </div>

    <div class="crm-submit-buttons">
        {include file="CRM/common/formButtons.tpl" location="bottom"}
    </div>
</div>


{include file="CRM/Mailing/Form/InsertTokens.tpl"}
<script type="text/javascript">
    {literal}
    maxCharInfoDisplay();

    cj(function() {
        cj('#text_message').bind({
            keyup: function () {
                maxCharInfoDisplay();
            }
        });
    });

    function maxCharInfoDisplay(){
        var maxLength = 140;
        var enteredCharLength = cj('#text_message').val().length;
        var count = maxLength - enteredCharLength;

        cj('#char-count-message').text( "You can insert upto " + count + " characters" );
    }
    {/literal}
</script>
{'fraction_non_alphanumeric': 0.178626971784048, 'fraction_numerical': 0.009997778271495223, 'mean_word_length': 2.30058651026393, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 93, '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': '7482520', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1360, 'n_words': 244}