2013-07-28 10:35:31 +02:00
|
|
|
<div class="image-upload" ng-class="{'has-error': error != null}">
|
2015-10-25 03:35:37 +01:00
|
|
|
<div class="preview" ng-class="{canOpen: isImageLoaded}" ng-click="previewImage()"><img ng-show="isImageLoaded" /></div>
|
|
|
|
<p>
|
2015-12-27 10:43:43 +01:00
|
|
|
Image must be a PNG or JPEG that is at least 350x350. <br />
|
2015-10-25 03:35:37 +01:00
|
|
|
<input type="file" onchange="angular.element(this).scope().setImageFile(this)" />
|
|
|
|
</p>
|
|
|
|
<div class="btn-group">
|
2016-05-20 01:08:57 +02:00
|
|
|
<a href="#" pfm-popup="image-selector" pfm-popup-close-on-click class="btn btn-sm"><i class="icon-picture"></i> Gallery</a>
|
|
|
|
<a href="#" pfm-eat-click ng-click="uploadImage()" class="btn btn-info btn-sm"><i class="icon-upload"></i> Upload</a>
|
|
|
|
<a href="#" pfm-eat-click ng-click="clearImage()" class="btn btn-danger btn-sm" ng-show="isImageLoaded"><i class="icon-remove"></i></a>
|
2015-10-25 03:35:37 +01:00
|
|
|
</div>
|
|
|
|
<div id="image-selector" class="pfm-popup image-selector">
|
|
|
|
<ul>
|
2016-02-14 12:12:13 +01:00
|
|
|
<li ng-repeat="image in images track by image.id" ng-click="selectGalleryImage(image)">
|
|
|
|
<img ng-src="{{::image.urls.small}}" />
|
2015-10-25 03:35:37 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="error" ng-show="error != null">{{error}}</div>
|
|
|
|
</div>
|