<commit_before>﻿<div class="row">
    <div class="large-12 columns">
        <h2 class="background"><span>EDIT SALARY</span></h2>
    </div>
</div>

<div class="row">
    <div class="large-12 columns">
        <section data-bind="with: salary">
            <fieldset>
                <div class="row">
                    <div class="large-8 columns">
                        <h4 data-bind="text: person().firstName() + ' ' + person().lastName() + ' | ' + person().id()"></h4>
                    </div>

                    <div class="large-4 columns hide-for-medium-down" data-bind="ifNotIsInRole: 'manage-all'">
                        <span class="right" data-bind="text: person().statusType().name()"></span>
                    </div>

                    <div class="large-2 columns" data-bind="ifIsInRole: 'manage-all'">
                        <select data-bind="options: $parent.statusTypes,
                            optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: person().statusTypeId"></select>
                    </div>
                </div>

                <div class="row" data-bind="ifNotIsInRole: 'manage-all'">
                    <div class="large-4 columns end" data-bind="if: leaveTypeId() > 1">
                        <p data-bind="text: 'Leave status: ' + leaveType().name()"></p>
                    </div>
                </div>

                <div class="row" data-bind="ifIsInRole: 'manage-all'">
                    <div class="large-4 columns">
                        <label>Leave status</label>
                        <select data-bind="options: $parent.leaveTypes,
                            optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: leaveTypeId"></select>
                    </div>
                </div>

                <div class="row" data-bind="ifNotIsInRole: 'manage-all'">
                    <div class="large-2 columns">
                        <label>Starting salary</label>
                        <p data-bind="text: formattedTotalAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: totalAmount() !== newTotalAmount()">
                        <label>New salary</label>
                        <p data-bind="text: formattedNewTotalAmount"></p>
                    </div>

                    <div class="large-2 columns"
                         data-bind="if: adminAmount() > 0 || eminentAmount() > 0 || promotionAmount() > 0">
                        <label>Base salary</label>
                        <p data-bind="text: formattedBaseAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: adminAmount() > 0">
                        <label>Admin salary</label>
                        <p data-bind="text: formattedAdminAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: eminentAmount() > 0">
                        <label>Eminent salary</label>
                        <p data-bind="text: formattedEminentAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: promotionAmount() > 0">
                        <label>Promotion amount</label>
                        <p data-bind="text: formattedPromotionAmount"></p>
                    </div>
                </div>

                <div class="row" data-bind="ifIsInRole: 'manage-all'">
                    <div class="large-2 columns">
                        <label>Starting salary</label>
                        <p data-bind="text: formattedTotalAmount"></p>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Base salary
                            <input type="text" data-bind="value: formattedBaseAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Admin salary
                            <input type="text" data-bind="value: formattedAdminAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Eminent salary
                            <input type="text" data-bind="value: formattedEminentAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Promotion amount
                            <input type="text" data-bind="value: formattedPromotionAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns" data-bind="if: totalAmount() !== newTotalAmount()">
                        <label>New salary</label>
                        <p data-bind="text: formattedNewTotalAmount"></p>
                    </div>
                </div>

                <div class="row hide-on-print">
                    <div class="large-4 columns">
                        <label>
                            Classification
                        </label>
                        <select data-bind="options: $parent.facultyTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: facultyTypeId"></select>
                    </div>

                    <div class="large-4 columns">
                        <label>
                            Rank
                        </label>
                        <select data-bind="options: $parent.rankTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: rankTypeId"></select>
                    </div>

                    <div class="large-4 columns">
                        <label>
                            Appointment
                        </label>
                        <select data-bind="options: $parent.appointmentTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: appointmentTypeId"></select>
                    </div><commit_msg>Always display new total amount. Addresses screen jumpwpissue.<commit_after>﻿<div class="row">
    <div class="large-12 columns">
        <h2 class="background"><span>EDIT SALARY</span></h2>
    </div>
</div>

<div class="row">
    <div class="large-12 columns">
        <section data-bind="with: salary">
            <fieldset>
                <div class="row">
                    <div class="large-8 columns">
                        <h4 data-bind="text: person().firstName() + ' ' + person().lastName() + ' | ' + person().id()"></h4>
                    </div>

                    <div class="large-4 columns hide-for-medium-down" data-bind="ifNotIsInRole: 'manage-all'">
                        <span class="right" data-bind="text: person().statusType().name()"></span>
                    </div>

                    <div class="large-2 columns" data-bind="ifIsInRole: 'manage-all'">
                        <select data-bind="options: $parent.statusTypes,
                            optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: person().statusTypeId"></select>
                    </div>
                </div>

                <div class="row" data-bind="ifNotIsInRole: 'manage-all'">
                    <div class="large-4 columns end" data-bind="if: leaveTypeId() > 1">
                        <p data-bind="text: 'Leave status: ' + leaveType().name()"></p>
                    </div>
                </div>

                <div class="row" data-bind="ifIsInRole: 'manage-all'">
                    <div class="large-4 columns">
                        <label>Leave status</label>
                        <select data-bind="options: $parent.leaveTypes,
                            optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: leaveTypeId"></select>
                    </div>
                </div>

                <div class="row" data-bind="ifNotIsInRole: 'manage-all'">
                    <div class="large-2 columns">
                        <label>Starting salary</label>
                        <p data-bind="text: formattedTotalAmount"></p>
                    </div>

                    <div class="large-2 columns">
                        <label>New salary</label>
                        <p data-bind="text: formattedNewTotalAmount"></p>
                    </div>

                    <div class="large-2 columns"
                         data-bind="if: adminAmount() > 0 || eminentAmount() > 0 || promotionAmount() > 0">
                        <label>Base salary</label>
                        <p data-bind="text: formattedBaseAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: adminAmount() > 0">
                        <label>Admin salary</label>
                        <p data-bind="text: formattedAdminAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: eminentAmount() > 0">
                        <label>Eminent salary</label>
                        <p data-bind="text: formattedEminentAmount"></p>
                    </div>

                    <div class="large-2 columns" data-bind="if: promotionAmount() > 0">
                        <label>Promotion amount</label>
                        <p data-bind="text: formattedPromotionAmount"></p>
                    </div>
                </div>

                <div class="row" data-bind="ifIsInRole: 'manage-all'">
                    <div class="large-2 columns">
                        <label>Starting salary</label>
                        <p data-bind="text: formattedTotalAmount"></p>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Base salary
                            <input type="text" data-bind="value: formattedBaseAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Admin salary
                            <input type="text" data-bind="value: formattedAdminAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Eminent salary
                            <input type="text" data-bind="value: formattedEminentAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>
                            Promotion amount
                            <input type="text" data-bind="value: formattedPromotionAmount" />
                        </label>
                    </div>

                    <div class="large-2 columns">
                        <label>New salary</label>
                        <p data-bind="text: formattedNewTotalAmount"></p>
                    </div>
                </div>

                <div class="row hide-on-print">
                    <div class="large-4 columns">
                        <label>
                            Classification
                        </label>
                        <select data-bind="options: $parent.facultyTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: facultyTypeId"></select>
                    </div>

                    <div class="large-4 columns">
                        <label>
                            Rank
                        </label>
                        <select data-bind="options: $parent.rankTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: rankTypeId"></select>
                    </div>

                    <div class="large-4 columns">
                        <label>
                            Appointment
                        </label>
                        <select data-bind="options: $parent.appointmentTypes,
                        optionsValue: 'id', optionsText: 'name', optionsCaption: 'Choose...', value: appointmentTypeId"></select>
                    </div>
{'fraction_non_alphanumeric': 0.13166546387619277, 'fraction_numerical': 0.005613022211530752, 'mean_word_length': 1.131965811965812, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 0, '>': 279, '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': '4607169', 'n_tokens_mistral': 3152, 'n_tokens_neox': 2828, 'n_words': 616}