<div class="col-md-12 col-sm-12 col-xs-12 no-padding">
    <div class="col-md-12 well well-sm bg-white">
        <form role="form" name="edit-item" ng-submit="createItem()">
            <div class="col-md-6">
                <div ng-show="showAlert" class="col-md-12 col-sm-12 col-xs-12 alert alert-{{alertClass}}" role="alert">
                    {{alertMessage}}
                    <div class="col-md-12 col-sm-12 col-xs-12" ng-repeat="e in errors">
                        {{e.message}}
                    </div>
                </div>
                <div class="row no-margin">
                    <div class="col-md-6 form-group">
                        <label for="item-name">Nimi</label>
                        <input class="form-control" id="item-name" ng-model="item.name" type="text"/>
                    </div>
                    <div class="col-md-6 form-group">
                        <label for="item-amount">Määrä</label>
                        <input class="form-control" id="item-amount" ng-model="item.amount" type="number"/>
                    </div>
                </div>

                <div class="col-md-12">
                    <div class="row no-margin">
                        <div class="form-group">
                            <b>Kuvaus</b><br/>
                            <textarea  class="col-md-12" rows="6" ng-model="item.description"></textarea>
                        </div>
                    </div>
                </div>
                <div class="row no-margin">
                    <div class="col-md-6" style="margin-top:15px">
                        <button type="submit" class="btn btn-block btn-success"><i class="fa fa-save"></i> Tallenna</button>
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>
