選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

upload.html 1.3KB

123456789101112131415161718192021222324252627282930313233
  1. <div layout="column" layout-fill layout-align="top center">
  2. <h1>Upload</h1>
  3. <div class="col-xs12" ng-show="image != null">
  4. <md-button ng-repeat="effect in effects" ng-click="applyEffect(effect.id, null)">{{effect.name}}</md-button>
  5. </div>
  6. <div ng-show="isUploadVisible()" class="col-xs-6" lu-busy="imageView">
  7. <div class="center-block">
  8. <div image-dropzone="fileLoaded(content, file)" class="dropzone">
  9. <img ng-show="image != null" ng-src="{{ image.content | toDataUrl }}">
  10. <p ng-hide="image != null">
  11. Drag a file here or <a href="" ng-click="pickFile()">pick one</a>
  12. </p>
  13. </div>
  14. <md-input-container class="col-xs-12" ng-show="image != null">
  15. <label for="name">Name</label>
  16. <input name="name" id="name" type="text" ng-model="image.name" required>
  17. </md-input-container>
  18. <md-button ng-show="canUpload()" ng-click="upload()" >Upload</md-button>
  19. <input type="file" class="hidden-input" id="filePicker">
  20. </div>
  21. </div>
  22. <div ng-hide="isUploadVisible()">
  23. Please <a ui-sref="login">log in</a> or <a ui-sref="signUp">sign up</a> to upload images!
  24. </div>
  25. </div>