<commit_before>
{% extends "views/report-templates/default.htm" %}
{% load i18n %}

{% block header %}
<div>
    <ul class="tabbed-report-tab-list">
    <!-- ko if: activeTab()  -->
        <!-- ko foreach: {data: tabs, as: 'tab'}  -->
        <li data-bind="click: function(){ $parent.makeActiveTab(tab) }, css: { 'active-report-tab': $parent.activeTab().name() == tab.name() }" class="report-tab">
            <a><span><i data-bind="attr: {class: ('fa '+ tab.icon())}"></i></span></a>
        </li>
        <!-- /ko -->
    <!-- /ko -->
    </ul>
</div>
<p data-bind="text: tabs().length"></p>
<div class="tab-banner">
    <div><span><i class="fa fa-file-o"></i></span><span data-bind=""></span></div>
    <!-- ko if: activeTab()  -->
    <div><span data-bind="text: activeTab()['name']()"></span></div>
    <!-- /ko -->
</div>
{% endblock header %}


{% block header_form %}
<div class="control-label">
    {% trans "Add Report Tabs" %}
</div>
<!--ko foreach: {data: tabs, as: 'tab'}-->
<div style="height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; margin: 15px 0px 15px; padding: 5px; background-color: #fff">
    <div style="display: flex; flex-direction: row">
        <div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <input type="" placeholder="{% trans "Tab Name" %}" id="" class="form-control input-md widget-input" data-bind="textInput: tab.name" />
            </div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <input type="" placeholder="{% trans "Tab Icon" %}" id="" class="form-control input-md widget-input" data-bind="textInput: tab.icon" />
            </div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <select class="design" data-placeholder="{% trans "Select cards in this tab" %}" multiple data-bind="selectedOptions: tab.nodegroup_ids, options: $parent.topcards, optionsText: 'name', optionsValue: 'nodegroupid', chosen: {disable_search_threshold: 10, width: '100%'}"></select>
            </div>
        </div>
        <span style="position: relative; right:2px; top:2px" data-bind="click: function(){$parent.removeTab(tab)}"><i class="fa fa-close"></i></span>
    </div>
</div>
<!--/ko-->
<div id="card-save-tile-btn" class="install-buttons">
    <button id="" class="btn btn-shim btn-mint btn-labeled btn-lg fa fa-plus" data-bind="click: addTab">{% trans "Add" %}</button>
</div>
{% endblock header_form %}


{% block body %}<commit_msg>Improves remove tab button #4684<commit_after>
{% extends "views/report-templates/default.htm" %}
{% load i18n %}

{% block header %}
<div>
    <ul class="tabbed-report-tab-list">
    <!-- ko if: activeTab()  -->
        <!-- ko foreach: {data: tabs, as: 'tab'}  -->
        <li data-bind="click: function(){ $parent.makeActiveTab(tab) }, css: { 'active-report-tab': $parent.activeTab().name() == tab.name() }" class="report-tab">
            <a><span><i data-bind="attr: {class: ('fa '+ tab.icon())}"></i></span></a>
        </li>
        <!-- /ko -->
    <!-- /ko -->
    </ul>
</div>
<p data-bind="text: tabs().length"></p>
<div class="tab-banner">
    <div><span><i class="fa fa-file-o"></i></span><span data-bind=""></span></div>
    <!-- ko if: activeTab()  -->
    <div><span data-bind="text: activeTab()['name']()"></span></div>
    <!-- /ko -->
</div>
{% endblock header %}


{% block header_form %}
<div class="control-label">
    {% trans "Add Report Tabs" %}
</div>
<!--ko foreach: {data: tabs, as: 'tab'}-->
<div style="height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; margin: 15px 0px 15px; padding: 5px; background-color: #fff">
    <div style="display: flex; flex-direction: row">
        <div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <input type="" placeholder="{% trans "Tab Name" %}" id="" class="form-control input-md widget-input" data-bind="textInput: tab.name" />
            </div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <input type="" placeholder="{% trans "Tab Icon" %}" id="" class="form-control input-md widget-input" data-bind="textInput: tab.icon" />
            </div>
            <div class="col-xs-12 pad-nor" style="padding: 5px">
                <select class="design" data-placeholder="{% trans "Select cards in this tab" %}" multiple data-bind="selectedOptions: tab.nodegroup_ids, options: $parent.topcards, optionsText: 'name', optionsValue: 'nodegroupid', chosen: {disable_search_threshold: 10, width: '100%'}"></select>
            </div>
        </div>
        <span data-bind="click: function(){$parent.removeTab(tab)}"><i class="fa fa-close"></i></span>
    </div>
</div>
<!--/ko-->
<div id="card-save-tile-btn" class="install-buttons">
    <button id="" class="btn btn-shim btn-mint btn-labeled btn-lg fa fa-plus" data-bind="click: addTab">{% trans "Add Tab" %}</button>
</div>
{% endblock header_form %}


{% block body %}
{'fraction_non_alphanumeric': 0.22687224669603523, 'fraction_numerical': 0.011213456147376852, 'mean_word_length': 3.114497528830313, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, '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': '2009528', 'n_tokens_mistral': 1730, 'n_tokens_neox': 1627, 'n_words': 391}