<div ng:controller="NewsletterAddController" class="row-fluid" qn:fillheight>
    <form name="NewNewsletter">
        <div class="col12">
            <div class="toolbar cfix">
                <div class="toolbar-group">
                <button title="{{$resource('utility.home')}}" class="button tooltip" ng:click="back()"><i class="icon-home"></i></button>
            </div>
                <div class="toolbar-group right">
                    <button title="{{$resource('utility.reset')}}" class="button tooltip" ng:click="reset()"><i class="icon-undo"></i></button>
                    <button title="{{$resource('utility.refresh')}}" class="button tooltip" ng:click="refresh()"><i class="icon-refresh"></i></button>
                    <button title="{{$resource('utility.home')}}" class="button tooltip" ng:click="back()"><i class="icon-home"></i></button>
                </div>
            </div>
            <div class="form form-horizontal fillh">
                <div class="control-group required">
                    <label class="control-label">{{$resource('newsletters.ime')}}</label>
                    <div class="controls">
                        <input type="text" name="Ime" ng:model="newsletter.Ime" required />
                        <div ng:show="errors['newsletter.Ime'][0]" class="error">{{$resource(errors['newsletter.Ime'][0])}}</div>
                    </div>
                </div>
                <div class="control-group required">
                    <label class="control-label">{{$resource('newsletters.prezime')}}</label>
                    <div class="controls">
                        <input type="text" name="Prezime" ng:model="newsletter.Prezime" required />
                        <div ng:show="errors['newsletter.Prezime'][0]" class="error">{{$resource(errors['newsletter.Prezime'][0])}}</div>
                    </div>
                </div>
                 <div class="control-group required">
                      <label class="control-label">{{$resource('newsletters.email')}}</label>
                    <div class="controls">
                        <input type="text" name="Email" ng:model="newsletter.Email" required />
                        <div ng:show="errors['newsletter.Email'][0]" class="error">{{$resource(errors['newsletter.Email'][0])}}</div>
                    </div>
                 </div>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <button class="button green" ng:click="SaveAndPublish()">{{$resource('newsletters.create')}}</button>
                        <button type="button" class="button" ng:click="back()">{{$resource('newsletters.cancel')}}</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>