<commit_before><h3>Groups</h3>

<button {{action 'showCreateTopLevelGroup'}}>{{fa-icon 'plus'}}</button>

{{#if selectedGroup}}
<nav class="qr">{{view 'entity-qr' models='boxes' entity=selectedGroup size=200}}</nav>
{{/if}}

<ul>
    {{#each group in model}}
    {{item-tree item=group class='group-entity' deleteAction='deleteGroup' createAction='showCreateGroup' action='selectGroup' hoverAction='hoverGroup'}}
    {{/each}}
</ul>

{{outlet}}

<div id="createGroup" class="reveal-modal" data-reveal>
    <h2>Create group</h2>
    <form {{action 'createGroup' on='submit'}}>
    <label for="name">Name:</label>
    {{input id='name' placeholder='Enter group name' value=name required='required'}}
    {{#if selectedGroup}}
    <label for="parent">Parent:
        <div>{{selectedGroup.name}}</div></label>
    {{/if}}
    <input type="submit" value="Create group">
    </form>

    <a class="close-reveal-modal">&#215;</a>
</div><commit_msg>Do not show QR for groups<commit_after><h3>Groups</h3>

<button {{action 'showCreateTopLevelGroup'}}>{{fa-icon 'plus'}}</button>

<ul>
    {{#each group in model}}
    {{item-tree item=group class='group-entity' deleteAction='deleteGroup' createAction='showCreateGroup' action='selectGroup' hoverAction='hoverGroup'}}
    {{/each}}
</ul>

{{outlet}}

<div id="createGroup" class="reveal-modal" data-reveal>
    <h2>Create group</h2>
    <form {{action 'createGroup' on='submit'}}>
    <label for="name">Name:</label>
    {{input id='name' placeholder='Enter group name' value=name required='required'}}
    {{#if selectedGroup}}
    <label for="parent">Parent:
        <div>{{selectedGroup.name}}</div></label>
    {{/if}}
    <input type="submit" value="Create group">
    </form>

    <a class="close-reveal-modal">&#215;</a>
</div>
{'fraction_non_alphanumeric': 0.21070422535211267, 'fraction_numerical': 0.009577464788732394, 'mean_word_length': 5.061433447098976, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '7654951', 'n_tokens_mistral': 614, 'n_tokens_neox': 587, 'n_words': 119}