@@ -70,18 +70,19 @@ <h3 class="content-box-header">
7070 </ div >
7171
7272 < div class ="col-sm-3 ">
73- < button type ="button " ng-click ="generatePassword() "
74- class ="btn btn-primary "> {% trans "Generate" %}</ button >
73+ < button type ="button " ng-click ="generatePassword() "
74+ class ="btn btn-primary "> {% trans "Generate" %}</ button >
7575 </ div >
7676
77- < label ng-hide ="generatedPasswordView " style ="margin-top: 1% " class ="col-sm-3 control-label "> {% trans "Generated Password" %}</ label >
77+ < label ng-hide ="generatedPasswordView " style ="margin-top: 1% "
78+ class ="col-sm-3 control-label "> {% trans "Generated Password" %}</ label >
7879 < div ng-hide ="generatedPasswordView " style ="margin-top: 1% " class ="col-sm-6 ">
7980 < input name ="dom " type ="text " class ="form-control " ng-model ="dbPassword " required >
8081 </ div >
8182
8283 < div ng-hide ="generatedPasswordView " style ="margin-top: 1% " class ="col-sm-3 ">
83- < button type ="button " ng-click ="usePassword() "
84- class ="btn btn-primary "> {% trans "Use" %}</ button >
84+ < button type ="button " ng-click ="usePassword() "
85+ class ="btn btn-primary "> {% trans "Use" %}</ button >
8586 </ div >
8687
8788
@@ -105,6 +106,7 @@ <h3 class="content-box-header">
105106 < th > {% trans "Database Name" %}</ th >
106107 < th > {% trans "Database User" %}</ th >
107108 < th > {% trans "Password" %}</ th >
109+ < th > {% trans "Remote Access" %}</ th >
108110 </ tr >
109111 </ thead >
110112 < tbody >
@@ -116,6 +118,85 @@ <h3 class="content-box-header">
116118 < button type ="button " ng-click ="changePassword(record.dbUser) "
117119 class ="btn ra-100 btn-purple "> {% trans "Change" %}</ button >
118120 </ td >
121+ < td >
122+ < button ng-click ="remoteAccess() " data-toggle ="modal "
123+ data-target ="#remoteAccess " type ="button "
124+ class ="btn ra-100 btn-purple "> {% trans "Manage" %}</ button >
125+ < div id ="remoteAccess " class ="modal fade " role ="dialog ">
126+ < div class ="modal-dialog modal-lg ">
127+ <!-- Modal content-->
128+ < div class ="modal-content ">
129+ < div class ="modal-header ">
130+ < button type ="button " class ="close " data-dismiss ="modal ">
131+ ×
132+ </ button >
133+ < h4 class ="modal-title "> {% trans "Git Logs" %} < img
134+ ng-hide ="cyberpanelLoading "
135+ src ="{% static 'images/loading.gif' %} ">
136+ </ h4 >
137+ </ div >
138+ < div class ="modal-body ">
139+
140+ < div class ="row ">
141+ < div class ="col-sm-10 ">
142+ </ div >
143+ < div class ="col-sm-2 ">
144+ < div class ="form-group ">
145+ < select ng-model ="recordsToShow "
146+ ng-change ="fetchGitLogs() "
147+ class ="form-control "
148+ id ="example-select ">
149+ < option > 10</ option >
150+ < option > 50</ option >
151+ < option > 100</ option >
152+ </ select >
153+ </ div >
154+ </ div >
155+ </ div >
156+
157+ < table style ="margin-top: 2% " class ="table ">
158+ < thead >
159+ < tr >
160+ < th > Type</ th >
161+ < th > Date</ th >
162+ < th > Message</ th >
163+ </ tr >
164+ </ thead >
165+ < tbody >
166+ < tr ng-repeat ="log in logs track by $index ">
167+ < td ng-bind ="log.type "> </ td >
168+ < td ng-bind ="log.date "> </ td >
169+ < td ng-bind ="log.message "> </ td >
170+ </ tr >
171+ </ tbody >
172+ </ table >
173+
174+ < div style ="margin-top: 2% " class ="row ">
175+ < div class ="col-md-12 ">
176+ < div class ="row ">
177+ < div class ="col-md-9 ">
178+ </ div >
179+ < div class ="col-md-3 ">
180+ < div class ="form-group ">
181+ < select ng-model ="currentPage "
182+ class ="form-control "
183+ ng-change ="fetchGitLogs() ">
184+ < option ng-repeat ="page in pagination ">
185+ {$ $index + 1
186+ $}
187+ </ option >
188+ </ select >
189+ </ div >
190+ </ div >
191+ </ div > <!-- end row -->
192+ </ div >
193+ </ div >
194+
195+ </ div >
196+ </ div >
197+ </ div >
198+ </ div >
199+ </ td >
119200 </ tr >
120201 </ tbody >
121202 </ table >
0 commit comments