Skip to content

Commit

Permalink
ng Admin > Added Description Field
Browse files Browse the repository at this point in the history
  • Loading branch information
disc5 committed Nov 10, 2015
1 parent 2f36b2e commit 4f251fb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var app = angular.module('myApp', [
/*
* Some (important) global constants, all in one place
*/
app.constant('version', '1.2'); // Application version
app.constant('version', '1.3'); // Application version
app.constant('apiKey', 'apollon'); // API-Key used to log into admin-panel (via username/password)
app.constant('restIliasLoginURL', '/v1/ilauth/rtoken2bearer'); // rToken to Bearer-Token Endpoint
app.constant('restTokenURL', '/v1/oauth2/token'); // Bearer-Token from Username, Password, API-Key pair Endpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ ctrl.controller("ClientEditCtrl", function($scope, $filter, dialogs, clientStora
oauth2_resource_refresh_active: $scope.current.oauth2_resource_refresh_active,
access_user_csv: $scope.current.access_user_csv,
ip_restriction_active : $scope.current.ip_restriction_active,
access_ip_csv: $scope.current.access_ip_csv
access_ip_csv: $scope.current.access_ip_csv,
description: $scope.current.description
},
// Success
function (response) {
Expand Down Expand Up @@ -375,7 +376,8 @@ ctrl.controller("ClientEditCtrl", function($scope, $filter, dialogs, clientStora
oauth2_resource_refresh_active: $scope.current.oauth2_resource_refresh_active,
access_user_csv: $scope.current.access_user_csv,
ip_restriction_active : $scope.current.ip_restriction_active,
access_ip_csv: $scope.current.access_ip_csv
access_ip_csv: $scope.current.access_ip_csv,
description: $scope.current.description
},
// Success
function (response) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ lang_en_us.config(function($translateProvider) {
EDIT_CONSENT_SCOPE: 'Enable an additional page for the OAuth2 grant types "authcode" and "implicit grant" to inform the user about the scope of the application.',
EDIT_ALLOWED_IPS: 'IP Restriction',
EDIT_IP_ACCESS_TEXT: 'Usage of this client/API-Key can be restricted to IP addresses. Specify a comma separated list of ip addresses here.',
EDIT_DESCRIPTION: 'Description',
EDIT_DESCRIPTION_TEXT: ''


});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ <h3 class="panel-title">{{'EDIT_BASIC_INFORMATION' | translate}}</h3>
<textarea id="inputIpCSV" class="form-control" rows="3" data-ng-model="current.access_ip_csv"></textarea>
</div>

<div class="form-group">
<label for="inputDescription">{{'EDIT_DESCRIPTION' | translate}}</label>
{{'EDIT_DESCRIPTION_TEXT' | translate}}
<textarea id="inputDescription" class="form-control" rows="3" data-ng-model="current.description"></textarea>
</div>


<div class="form-group">
<label for="permissions">{{'EDIT_PERMISSIONS' | translate}}</label>
<div class="checkbox" id="permissions">
Expand Down

0 comments on commit 4f251fb

Please sign in to comment.