Client access tab in client form translated.

pull/763/head
Fredrik Jönsson 2015-02-09 10:32:05 +01:00
parent 43b6472a7a
commit 62b6406581
4 changed files with 134 additions and 62 deletions

View File

@ -159,3 +159,26 @@ h1,label {
outline: 0;
}
.control-group .controls div {
display: block;
}
.control-group .controls div {
padding-top: 5px;
margin-bottom: 5px;
}
.control-group .controls div label.checkbox,
.control-group .controls div label.radio {
display: inline-block;
padding: 0 5px 0 5px;
line-height: 20px;
vertical-align: middle;
}
.control-group .controls div input[type=checkbox],
.control-group .controls div input[type=radio] {
line-height: 20px;
vertical-align: middle;
margin: 0;
}

View File

@ -16,6 +16,8 @@
"client": {
"client-form": {
"access": "Access",
"allow-introspection": "Allow calls to the Introspection Endpoint?",
"authorization-code": "authorization code",
"client-description": "Description",
"client-description-help": "Human-readable text description",
"client-description-placeholder": "Type a description",
@ -27,20 +29,32 @@
"client-name-placeholder": "Type something",
"contacts": "Kontakter",
"contacts-placeholder": "new contact",
"client-credentials": "client credentials",
"credentials": "Credentials",
"crypto": "Crypto",
"edit": "Edit Client",
"grant-types": "Grant Types",
"home": "Home Page",
"home-help": "URL for the client's home page, will be displayed to the user",
"implicit": "implicit",
"introspection": "Introspection",
"logo": "Logo",
"logo-help": "URL that points to a logo image, will be displayed on approval page",
"main": "Main",
"new": "New Client",
"other": "Other",
"pairwise": "Pairwise",
"password": "password",
"policy": "Policy Statement",
"policy-help": "URL for the Policy Statement of this client, will be displayed to the user",
"public": "Public",
"redelegation": "redelegation",
"redirect-uris": "Redirect URI(s)",
"refresh": "refresh",
"registered": "Registered at",
"response-types": "Response Types",
"sector-identifier": "Sector Identifier URI",
"subject-type": "Subject Type",
"terms": "Terms of Service",
"terms-help": "URL for the Terms of Service of this client, will be displayed to the user",
"tokens": "Tokens",
@ -115,6 +129,7 @@
"structured": "is a structured scope",
"structured-help": "Is the scope structured with structured values like <code>base:extension</code>?",
"structured-param-help": "Human-readable description of the structured parameter",
"subject-type": "Subject Type",
"value": "Scope value",
"value-help": "Single string with no spaces",
"value-placeholder": "scope"

View File

@ -16,6 +16,9 @@
"client": {
"client-form": {
"access": "Behörigheter",
"allow-introspection": "Tillåt anrop till introspektionsfunktionen?",
"authorization-code": "auktoriseringskod",
"client-credentials": "klienthemligheter",
"client-description": "Beskrivning",
"client-description-help": "Läsbar och begriplig text som beskriver klienten",
"client-description-placeholder": "Mata in en beskrivning",
@ -25,22 +28,33 @@
"client-name": "Klientnamn",
"client-name-help": "Läsbar och begripligt namn på klienten",
"client-name-placeholder": "Skriv någonting",
"client-password": "lösenord",
"contacts": "Kontakter",
"contacts-placeholder": "ny kontakt",
"credentials": "Hemligheter",
"crypto": "Krypto",
"edit": "Ändra klient",
"grant-types": "Grant-typer",
"home": "Hemsida",
"home-help": "Länk till tjänstens hemsida. Den kommer att visas på bekräftelsesidan.",
"implicit": "implicit",
"introspection": "Introspektion",
"logo": "Logotyp",
"logo-help": "Länk till en logotyp. Den kommer att visas på bekräftelsesidan.",
"main": "Basinformation",
"new": "Ny klient",
"other": "Övrigt",
"pairwise": "Parvis",
"policy": "Policy-information",
"policy-help": "Länk till en sida som beskriver tjänstens policy. Den visas på bekräftelsesidan.",
"public": "Publik",
"redelegation": "redelegation",
"redirect-uris": "Omdirigieringslänkar",
"refresh": "refresh",
"registered": "Registrerad",
"sector-identifier": "Sector Identifier-länk",
"sector-identifier-help": "Sector Identifier för JavaScript.",
"subject-type": "Subjekttyp",
"terms": "Villkor för tjänsten",
"terms-help": "Länk till en sida som beskriver villkor för tjänsten. Den visas på bekräftelsesidan.",
"tokens": "Nycklar",

View File

@ -271,10 +271,12 @@
<div class="control-group" id="applicationType">
<label class="control-label"><span class="label label-default nyi"><i class="icon-road icon-white"></i> NYI </span> <span data-i18n="client.client-form.type">Application Type</span></label>
<div class="controls">
<input type="radio" name="applicationType" value="NATIVE" <%-(applicationType == 'NATIVE' ? 'checked' : '')%>>
<div>
<input type="radio" name="applicationType" value="NATIVE" <%-(applicationType == 'NATIVE' ? 'checked' : '')%>>
<label class="radio inline" data-i18n="client.client-form.type-native">Native</label>
<input type="radio" name="applicationType" value="WEB" <%-(applicationType == 'WEB' ? 'checked' : '')%>>
<input type="radio" name="applicationType" value="WEB" <%-(applicationType == 'WEB' ? 'checked' : '')%>>
<label class="radio inline" data-i18n="client.client-form.type-web">Web</label>
</div>
</div>
</div>
@ -288,97 +290,115 @@
<div class="tab-pane" id="client-access-tab">
<div class="control-group" id="scope">
<label class="control-label">Scope</label>
<label class="control-label" data-i18n="common.scope">Scope</label>
<div class="controls">
</div>
</div>
<div class="control-group" id="grantTypes">
<label class="control-label">Grant Types</label>
<label class="control-label" data-i18n="client.client-form.grant-types">Grant Types</label>
<div class="controls">
<label class="checkbox">
<div>
<input id="grantTypes-authorization_code" type="checkbox"
<%-($.inArray("authorization_code", grantTypes) > -1 ? 'checked' : '')%>>
authorization code
</label>
<label class="checkbox">
<input id="grantTypes-client_credentials" type="checkbox"
<%-($.inArray("client_credentials", grantTypes) > -1 ? 'checked' : '')%>> client credentials
</label>
<label class="checkbox">
<input id="grantTypes-password" type="checkbox" <%-($.inArray("password", grantTypes) > -1 ? 'checked' : '')%>> password
</label>
<label class="checkbox">
<input id="grantTypes-implicit" type="checkbox" <%-($.inArray("implicit", grantTypes) > -1 ? 'checked' : '')%>> implicit
</label>
<!--
<label class="checkbox">
<input id="grantTypes-refresh_token" type="checkbox" <%-($.inArray("refresh_token", grantTypes) > -1 ? 'checked' : '')%>> refresh
</label>
-->
<label class="checkbox">
<input id="grantTypes-redelegate" type="checkbox" <%-($.inArray("urn:ietf:params:oauth:grant_type:redelegate", grantTypes) > -1 ? 'checked' : '')%>> redelegate
</label>
<%-($.inArray("authorization_code", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-authorization_code" class="checkbox" data-i18n="client.client-form.authorization-code">authorization code</label>
</div>
<div>
<input id="grantTypes-client_credentials" type="checkbox"
<%-($.inArray("client_credentials", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-client_credentials" class="checkbox" data-i18n="client.client-form.client-credentials">client credentials</label>
</div>
<div>
<input id="grantTypes-password" type="checkbox"
<%-($.inArray("password", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-password" class="checkbox" data-i18n="client.client-form.password">password</label>
</div>
<div>
<input id="grantTypes-implicit" type="checkbox"
<%-($.inArray("implicit", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-implicit" class="checkbox" data-i18n="client.client-form.implicit">implicit</label>
</div>
<!--
<div>
<input id="grantTypes-refresh_token" type="checkbox"
<%-($.inArray("refresh_token", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-refresh_token" class="checkbox" data-i18n="client.client-form.refresh">refresh</label>
</div>
-->
<div>
<input id="grantTypes-redelegate" type="checkbox"
<%-($.inArray("urn:ietf:params:oauth:grant_type:redelegate", grantTypes) > -1 ? 'checked' : '')%>>
<label for="grantTypes-redelegate" class="checkbox" data-i18n="client.client-form.redelegation">redelegate</label>
</div>
</div>
</div>
<div class="control-group" id="responseTypes">
<label class="control-label"><span class="label label-default nyi"><i class="icon-road icon-white"></i> NYI </span> Response Types</label>
<label class="control-label"><span class="label label-default nyi"><i class="icon-road icon-white"></i> NYI </span> <span data-i18n="client.client-form.response-types">Response Types</span></label>
<div class="controls">
<label class="checkbox">
<input id="responseTypes-code" type="checkbox" <%-($.inArray("code", responseTypes) > -1 ? 'checked' : '')%>> code
</label>
<label class="checkbox">
<input id="responseTypes-token" type="checkbox" <%-($.inArray("token", responseTypes) > -1 ? 'checked' : '')%>> token
</label>
<label class="checkbox">
<input id="responseTypes-idtoken" type="checkbox" <%-($.inArray("id_token", responseTypes) > -1 ? 'checked' : '')%>> id_token
</label>
<label class="checkbox">
<input id="responseTypes-token-idtoken" type="checkbox" <%-($.inArray("token id_token", responseTypes) > -1 ? 'checked' : '')%>> token id_token
</label>
<label class="checkbox">
<input id="responseTypes-code-idtoken" type="checkbox" <%-($.inArray("code id_token", responseTypes) > -1 ? 'checked' : '')%>> code id_token
</label>
<label class="checkbox">
<input id="responseTypes-code-token" type="checkbox" <%-($.inArray("code token", responseTypes) > -1 ? 'checked' : '')%>> code token
</label>
<label class="checkbox">
<input id="responseTypes-code-token-idtoken" type="checkbox" <%-($.inArray("code token id_token", responseTypes) > -1 ? 'checked' : '')%>> code token id_token
</label>
<div>
<input id="responseTypes-code" type="checkbox" <%-($.inArray("code", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">code</label>
</div>
<div>
<input id="responseTypes-token" type="checkbox" <%-($.inArray("token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">token</label>
</div>
<div>
<input id="responseTypes-idtoken" type="checkbox" <%-($.inArray("id_token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">id_token</label>
</div>
<div>
<input id="responseTypes-token-idtoken" type="checkbox" <%-($.inArray("token id_token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">token id_token</label>
</div>
<div>
<input id="responseTypes-code-idtoken" type="checkbox" <%-($.inArray("code id_token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">code id_token</label>
</div>
<div>
<input id="responseTypes-code-token" type="checkbox" <%-($.inArray("code token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">code token</label>
</div>
<div>
<input id="responseTypes-code-token-idtoken" type="checkbox" <%-($.inArray("code token id_token", responseTypes) > -1 ? 'checked' : '')%>>
<label class="checkbox">code token id_token</label>
</div>
</div>
</div>
<div class="control-group" id="allowIntrospection">
<label class="control-label">Introspection</label>
<label class="control-label" client.client.form.introspection" data-i18n="client.client-form.introspection">Introspection</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" <%-(allowIntrospection == true ? 'checked' : '')%>> Allow calls to the Introspection Endpoint?
</label>
<div>
<label class="checkbox" data-i18n="client.client-form.allow-introspection">Allow calls to the Introspection Endpoint?</label>
<input type="checkbox" <%-(allowIntrospection == true ? 'checked' : '')%>>
</div>
</div>
</div>
<div class="control-group" id="subjectType">
<label class="control-label">Subject Type</label>
<label class="control-label" data-i18n="client.client-form.subject-type">Subject Type</label>
<div class="controls">
<label class="radio inline">
<input type="radio" name="subjectType" value="PUBLIC" <%-(subjectType == 'PUBLIC' ? 'checked' : '')%>> Public
</label>
<label class="radio inline">
<input type="radio" name="subjectType" value="PAIRWISE" <%-(subjectType == 'PAIRWISE' ? 'checked' : '')%>> Pairwise
</label>
<div>
<input type="radio" name="subjectType" value="PUBLIC" <%-(subjectType == 'PUBLIC' ? 'checked' : '')%>>
<label class="radio inline" data-i18n="client.client-form.public">Public</label>
<input type="radio" name="subjectType" value="PAIRWISE" <%-(subjectType == 'PAIRWISE' ? 'checked' : '')%>>
<label class="radio inline" data-i18n="client.client-form.pairwise">Pairwise</label>
</div>
</div>
</div>
<div class="control-group" id="sectorIdentifierUri">
<label class="control-label">Sector Identifier URI</label>
<label class="control-label" data-i18n="client.client-form.sector-identifier">Sector Identifier URI</label>
<div class="controls">
<input placeholder="https://" value="<%-sectorIdentifierUri%>" maxlength="1000" type="text" class=""/>
<p class="help-block">Sector Identifier for JavaScript</p>
<p class="help-block" data-i18n="client.client-form.sector-identifier-help">Sector Identifier for JavaScript</p>
</div>
</div>