summaryrefslogtreecommitdiff
path: root/client/partials/image
diff options
context:
space:
mode:
Diffstat (limited to 'client/partials/image')
-rw-r--r--client/partials/image/edit.html46
-rw-r--r--client/partials/image/image.html57
2 files changed, 76 insertions, 27 deletions
diff --git a/client/partials/image/edit.html b/client/partials/image/edit.html
new file mode 100644
index 0000000..32c6958
--- /dev/null
+++ b/client/partials/image/edit.html
@@ -0,0 +1,46 @@
+<div class="modal fade" id="editImageModal" ng-controller="editImageCtrl">
+ <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">Edit Image</h4>
+
+ </div>
+
+ <div class="modal-body">
+
+ <form class="form-horizontal" role="form">
+ <div class="form-group">
+ <label class="control-label col-sm-2">Name</label>
+ <div class="col-sm-20">
+ <p class="form-control-static">{{ image.name}}</p>
+ </div>
+
+ </div>
+ <fieldset class="form-group">
+ <label class="control-label col-sm-2">Visibility</label>
+ <select class="col-sm-20" id="visibilitySelected" ng-model="data.visibility">
+ <option ng-repeat="visibility in axioms.visibility" ng-selected="image.visibility == visibility">{{ visibility}}</option>
+ </select>
+ </fieldset>
+ <fieldset class="form-group">
+ <label class="control-label col-sm-2">Protected</label>
+ <select class="col-sm-20" id="protectedSelected" ng-model="data.protected">
+ <option ng-repeat="protected in axioms.protected" ng-selected="image.protected == protected">{{ protected}}</option>
+ </select>
+ </fieldset>
+
+ </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" ng-click="updateImage(image)" >Apply</a>
+ </div>
+ </div>
+
+ </div>
+ </div>
+</div>
diff --git a/client/partials/image/image.html b/client/partials/image/image.html
index 886a11d..9c17c2f 100644
--- a/client/partials/image/image.html
+++ b/client/partials/image/image.html
@@ -6,33 +6,36 @@
</div>
<div class="panel-body">
-
- <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 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-primary" ng-click="edit(image)">Edit</button>
+ <button type="button" class="btn btn-danger">Remove</button>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
</div>
</div>