@model PantheonRA.BackOffice.Models.EmployeeCreateViewModel
@using PantheonRA.BackOffice.Enums

<div class="modal inmodal fade" id="employee-image-modal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog" style="width:480px">
        <div class="modal-content">
            <div class="modal-header timerecord-entrytypemodal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <a href="@Loc.HelpUrl@HelpIds.EmployeeImageUpload"
                   target="_blank" class="pull-right m-r-sm default-icon-color"><i class="fa fa-question"></i></a>
                <a class="btn-transparent m-r-sm no-padding pull-right default-icon-color" href="@SiteHelpAttributeHelper.GetHelpUrl(HelpIds.ExampleEmployeeImage)" target="_blank" title="@Loc.CheckSamples">
                    <i class="fas fa-book-reader clickable-icon"></i>
                </a>
                <h3 class="text-left">@Loc.UploadPhoto</h3>
            </div>
            <div class="modal-body" style="padding:10px 30px 30px 30px;">
                <form action="@Url.Action("ChangeProfilePhoto", "Employees")" method="post"
                      enctype="multipart/form-data" id="employee-image-form">

                    @Html.Hidden("WorkerId", Model.Worker)

                    <input type="file"
                           name="ProfileImage"
                           id="ProfileImageId"
                           class="dropify"
                           data-height="250"
                           data-show-loader="true"
                           data-allowed-file-extensions="png jpg jpeg"
                           data-max-file-size="10M" />
                </form>
            </div>
        </div>
    </div>
</div>

@Html.Hidden("DragAndDropOrClick", Loc.UploadImageMessage)
@Html.Hidden("Remove", Loc.Remove)
@Html.Hidden("GeneralErrorMessage", Loc.GeneralError)
@Html.Hidden("WrongImageFormat", Loc.WrongImageFormat)
@Html.Hidden("FileSizeMessage", string.Format(Loc.FileSizeMessage, "10MB"))