<div ng:controller="ClassificationEditController" class="row-fluid" qn:fillheight>
    <div class="toolbar cfix">
        <div class="toolbar-group">
            <h3>
                <span ng:click="back()" class="circle circle-small blue"><span class="icon li_cloud"></span></span>
                {{$resource('classifications.edit_classification')}}
            </h3>
        </div>
        <div class="toolbar-group right">
            <button title="{{$resource('utility.home')}}" class="button tooltip" ng:click="back()"><i class="icon-angle-left"></i></button>
        </div>
    </div>
    <div class="form fillh cfix">
        <div class="col2 sidebar">
            <ul class="nav">
                <li class="active"><a>{{$resource('classifications.basic_info')}}</a></li>
                <li><a>{{$resource('classifications.content')}}</a></li>
                <li><a>{{$resource('classifications.publishing')}}</a></li>
            </ul>
        </div>
         <div class="form ">
            <form name="Classification" class="form-horizontal fillh ">     
                <div class="control-group required">
                    <label class="control-label">{{$resource('classifications.name')}}</label>
                    <div class="controls">
                        <input type="text" class="col6" name="Name" ng:model="classification.Name" required />
                        <div ng:show="errors['classification.Name'][0]" style="display: block; clear: both; color: red; padding: 10px 0 0;">{{$resource(errors['classification.Name'][0])}}</div>
                    </div>
                </div>
                 <div class="control-group">
                 <label class="control-label">{{$resource('classifications.alias')}}</label>
                 <div class="controls">
                                <input type="text" id="Alias" name="Alias" ng:model="classification.Alias"  />
                                <div ng:show="errors['classification.Alias'][0]" style="display: block; clear: both; color: red; padding: 10px 0 0;">{{$resource(errors['classification.Alias'][0])}}</div>
                 </div>
                </div>
                  <div class="control-group required">
                              <label class="control-label">{{$resource('classifications.type')}}</label>
                            <div class="controls">
                                <select id="ClassificationType" name="ClassificationType" ng:model="classification.ClassificationType" required>
                                    <option value="0" selected="selected">{{$resource('classifications.flat')}}</option>
                                    <option value="1">{{$resource('classifications.hierarchy')}}</option>
                                </select>
                            </div>
                        </div>
                <div class="control-group">
                    <label class="control-label">{{$resource('classifications.system_class')}}</label>
                    <div class="controls">
                        <input type="checkbox" class="input-block" name="IsSystem" ng:model="classification.IsSystem" />
                    </div>
                </div>
                            
                <br/>
                <div class="control-group">
                    <label class="control-label"></label>
                    <div class="controls">
                        <button class="button green" ng:click="update()">{{$resource('classifications.save')}}</button>
                        <button type="button" class="button" ng:click="back()">{{$resource('classifications.cancel')}}</button>
                    </div>
                </div> 
            </form>
             </div>
        </div>
    </div>
</div>