<commit_before>{% load templatetag_handlebars %}
{% load i18n %}
{% load static %}


{% tplhandlebars "components/bb-media-wallpost-new" %}

    <div class="wallpost-action">
        <div class="wallpost-header">
            <div class="row">
                <div class="col7">
                    <a class="status-update" href=""><span class="custom-icons update"></span>{% trans "Update status" %}</a>
                </div>
                <div class="col5">
                    <ul>
                        <li class="add-photo" href=""><a href=""><span class="custom-icons add-photo"></span>{% trans "Add photo's" %}</a></li>
                        <li class="add-video" href=""><a href=""><span class="custom-icons add-video"></span>{% trans "Add an video" %}</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="wallpost-form">
            {{view Ember.TextArea valueBinding="text" name="wallpost-update" class="wallpost-update" classBinding="errors.text.length:error" placeholder="share an update with your comment"}}

            {{#if errors.text }}
                <div class="errors">{{#each errors.text }}<p>{{this}}</p>{{/each}}</div>
            {{/if}}

            <button class="btn btn-primary btn-save" {{action 'saveWallPost' target='controller'}}>{% trans "Post" %}</button>

            <button class="btn btn-cancel" {{action 'toggleForm' target='view'}}>{% trans "Cancel" %}</button>
        </div>
    </div>

{% endtplhandlebars %}<commit_msg>fix media wallpost template - set context to wallpost model and use correct submit action CLUB-966<commit_after>{% load templatetag_handlebars %}
{% load i18n %}
{% load static %}


{% tplhandlebars "components/bb-media-wallpost-new" %}
    {{#with wallpost}}
        <div class="wallpost-action">
            <div class="wallpost-header">
                <div class="row">
                    <div class="col7">
                        <a class="status-update" href=""><span class="custom-icons update"></span>{% trans "Update status" %}</a>
                    </div>
                    <div class="col5">
                        <ul>
                            <li class="add-photo" href=""><a href=""><span class="custom-icons add-photo"></span>{% trans "Add photo's" %}</a></li>
                            <li class="add-video" href=""><a href=""><span class="custom-icons add-video"></span>{% trans "Add an video" %}</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="wallpost-form">
                {{view Ember.TextArea valueBinding="text" name="wallpost-update" class="wallpost-update" classBinding="errors.text.length:error" placeholder="share an update with your comment"}}

                {{#if errors.text }}
                    <div class="errors">{{#each errors.text }}<p>{{this}}</p>{{/each}}</div>
                {{/if}}

                <button class="btn btn-primary btn-save" {{action 'submit'}}>{% trans "Post" %}</button>

                <button class="btn btn-cancel" {{action 'toggleForm' target='view'}}>{% trans "Cancel" %}</button>
            </div>
        </div>
    {{/with}}
{% endtplhandlebars %}
{'fraction_non_alphanumeric': 0.18638324091189157, 'fraction_numerical': 0.0033887861983980284, 'mean_word_length': 2.054562558795861, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '1568235', 'n_tokens_mistral': 962, 'n_tokens_neox': 900, 'n_words': 212}