@model string


@Html.Hidden("apiKey", Model)

<div class="row add-distane-row">
    <div class="col-md-6">
        <table id="identSearchTable" class="ident-search add-distance-table" role="grid">
            <thead>
                <tr role="row">
                    <th style="width: 60%"></th>
                    <th></th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr role="row" id="DistancesCreate">
                    <td id="node-db-search" class="add-distance-select2" style="max-width: 200px;">
                        <input type="text"
                               class="form-control"
                               id="NewNode"
                               name="NewDistance.Node"
                               dataUrl="@Url.Action("GetDistanceSubjects", "TravelOrderAllData")"
                               placeholder="@Loc.AddNewDestination"
                               autocomplete="off"
                               data-submit="add-distance-btn-id" />
                    </td>

                    <td id="node-google-search" hidden>
                        <input class="form-control google-add-destination"
                               name="NewDistance.Node"
                               id="street-search"
                               autocomplete="off"
                               placeholder="@Loc.AddNewDestination" />
                    </td>

                    <td>
                        <button class="btn btn-success"
                                title="@Loc.AddLocation"
                                id="add-distance-btn-id"
                                onclick="saveAndDisableSaveButton()">
                            <i class="fa fa-plus"></i>
                        </button>
                    </td>

                    <td style="padding-left:5px">
                        <input type="hidden" id="Km" name="NewDistance.Km" />

                        <button type="button"
                                id="googleSearchBtn"
                                class="btn btn-outline btn-primary"
                                title="@Loc.GoogleSearch"
                                onclick="setGoogleSearch(); toggleNodeSelection(); checkGoogleApiKey('@Model');">
                            <i class="icon-google-maps-alt"></i>
                        </button>
                    </td>
                    <td style="padding-left:5px">
                        <button type="button"
                                class="btn btn-outline btn-primary"
                                title="@Loc.AddingNewPartner"
                                id="NewSupplier"
                                onclick="openSubjectModal()">
                            <i class="fa fa-building"></i>
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>