<div ng:controller="PostEditController" class="row-fluid" qn:fillheight>
       <link rel="stylesheet" href="/Areas/Qusion/Scripts/Vendor/widgets/redactor/redactor.css" />
    <form name="NewPost">
        <div class="col12">
            <div class="toolbar cfix">
                <div class="toolbar-group">
                    <h3>
                        <span class="circle circle-small blue"></span>
                        {{post.Title}}
                    </h3>
                </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('blogs.title')}}</label>
                    <div class="controls">
                        <input type="text"  name="Title" ng:model="post.Title" required />
                        <div ng:show="errors['post.Title'][0]" class="error">{{$resource(errors['post.Title'][0])}}</div>
                    </div>
                </div>
                <div class="control-group required">
                    <label class="control-label">{{$resource('utility.alias')}}</label>
                    <div class="controls">
                        <input type="text"  name="Alias" ng:model="post.Alias" required />
                         <div ng:show="errors['post.Alias'][0]" class="error">{{$resource(errors['post.Alias'][0])}}</div>
                    </div>
                </div>
                <div class="control-group required">
                    <label class="control-label">{{$resource('blogs.summary')}}</label>
                    <div class="controls">
                        <textarea class="span5" rows="3" name="Summary" ng:model="post.Summary" required></textarea>
                         <div ng:show="errors['post.Summary'][0]" style="display: block; clear: both; color: red; padding: 10px 0 0;">{{$resource(errors['post.Summary'][0])}}</div>
                    </div>
                </div>
                <div class="control-group required">
                    <label class="control-label ">{{$resource('blogs.content')}}</label>
                    <div class="controls">
                        <textarea redactor class="span5" rows="3" name="Content" ng:model="post.Content" readonly></textarea>
                         <div ng:show="errors['post.Content'][0]" style="display: block; clear: both; color: red; padding: 10px 0 0;">{{$resource(errors['post.Content'][0])}}</div>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">&nbsp;</label>
                    <div class="controls">
                        <label class="checkbox">
                            <input type="checkbox" name="AllowComments" ng:model="post.AllowComments" />
                            {{$resource('blogs.enable_comments')}}
                        </label>
                    </div>
                </div>
                <div class="control-group" ng:show="post.AllowComments == true">
                    <label class="control-label">&nbsp;</label>
                    <div class="controls">
                        <label class="checkbox">
                            <input type="checkbox" name="AllowAnonymousComments"  ng:model="post.AllowAnonymousComments" />
                            {{$resource('blogs.allow_anonymous_comments')}}
                        </label>
                    </div>
                </div>
               <div class="control-group">
                    <label class="control-label ">{{$resource('articles.categories')}}</label>
                    <div class="controls">
                        <input qn:Treeselector="treeOptions" qn:Treedata="categories" ng:model="classifications['vijesti']" />
                    </div>
                </div>

               <br/>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                    <button class="button green" ng:click="SaveAndPublish()">{{$resource('blogs.save')}}</button>
                    <button type="button" class="button" ng:click="back()">{{$resource('blogs.cancel')}}</button>
                </div>
             </div>
            </div>
        </div>
    </form>  
</div>