<commit_before>template(name="customFieldsSidebar")
    ul.sidebar-list
        each customFields
            li
                div.minicard-wrapper.js-minicard
                    div.minicard
                        a.fa.fa-pencil.js-edit-custom-field.minicard-edit-button
                        div.minicard-title
                          +viewer
                            =name
                          | ({{ type }})

    if currentUser.isBoardMember
        hr
        a.sidebar-btn.js-open-create-custom-field
            i.fa.fa-plus
            span {{_ 'createCustomField'}}

template(name="createCustomFieldPopup")
    form
        label
            | {{_ 'name'}}
            unless _id
                input.js-field-name(type="text" autofocus)
            else
                input.js-field-name(type="text" value=name)

        label
            | {{_ 'type'}}
            select.js-field-type(disabled="{{#if _id}}disabled{{/if}}")
                each types
                    if selected
                        option(value=value selected="selected") {{name}}
                    else
                        option(value=value) {{name}}

        div.js-field-settings.js-field-settings-currency(class="{{#if isTypeNotSelected 'currency'}}hide{{/if}}")
            label
                | {{_ 'custom-field-currency-option'}}
            select.js-field-currency
              each getCurrencyCodes
                if selected
                  option(value=value selected="selected") {{name}}
                else
                  option(value=value) {{name}}

        div.js-field-settings.js-field-settings-dropdown(class="{{#if isTypeNotSelected 'dropdown'}}hide{{/if}}")
            label
                | {{_ 'custom-field-dropdown-options'}}
            each dropdownItems.get
                input.js-dropdown-item(type="text" value=name placeholder="")
            input.js-dropdown-item.last(type="text" value="" placeholder="{{_ 'custom-field-dropdown-options-placeholder'}}")

        div.js-field-settings.js-field-settings-paramlink(class="{{#if isTypeNotSelected 'stringtemplate'}}hide{{/if}}")
            label
                | {{_ 'custom-field-stringtemplate-format'}}
            input.js-field-stringtemplate(type="text" value=getStringtemplateFormat)

        a.flex.js-field-show-on-card(class="{{#if showOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if showOnCard}}is-checked{{/if}}")

            span {{_ 'show-field-on-card'}}
        a.flex.js-field-automatically-on-card(class="{{#if automaticallyOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if automaticallyOnCard}}is-checked{{/if}}")

            span {{_ 'automatically-field-on-card'}}

        a.flex.js-field-always-on-card(class="{{#if alwaysOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if alwaysOnCard}}is-checked{{/if}}")
            span {{_ 'always-field-on-card'}}

        a.flex.js-field-showLabel-on-card(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")

            span {{_ 'showLabel-field-on-card'}}
<commit_msg>fix custom field type name<commit_after>template(name="customFieldsSidebar")
    ul.sidebar-list
        each customFields
            li
                div.minicard-wrapper.js-minicard
                    div.minicard
                        a.fa.fa-pencil.js-edit-custom-field.minicard-edit-button
                        div.minicard-title
                          +viewer
                            =name
                          | ({{ type }})

    if currentUser.isBoardMember
        hr
        a.sidebar-btn.js-open-create-custom-field
            i.fa.fa-plus
            span {{_ 'createCustomField'}}

template(name="createCustomFieldPopup")
    form
        label
            | {{_ 'name'}}
            unless _id
                input.js-field-name(type="text" autofocus)
            else
                input.js-field-name(type="text" value=name)

        label
            | {{_ 'type'}}
            select.js-field-type(disabled="{{#if _id}}disabled{{/if}}")
                each types
                    if selected
                        option(value=value selected="selected") {{name}}
                    else
                        option(value=value) {{name}}

        div.js-field-settings.js-field-settings-currency(class="{{#if isTypeNotSelected 'currency'}}hide{{/if}}")
            label
                | {{_ 'custom-field-currency-option'}}
            select.js-field-currency
              each getCurrencyCodes
                if selected
                  option(value=value selected="selected") {{name}}
                else
                  option(value=value) {{name}}

        div.js-field-settings.js-field-settings-dropdown(class="{{#if isTypeNotSelected 'dropdown'}}hide{{/if}}")
            label
                | {{_ 'custom-field-dropdown-options'}}
            each dropdownItems.get
                input.js-dropdown-item(type="text" value=name placeholder="")
            input.js-dropdown-item.last(type="text" value="" placeholder="{{_ 'custom-field-dropdown-options-placeholder'}}")

        div.js-field-settings.js-field-settings-stringtemplate(class="{{#if isTypeNotSelected 'stringtemplate'}}hide{{/if}}")
            label
                | {{_ 'custom-field-stringtemplate-format'}}
            input.js-field-stringtemplate(type="text" value=getStringtemplateFormat)

        a.flex.js-field-show-on-card(class="{{#if showOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if showOnCard}}is-checked{{/if}}")

            span {{_ 'show-field-on-card'}}
        a.flex.js-field-automatically-on-card(class="{{#if automaticallyOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if automaticallyOnCard}}is-checked{{/if}}")

            span {{_ 'automatically-field-on-card'}}

        a.flex.js-field-always-on-card(class="{{#if alwaysOnCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if alwaysOnCard}}is-checked{{/if}}")
            span {{_ 'always-field-on-card'}}

        a.flex.js-field-showLabel-on-card(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")
            .materialCheckBox(class="{{#if showLabelOnMiniCard}}is-checked{{/if}}")

            span {{_ 'showLabel-field-on-card'}}

{'fraction_non_alphanumeric': 0.1512788521522146, 'fraction_numerical': 0.0, 'mean_word_length': 1.877074921489457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3743054', 'n_tokens_mistral': 1835, 'n_tokens_neox': 1778, 'n_words': 214}