manage.view 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @Init{
  2. $this->RegisterCSSFile("gallery.css");
  3. $this->RegisterJSFile("controllers/galleryManage.js");
  4. $this->RegisterJSFile("directives/contextMenu.js");
  5. }@
  6. @Title{Gallery}@
  7. @ButtonsLeft{
  8. <button onclick="Navigate('/gallery/upload/')" title="Upload Images">
  9. <img src="/images/upload.svg" alt="Add Album" />
  10. </button>
  11. }@
  12. @ButtonsRight{
  13. <button onclick="Navigate('/gallery/createalbum/')" title="Create Album">
  14. <img src="/images/add_album.svg" alt="Add Album" />
  15. </button>
  16. }@
  17. @Body{
  18. <div ng-controller="galleryManage">
  19. <select ng-model="selectedAlbum" ng-options="album.AlbumTitle for album in albums"></select>
  20. <button ng-click="editAlbum(selectedAlbum)" title="Edit Album">
  21. <img src="/images/edit.svg" alt="Edit" />
  22. </button>
  23. <div class="imageSelector">
  24. <context-menu actions="contextMenuActions"></context-menu>
  25. <div class="image" ng-repeat="image in selectedAlbum.Images" ng-click="selectImage(image)" ng-class="{selected:image.selected}">
  26. <div>
  27. <img ng-src="/{{image.ThumbnailPath}}" alt="{{image.ImageTitle}}" />
  28. <span>{{image.ImageTitle}}</span>
  29. <input type="checkbox" value="{{image.ImageId}}" name="selected[]" />
  30. </div>
  31. </div>
  32. </div>
  33. <scope-init value="albums"><?=json_encode($albums)?></scope-init>
  34. </div>
  35. }@