-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
258 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="row opanel" ng-controller="EdgeEditController"> | ||
<div class="col-md-2"> | ||
<div class="panel panel-default panel-orient"> | ||
<div class="panel-heading"> | ||
From Vertex | ||
<!--<a ng-show="isNew" href="javascript:void(0)" ng-click="showVertexModal('out')"><i--> | ||
<!--class="fa fa-plus-circle"></i></a>--> | ||
</div> | ||
<div class="panel-body"> | ||
<h4 ng-show="doc['out']"><a href="{{editUrl(doc['out'])}}">{{doc['out']}}</a></h4> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-8"> | ||
<ng-include src="'views/database/record.html'" onload=""></ng-include> | ||
</div> | ||
<div class="col-md-2"> | ||
<div class="panel panel-default panel-orient"> | ||
<div class="panel-heading"> | ||
To Vertex | ||
<!--<a ng-show="isNew" href="javascript:void(0)" ng-click="showVertexModal('in')"><i--> | ||
<!--class="fa fa-plus-circle"></i></a>--> | ||
</div> | ||
<div class="panel-body"> | ||
<h4 ng-show="doc['in']"><a href="{{editUrl(doc['in'])}}">{{doc['in']}}</a></h4> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<div class="modal" ng-controller="VertexModalSelectController"> | ||
<div class="modal-dialog modal-lg"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" ng-click="$hide()" aria-hidden="true">× | ||
</button> | ||
<h3>Select Vertex </h3> | ||
</div> | ||
|
||
|
||
<div class="modal-body modal-query"> | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<p><strong>Ctrl + Enter</strong> to execute the query</p> | ||
</div> | ||
<div class="col-md-6"> | ||
<form class="form-inline nomargin"> | ||
<button ng-click="query()" class="btn btn-xs pull-right"> | ||
<i class="fa fa-cog"></i> Run | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
<div class="row "> | ||
<form ng:submit="query()" class="form-inline"> | ||
<div ui-codemirror="editorOptions" ng-model="queryText"></div> | ||
</form> | ||
</div> | ||
|
||
<div class="row query-result"> | ||
<div class="table-responsive"> | ||
|
||
<table st-table="displayedRecords" st-safe-src="results" | ||
class="table table-striped table-bordered table-hover table-condensed pointer" | ||
ng-show="headers"> | ||
<thead> | ||
<tr> | ||
<th>#</th> | ||
<th ng-repeat="header in headers">{{header}}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="result in displayedRecords"> | ||
<td><input type="checkbox" ng-checked="added.indexOf(result['@rid'])!=-1" ng-click="select(result)"/> | ||
</td> | ||
<td ng-repeat="header in headers">{{result[header]}}</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td colspan="{{headers.length}}" class="text-center"> | ||
<div st-pagination="" st-items-by-page="5" st-displayed-pages="7"></div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div class="row"> | ||
<div class="alert alert-danger" ng-show="error"> | ||
{{error}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="modal-footer"> | ||
<button type="button" class="btn" ng-click="$hide()">Close</button> | ||
<button class="btn btn-primary" ng-disabled="added.length==0" | ||
ng-click="modal.saved=true;$hide();okSelect()">Ok | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |