| 1 | <div class="panel panel-default"> |
| 2 | <div class="panel-heading"> |
| 3 | <h3 class="panel-title">{{translateTitle(currentNode)}}</h3> |
| 4 | </div> |
| 5 | <div class="panel-body"> |
| 6 | <div class="row"> |
| 7 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 8 | <div class="form-group"> |
| 9 | <label for="keyid" id="lki"><span>{{translateTitle(currentNode.data[2])}}</span></label> |
| 10 | <input id="keyid" aria-describedby="lki" class="form-control" ng-model="currentNode.data[2].data"/> |
| 11 | </div> |
| 12 | <div class="form-group"> |
| 13 | <label for="privateKey" id="lpv"><span>{{translateTitle(currentNode.data[0])}}</span></label> |
| 14 | <textarea id="privateKey" aria-describedby="lpv" class="form-control" rows="8" ng-model="currentNode.data[0].data"></textarea> |
| 15 | </div> |
| 16 | <div class="form-group"> |
| 17 | <label for="privkfile" id="lprivkfile"><span trspan="replaceByFile"></span></label> |
| 18 | <input id="privkfile" aria-describedby="lprivkfile" type="file" class="form-control" on-read-file="replaceContent(currentNode.data[0],$fileContent)"/> |
| 19 | </div> |
| 20 | </div> |
| 21 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 22 | <div class="form-group"> |
| 23 | <label for="selform" id="selLabel"><span>{{translateTitle(currentNode.data[3])}}</span></label> |
| 24 | <select id="selform" class="form-control" ng-model="currentNode.data[3].data" ng-change="currentNode.onChange()"> |
| 25 | <option ng-selected="'RSA'==currentNode.data[3].data" value="RSA">RSA</option> |
| 26 | <option ng-selected="'EC'==currentNode.data[3].data" value="EC">EC</option> |
| 27 | </select> |
| 28 | </div> |
| 29 | <div class="form-group"> |
| 30 | <label for="publicKey" id="lpub"><span>{{translateTitle(currentNode.data[1])}}</span></label> |
| 31 | <textarea id="publicKey" aria-describedby="lpub" class="form-control" rows="8" ng-model="currentNode.data[1].data"></textarea> |
| 32 | </div> |
| 33 | <div class="form-group"> |
| 34 | <label for="privkfile" id="lprivkfile"><span trspan="replaceByFile"></span></label> |
| 35 | <input id="privkfile" aria-describedby="lprivkfile" type="file" class="form-control" on-read-file="replaceContent(currentNode.data[1],$fileContent)"/> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <hr/> |
| 40 | <div class="row" ng-if="currentNode.data.length>3"> |
| 41 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 42 | <div class="form-group"> |
| 43 | <label for="privateKey2" id="lpv2"><span>{{translateTitle(currentNode.data[3])}}</span></label> |
| 44 | <textarea id="privateKey2" aria-describedby="lpv2" class="form-control" rows="8" ng-model="currentNode.data[3].data" disabled></textarea> |
| 45 | </div> |
| 46 | <div class="form-group"> |
| 47 | <label for="keyid2" id="lki2"><span>{{translateTitle(currentNode.data[5])}}</span></label> |
| 48 | <input id="keyid2" aria-describedby="lki2" class="form-control" ng-model="currentNode.data[5].data" disabled/> |
| 49 | </div> |
| 50 | </div> |
| 51 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 52 | <div class="form-group"> |
| 53 | <label for="publicKey2" id="lpub2"><span>{{translateTitle(currentNode.data[4])}}</span></label> |
| 54 | <textarea id="publicKey2" aria-describedby="lpub2" class="form-control" rows="8" ng-model="currentNode.data[4].data" disabled></textarea> |
| 55 | </div> |
| 56 | </div> |
| 57 | </div> |
| 58 | <hr/> |
| 59 | <div class="row" ng-if="currentNode.data.length>6"> |
| 60 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 61 | <div class="form-group"> |
| 62 | <label for="privateKey3" id="lpv3"><span>{{translateTitle(currentNode.data[6])}}</span></label> |
| 63 | <textarea id="privateKey3" aria-describedby="lpv3" class="form-control" rows="8" ng-model="currentNode.data[6].data"></textarea> |
| 64 | </div> |
| 65 | <div class="form-group"> |
| 66 | <label for="keyid3" id="lki3"><span>{{translateTitle(currentNode.data[8])}}</span></label> |
| 67 | <input id="keyid3" aria-describedby="lki3" class="form-control" ng-model="currentNode.data[8].data"/> |
| 68 | </div> |
| 69 | </div> |
| 70 | <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 71 | <div class="form-group"> |
| 72 | <label for="publicKey3" id="lpub3"><span>{{translateTitle(currentNode.data[7])}}</span></label> |
| 73 | <textarea id="publicKey3" aria-describedby="lpub3" class="form-control" rows="8" ng-model="currentNode.data[7].data"></textarea> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |
| 79 | <script type="text/menu"> |
| 80 | [{ |
| 81 | "title": "newCertificate", |
| 82 | "action": "newCertificateNoPassword", |
| 83 | "icon": "plus-sign" |
| 84 | },{ |
| 85 | "title": "newEcKeys", |
| 86 | "action": "newEcKeys", |
| 87 | "icon": "plus-sign" |
| 88 | },{ |
| 89 | "title": "download", |
| 90 | "icon": "save-file", |
| 91 | "action": "saveAsPem" |
| 92 | }] |
| 93 | </script> |