<div ng:controller="ImageUploadController" class="row-fluid" id="body-main">
    <div class="col12">  
        <form name="myform"> 
            <div class="toolbar cfix">
                <div class="toolbar-group">
                    <h3>
                        <span class="circle circle-small blue"><span class="icon ui-icon-image"></span></span>
                        {{$resource('images.upload')}}
                    </h3>
                </div>
                <div class="toolbar-group">
                    <div class="col2"> {{$resource('images.lib_name')}}</div> 
                    <div ng:show="addToExistig == true" class="toolbar-group">
                        <select ng:Model="libraryId" ng:options="library.ID as library.Title  for library in libraries" style="margin:0" ></select>
                        ili <button class="btn-link" ng:click="addToExistingLibrary()">{{$resource('images.new_gallery')}}</button>
                    </div>
                    <div ng:show="addToExistig == false" class="toolbar-group">
                        <input ng:Model="libraryTitle" type="text" />
                        ili <button class="btn-link" ng:click="addToExistingLibrary()">{{$resource('images.select_existing')}}</button>
                    </div>
                </div>
               
                <div class="toolbar-group right">
                    <button title="{{$resource('utility.done')}}" class="button lightblue tooltip" ng:click="done()"><i class="icon-ok"></i></button>
                </div>
                <div class="toolbar-group right">
                    <button title="{{$resource('utility.upload')}}" class="button lightblue tooltip" ng:click="startUpload()"><i class="icon-upload"></i></button>
                </div>
            </div>
            <div>
                <input name="libraryId" type="hidden" value="{{libraryId}}">
                <input id="fileupload" type="file" name="file" data-url="/qusion/image/upload" multiple>
            </div>
        </form>
    </div>
</div>