<div class="section section-full-screen section-signup">
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-xs-12 col-sm-12 col-md-offset-2">
                <p class="text-divider loginTitle">Lütfen Giriş Yapınız</p>
                @*<div class="col-xs-12 col-sm-12 col-md-12 loginrow">
                        <input type="text" class="form-control loginInput" data-bind="value:$root.user().DepartNo" placeholder="Departman kodu...">
                    </div>*@
                <div data-bind="visible: !$root.LoginDepartments()" class="col-xs-12 col-sm-12 col-md-12 loginrow">
                    <select class="form-control loginInput" 
                            data-bind="options: $root.AllDepartments,
                                                                optionsText: 'ADI',
                                                                value: $root.user().DepartNo,
                                                                optionsValue:'KODU'"></select>

                </div>
                <div class="col-xs-12 col-sm-12 col-md-12 loginrow">
                    <input type="password" placeholder="Parola..." data-bind="value:$root.user().Password" class="form-control loginInput" />
                </div>
                <!--ko if:$root.user().NotFound()-->
                <div class="col-xs-12 col-sm-12 col-md-12 loginrow">

                    <div data-bind="html:$root.user().ErrorMessage,style:{'color':'red','margin-top':'10px'}"></div>
                </div>
                <!--/ko-->
                <div class="col-xs-12 col-sm-12 col-md-12 loginrow">
                    <button type="submit" data-bind="click: function(){$root.Login()}" class="btn btn-danger btn-block loginbtn">Giriş</button>
                </div>
            </div>
        </div>
    </div>
</div>
