summaryrefslogtreecommitdiff
path: root/client/partials/image
diff options
context:
space:
mode:
authorEole <EoleDev@outlook.fr>2016-04-27 16:42:28 +0200
committerEole <EoleDev@outlook.fr>2016-04-27 16:42:28 +0200
commit49f416dc5061032e0514ea0cfeceaca37d13e432 (patch)
tree1202ac2a6fa860b8929afdc886c94fc50bd0a1de /client/partials/image
parentc7edd70b5e5b0f5159c78ce3d924d4e7f60db816 (diff)
parentc9202d9113210981ae47df40511645da2ee140df (diff)
Merge branch 'develop' into Eole_Graph
Conflicts: client/index.html client/js/controllers/home/home.js client/partials/home/home.html
Diffstat (limited to 'client/partials/image')
-rw-r--r--client/partials/image/image.html36
-rw-r--r--client/partials/image/upload.html31
2 files changed, 63 insertions, 4 deletions
diff --git a/client/partials/image/image.html b/client/partials/image/image.html
index 8af8af5..886a11d 100644
--- a/client/partials/image/image.html
+++ b/client/partials/image/image.html
@@ -1,10 +1,38 @@
- <div class="panel panel-default" ng-controller="imageCtrl">
+
+
+<div class="panel panel-default" ng-controller="imageCtrl">
<div class="panel-heading">
- Images disponibles
+ Image Manager
</div>
<div class="panel-body">
- <div ng-repeat="image in images">
- {{image.name}}
+
+
+ <div class="btn-group btn-group-md" role="group" aria-label="...">
+ <button type="button" class="btn btn-default" data-toggle="modal" data-target="#uploadImageModal"">Upload</button>
+ <button type="button" class="btn btn-default">Download</button>
</div>
+ <p></p>
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Size</th>
+ <th>Action</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr ng-repeat="image in images">
+ <td>{{ image.name }}</td>
+ <td>{{ (image.size / 1048576).toFixed(2) }} MB</td>
+ <td><button type="button" class="btn btn-danger">Remove</button></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
</div>
</div>
diff --git a/client/partials/image/upload.html b/client/partials/image/upload.html
new file mode 100644
index 0000000..01c54b2
--- /dev/null
+++ b/client/partials/image/upload.html
@@ -0,0 +1,31 @@
+<div class="modal fade" id="uploadImageModal" ng-controller="uploadImageCtrl">
+ <div class="modal-dialog">
+ <div class="modal-content"></div>
+ </div>
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">
+ <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
+ <h4 class="modal-title">Upload Image</h4>
+
+ </div>
+
+ <div class="modal-body">
+
+ <form action="../server/index.php" method="post">
+ <input type="hidden" name="task" value="image" />
+ <input type="hidden" name="token" value="{{ token }}" />
+ <input type="hidden" name="action" value="uploadImage" />
+ <input type="hidden" name="id" value="2564" />
+ <input name="file" type="file" />
+ <input type="submit" value="Upload" />
+ </form>
+
+ <div class="modal-footer">
+ <!--<a href="#" data-dismiss="modal" class="btn btn-default">Close</a>-->
+
+ <a class="btn btn-lg btn-primary btn-block" id="loginButton" ng-click="doUpload()">Upload</a>
+ </div>
+ </div>
+ </div>
+</div>