2015-05-14 08:44:38 +02:00
|
|
|
<div class="panel panel-default">
|
2015-07-09 17:38:35 +02:00
|
|
|
<div class="panel-heading">
|
2015-05-14 08:44:38 +02:00
|
|
|
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
|
|
|
|
</div>
|
2015-07-09 17:38:35 +02:00
|
|
|
<div class="panel-body">
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="row">
|
2015-05-14 08:44:38 +02:00
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="form-group">
|
2015-05-14 08:44:38 +02:00
|
|
|
<label for="privateKey" id="lpv"><span>{{translateTitle(currentNode.data[0])}}</span></label>
|
|
|
|
<textarea id="privateKey" aria-describedby="lpv" class="form-control" rows="8" ng-model="currentNode.data[0].data"></textarea>
|
|
|
|
</div>
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="form-group">
|
2016-01-20 22:23:29 +01:00
|
|
|
<label for="privkfile" id="lprivkfile"><span trspan="replaceByFile"></span></label>
|
2015-05-14 08:44:38 +02:00
|
|
|
<input id="privkfile" aria-describedby="lprivkfile" type="file" class="form-control" on-read-file="replaceContent(currentNode.data[0],$fileContent)"/>
|
|
|
|
</div>
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="keypwd" id="lkp"><span>{{translateTitle(currentNode.data[1])}}</span></label>
|
|
|
|
<input id="keypwd" aria-describedby="lkp" class="form-control" ng-model="currentNode.data[1].data"/>
|
|
|
|
</div>
|
2015-05-14 08:44:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="form-group">
|
2015-05-14 08:44:38 +02:00
|
|
|
<label for="publicKey" id="lpub"><span>{{translateTitle(currentNode.data[2])}}</span></label>
|
|
|
|
<textarea id="publicKey" aria-describedby="lpub" class="form-control" rows="8" ng-model="currentNode.data[2].data"></textarea>
|
|
|
|
</div>
|
2015-10-23 16:03:47 +02:00
|
|
|
<div class="form-group">
|
2016-01-20 22:23:29 +01:00
|
|
|
<label for="privkfile" id="lprivkfile"><span trspan="replaceByFile"></span></label>
|
2015-05-14 08:44:38 +02:00
|
|
|
<input id="privkfile" aria-describedby="lprivkfile" type="file" class="form-control" on-read-file="replaceContent(currentNode.data[2],$fileContent)"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-16 07:21:40 +01:00
|
|
|
<script type="text/menu">
|
|
|
|
[{
|
2015-07-23 18:26:37 +02:00
|
|
|
"title": "newRSAKey",
|
|
|
|
"icon": "plus-sign"
|
2016-01-23 14:09:50 +01:00
|
|
|
},{
|
|
|
|
"title": "download",
|
|
|
|
"icon": "save-file",
|
|
|
|
"action": function(cs,scope) {
|
|
|
|
scope.saveAs(cs.data[0].data+"\n"+cs.data[2].data,'application/x-pem-file',cs.title+'.pem');
|
|
|
|
}
|
2016-02-16 07:21:40 +01:00
|
|
|
}]
|
2015-05-14 08:44:38 +02:00
|
|
|
</script>
|