<commit_before><fls-busy-indicator busy="busyLoadingFlight" error="error">
    <form role="form" ng-submit="save(flightDetails)" name="flightDetailsForm" class="css-form" ng-class="{'readonly-form':!flightDetails.CanUpdateRecord}">
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-top:20px;">
                    <label for="StartDate"><span translate="DATE"></span>:</label>

                    <div class="input-group col-md-12 col-sm-12 col-xs-12">
                        <input class="form-control" id="StartDate" name="StartDate" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.flightDate"
                               date-time view="date" format="dd.MM.yyyy" min-view="date">
                      <span class="input-group-btn" ng-show="flightDetails.CanUpdateRecord">
                        <button class="btn btn-default" type="button" ng-click="times.flightDate = getDateToday();"><span
                                class="fa fa-calendar-times-o"></span></button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="MOTOR_PLANE"></span>:</label>

                    <selectize options="motorAircrafts" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'AircraftId',
                                labelField: 'Immatriculation',
                                searchField: ['Immatriculation'],
                                render: renderAircraft,
                                onChange: motorAircraftSelectionChanged
                            }" ng-model="flightDetails.MotorFlightDetailsData.AircraftId" required></selectize>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="FLIGHT_TYPE"></span>:</label>

                    <selectize options="motorFlightTypes" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'FlightTypeId',
                                searchField: ['FlightCode', 'FlightTypeName'],
                                render: renderFlighttype,
                                onChange: flightTypeChanged
                            }" ng-model="flightDetails.MotorFlightDetailsData.FlightTypeId"></selectize>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="PILOT"></span>:</label>

                    <div class="input-group col-md-12 col-sm-12 col-xs-12">
                        <selectize options="motorPilots" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'PersonId',
                                searchField: ['Firstname', 'Lastname', 'City'],
                                render: renderPerson
                            }" ng-model="flightDetails.MotorFlightDetailsData.PilotPersonId"></selectize>

                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="newMotorPilot()" translate="NEW" ng-show="flightDetails.CanUpdateRecord"></button>
                    </span>
                    </div>
                </div>
            </div>

            <div class="col-md-6 col-sm-12 col-xs-12" style="text-align:center;margin-top: 50px;">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <img ng-src="{{towPlaneImg}}" style="max-width:100%;height:100px;margin-top:20px;margin-bottom:20px;">
                </div>
            </div>
        </div>
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.StartDateTime"><span translate="TAKEOFF"></span>:</label>

                    <div class="input-group">
                        <input class="form-control" id="MotorFlightDetailsData.StartDateTime" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorStart"
                               ng-blur="formatMotorStart()">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setMotorStart()"
                                ng-blur="flightDetails.MotorFlightDetailsData.NrOfLdgs = flightDetails.MotorFlightDetailsData.NrOfLdgs || 1;"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.LdgDateTime"><span translate="LANDING"></span>:</label>

                    <div class="input-group">
                        <input class="form-control" id="MotorFlightDetailsData.LdgDateTime" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorLanding"
                               ng-blur="formatMotorLanding()">
                  <span class="input-group-btn">
                    <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setMotorLanding()"
                            ng-blur="flightDetails.MotorFlightDetailsData.NrOfLdgs = flightDetails.MotorFlightDetailsData.NrOfLdgs || 1;"><span class="fa fa-clock-o"></span>
                    </button>
                  </span>
                    </div>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="motorDuration"><span translate="DURATION"></span>:</label>
                    <input class="form-control" id="motorDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorDuration" readonly>
                </div>
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="MotorFlightDetailsData.NrOfLdgs"><span translate="NR_LANDINGS"></span>:</label>
                    <input type="number" class="form-control" id="MotorFlightDetailsData.NrOfLdgs" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.NrOfLdgs">
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label><span translate="START_LOCATION"></span>:</label>

                    <selectize options="locations" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'LocationId',
                                labelField: 'LocationName',
                                searchField: ['LocationName'],
                                onChange: recalcRouteRequirements
                            }" ng-model="flightDetails.MotorFlightDetailsData.StartLocationId"></selectize>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label><span translate="LANDING_LOCATION"></span>:</label>

                    <selectize options="locations" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'LocationId',
                                labelField: 'LocationName',
                                searchField: ['LocationName'],
                                onChange: recalcRouteRequirements
                            }" ng-model="flightDetails.MotorFlightDetailsData.LdgLocationId"></selectize>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12" ng-show="isOutboundRouteRequired">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.OutboundRoute"><span translate="OUTBOUND_ROUTE"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.OutboundRoute" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.OutboundRoute">
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12" ng-show="isInboundRouteRequired">
                    <label for="MotorFlightDetailsData.InboundRoute"><span translate="INBOUND_ROUTE"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.InboundRoute" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.InboundRoute">
                </div>
            </div>
        </div>
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.BlockStartDateTime"><span translate="BLOCK_TIME_BEGIN"></span>:</label>

                    <div class="input-group">
                        <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.BlockStartDateTime" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.blockTimeStart" ng-blur="formatBlockTimeStart();">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setBlockTimeStart()"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.BlockEndDateTime"><span translate="BLOCK_TIME_END"></span>:</label>

                    <div class="input-group">
                        <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.BlockEndDateTime" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.blockTimeEnd" ng-blur="formatBlockTimeEnd();">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setBlockTimeEnd()"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="times.blockDuration"><span translate="BLOCK_TIME_DURATION"></span>:</label>
                    <input type="text" class="form-control" id="times.blockDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.blockDuration" readonly>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.EngineStartOperatingCounterInMinutes"><span translate="ENGINE_MINUTES_BEGIN"></span>:</label>
                    <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.EngineStartOperatingCounterInMinutes"
                           ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineMinutesCounterBegin"
                           ng-blur="engineMinutesCountersChanged();">
                        <span ng-show="operatingCounters.EngineOperatingCounterInMinutes" style="color:#000052;font-weight: 500;font-size:0.8em;font-style:italic;">(<span
                                translate="LAST_ENGINE_TIME"></span>:
                            <span ng-bind="times.lastOperatingCounterFormatted"></span>)</span>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.EngineEndOperatingCounterInMinutes"><span translate="ENGINE_MINUTES_END"></span>:</label>
                    <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.EngineEndOperatingCounterInMinutes"
                           ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineMinutesCounterEnd"
                           ng-blur="engineMinutesCountersChanged();">
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="times.engineDuration"><span translate="ENGINE_MINUTES_DURATION"></span>:</label>
                    <input type="text" class="form-control" id="times.engineDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineDuration" readonly>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label for="MotorFlightDetailsData.FlightComment"><span translate="COMMENT"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.FlightComment" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.FlightComment">
                </div>
            </div>
        </div>

        <div class="row col-xs-12">
            <div class="col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 30px;">
                <button type="button" ng-click="cancel()" class="btn btn-default pull-right" translate="CANCEL">Cancel
                </button>
                <button type="submit" class="btn btn-default pull-right" style="margin-right:10px;" translate="SAVE"
                        ng-disabled="flightDetailsForm.$invalid || !flightDetails.CanUpdateRecord">
                    Save
                </button>
                <button type="button" ng-click="delete(selectedFlight)" ng-show="selectedFlight.FlightId" class="btn btn-danger pull-right" style="margin-right:10px;"
                        ng-disabled="!flightDetails.CanDeleteRecord">
                    Delete
                </button>
                <button type="button" ng-click="reloadMasterdata()" class="btn btn-default pull-right" style="margin-right:10px;" ng-disabled="loadingMasterdata"
                        translate="RELOAD_MASTERDATA"></button>

                <div ng-show="loadingMasterdata" style="margin-right:10px;margin-top:0.5em;" class="pull-right">
                    loading...
                </div>
            </div>
        </div>
        <pre class="col-md-12" ng-show="debug" ng-bind="selectedFlightType | json"></pre>
    </form>
</fls-busy-indicator><commit_msg>reordered motor flight fields (pilot before flight type)<commit_after><fls-busy-indicator busy="busyLoadingFlight" error="error">
    <form role="form" ng-submit="save(flightDetails)" name="flightDetailsForm" class="css-form" ng-class="{'readonly-form':!flightDetails.CanUpdateRecord}">
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-12 col-sm-12 col-xs-12" style="margin-top:20px;">
                    <label for="StartDate"><span translate="DATE"></span>:</label>

                    <div class="input-group col-md-12 col-sm-12 col-xs-12">
                        <input class="form-control" id="StartDate" name="StartDate" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.flightDate"
                               date-time view="date" format="dd.MM.yyyy" min-view="date">
                      <span class="input-group-btn" ng-show="flightDetails.CanUpdateRecord">
                        <button class="btn btn-default" type="button" ng-click="times.flightDate = getDateToday();"><span
                                class="fa fa-calendar-times-o"></span></button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="MOTOR_PLANE"></span>:</label>

                    <selectize options="motorAircrafts" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'AircraftId',
                                labelField: 'Immatriculation',
                                searchField: ['Immatriculation'],
                                render: renderAircraft,
                                onChange: motorAircraftSelectionChanged
                            }" ng-model="flightDetails.MotorFlightDetailsData.AircraftId" required></selectize>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="PILOT"></span>:</label>

                    <div class="input-group col-md-12 col-sm-12 col-xs-12">
                        <selectize options="motorPilots" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'PersonId',
                                searchField: ['Firstname', 'Lastname', 'City'],
                                render: renderPerson
                            }" ng-model="flightDetails.MotorFlightDetailsData.PilotPersonId"></selectize>

                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="newMotorPilot()" translate="NEW" ng-show="flightDetails.CanUpdateRecord"></button>
                    </span>
                    </div>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label><span translate="FLIGHT_TYPE"></span>:</label>

                    <selectize options="motorFlightTypes" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'FlightTypeId',
                                searchField: ['FlightCode', 'FlightTypeName'],
                                render: renderFlighttype,
                                onChange: flightTypeChanged
                            }" ng-model="flightDetails.MotorFlightDetailsData.FlightTypeId"></selectize>
                </div>
            </div>

            <div class="col-md-6 col-sm-12 col-xs-12" style="text-align:center;margin-top: 50px;">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <img ng-src="{{towPlaneImg}}" style="max-width:100%;height:100px;margin-top:20px;margin-bottom:20px;">
                </div>
            </div>
        </div>
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.StartDateTime"><span translate="TAKEOFF"></span>:</label>

                    <div class="input-group">
                        <input class="form-control" id="MotorFlightDetailsData.StartDateTime" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorStart"
                               ng-blur="formatMotorStart()">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setMotorStart()"
                                ng-blur="flightDetails.MotorFlightDetailsData.NrOfLdgs = flightDetails.MotorFlightDetailsData.NrOfLdgs || 1;"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.LdgDateTime"><span translate="LANDING"></span>:</label>

                    <div class="input-group">
                        <input class="form-control" id="MotorFlightDetailsData.LdgDateTime" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorLanding"
                               ng-blur="formatMotorLanding()">
                  <span class="input-group-btn">
                    <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setMotorLanding()"
                            ng-blur="flightDetails.MotorFlightDetailsData.NrOfLdgs = flightDetails.MotorFlightDetailsData.NrOfLdgs || 1;"><span class="fa fa-clock-o"></span>
                    </button>
                  </span>
                    </div>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="motorDuration"><span translate="DURATION"></span>:</label>
                    <input class="form-control" id="motorDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.motorDuration" readonly>
                </div>
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="MotorFlightDetailsData.NrOfLdgs"><span translate="NR_LANDINGS"></span>:</label>
                    <input type="number" class="form-control" id="MotorFlightDetailsData.NrOfLdgs" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.NrOfLdgs">
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label><span translate="START_LOCATION"></span>:</label>

                    <selectize options="locations" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'LocationId',
                                labelField: 'LocationName',
                                searchField: ['LocationName'],
                                onChange: recalcRouteRequirements
                            }" ng-model="flightDetails.MotorFlightDetailsData.StartLocationId"></selectize>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label><span translate="LANDING_LOCATION"></span>:</label>

                    <selectize options="locations" ng-disabled="!flightDetails.CanUpdateRecord" config="{
                                inputClass: 'form-control selectize-input',
                                maxItems: 1,
                                valueField: 'LocationId',
                                labelField: 'LocationName',
                                searchField: ['LocationName'],
                                onChange: recalcRouteRequirements
                            }" ng-model="flightDetails.MotorFlightDetailsData.LdgLocationId"></selectize>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12" ng-show="isOutboundRouteRequired">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="MotorFlightDetailsData.OutboundRoute"><span translate="OUTBOUND_ROUTE"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.OutboundRoute" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.OutboundRoute">
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12" ng-show="isInboundRouteRequired">
                    <label for="MotorFlightDetailsData.InboundRoute"><span translate="INBOUND_ROUTE"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.InboundRoute" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.InboundRoute">
                </div>
            </div>
        </div>
        <div class="row col-md-12 col-sm-12 col-xs-12">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.BlockStartDateTime"><span translate="BLOCK_TIME_BEGIN"></span>:</label>

                    <div class="input-group">
                        <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.BlockStartDateTime" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.blockTimeStart" ng-blur="formatBlockTimeStart();">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setBlockTimeStart()"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.BlockEndDateTime"><span translate="BLOCK_TIME_END"></span>:</label>

                    <div class="input-group">
                        <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.BlockEndDateTime" ng-disabled="!flightDetails.CanUpdateRecord"
                               ng-model="times.blockTimeEnd" ng-blur="formatBlockTimeEnd();">
                      <span class="input-group-btn">
                        <button ng-show="flightDetails.CanUpdateRecord" class="btn btn-default" type="button" ng-click="setBlockTimeEnd()"><span class="fa fa-clock-o"></span>
                        </button>
                      </span>
                    </div>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="times.blockDuration"><span translate="BLOCK_TIME_DURATION"></span>:</label>
                    <input type="text" class="form-control" id="times.blockDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.blockDuration" readonly>
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.EngineStartOperatingCounterInMinutes"><span translate="ENGINE_MINUTES_BEGIN"></span>:</label>
                    <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.EngineStartOperatingCounterInMinutes"
                           ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineMinutesCounterBegin"
                           ng-blur="engineMinutesCountersChanged();">
                        <span ng-show="operatingCounters.EngineOperatingCounterInMinutes" style="color:#000052;font-weight: 500;font-size:0.8em;font-style:italic;">(<span
                                translate="LAST_ENGINE_TIME"></span>:
                            <span ng-bind="times.lastOperatingCounterFormatted"></span>)</span>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-12">
                    <label for="flightDetails.MotorFlightDetailsData.EngineEndOperatingCounterInMinutes"><span translate="ENGINE_MINUTES_END"></span>:</label>
                    <input type="text" class="form-control" id="flightDetails.MotorFlightDetailsData.EngineEndOperatingCounterInMinutes"
                           ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineMinutesCounterEnd"
                           ng-blur="engineMinutesCountersChanged();">
                </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="form-group col-md-6 col-sm-12 col-xs-12">
                    <label for="times.engineDuration"><span translate="ENGINE_MINUTES_DURATION"></span>:</label>
                    <input type="text" class="form-control" id="times.engineDuration" ng-disabled="!flightDetails.CanUpdateRecord" ng-model="times.engineDuration" readonly>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label for="MotorFlightDetailsData.FlightComment"><span translate="COMMENT"></span>:</label>
                    <input type="text" class="form-control" id="MotorFlightDetailsData.FlightComment" ng-disabled="!flightDetails.CanUpdateRecord"
                           ng-model="flightDetails.MotorFlightDetailsData.FlightComment">
                </div>
            </div>
        </div>

        <div class="row col-xs-12">
            <div class="col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 30px;">
                <button type="button" ng-click="cancel()" class="btn btn-default pull-right" translate="CANCEL">Cancel
                </button>
                <button type="submit" class="btn btn-default pull-right" style="margin-right:10px;" translate="SAVE"
                        ng-disabled="flightDetailsForm.$invalid || !flightDetails.CanUpdateRecord">
                    Save
                </button>
                <button type="button" ng-click="delete(selectedFlight)" ng-show="selectedFlight.FlightId" class="btn btn-danger pull-right" style="margin-right:10px;"
                        ng-disabled="!flightDetails.CanDeleteRecord">
                    Delete
                </button>
                <button type="button" ng-click="reloadMasterdata()" class="btn btn-default pull-right" style="margin-right:10px;" ng-disabled="loadingMasterdata"
                        translate="RELOAD_MASTERDATA"></button>

                <div ng-show="loadingMasterdata" style="margin-right:10px;margin-top:0.5em;" class="pull-right">
                    loading...
                </div>
            </div>
        </div>
        <pre class="col-md-12" ng-show="debug" ng-bind="selectedFlightType | json"></pre>
    </form>
</fls-busy-indicator>
{'fraction_non_alphanumeric': 0.133913646828776, 'fraction_numerical': 0.014633992493771092, 'mean_word_length': 1.7533865925668635, 'pattern_counts': {'":': 0, '<': 485, '<?xml version=': 0, '>': 485, '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': '6434831', 'n_tokens_mistral': 9132, 'n_tokens_neox': 8271, 'n_words': 1236}