summaryrefslogtreecommitdiffstats
path: root/base/tps/shared/webapps/tps/ui
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-02-03 19:20:31 +0100
committerEndi S. Dewata <edewata@redhat.com>2016-02-05 22:40:44 +0100
commit9bd94a0a54793a0720b803846ce2291e5064c2ae (patch)
tree0e0d5731923844454c23fc89e7a10b5abb708a58 /base/tps/shared/webapps/tps/ui
parent987dda15acdd6e6f4c7c477fed122a76ad40260c (diff)
downloadpki-9bd94a0a54793a0720b803846ce2291e5064c2ae.tar.gz
pki-9bd94a0a54793a0720b803846ce2291e5064c2ae.tar.xz
pki-9bd94a0a54793a0720b803846ce2291e5064c2ae.zip
Added resource bundle for token state labels.
The labels for token states and the transitions are now stored in token-states.properties. The default file will be stored in the /usr/share/pki/tps/conf, but it can be overriden by copying and customizing the file into <instance>/tps/conf. When the UI retrieves the token data the labels for the current state and the valid transitions will be loaded from the file and returned to the UI. The UI will show the transition labels in the dropdown list for changing token status. https://fedorahosted.org/pki/ticket/1289 https://fedorahosted.org/pki/ticket/1291
Diffstat (limited to 'base/tps/shared/webapps/tps/ui')
-rw-r--r--base/tps/shared/webapps/tps/ui/token.html2
-rw-r--r--base/tps/shared/webapps/tps/ui/tokens.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/base/tps/shared/webapps/tps/ui/token.html b/base/tps/shared/webapps/tps/ui/token.html
index aaf181414..bc4b01d22 100644
--- a/base/tps/shared/webapps/tps/ui/token.html
+++ b/base/tps/shared/webapps/tps/ui/token.html
@@ -60,7 +60,7 @@
<label name="modifyTimestamp">Modified</label>
<input name="modifyTimestamp" readonly="readonly"><br>
<label name="status">Status</label>
- <input name="statusLabel" readonly="readonly"><br>
+ <input name="status" readonly="readonly"><br>
</fieldset>
</div>
diff --git a/base/tps/shared/webapps/tps/ui/tokens.html b/base/tps/shared/webapps/tps/ui/tokens.html
index ec89de958..b0782d373 100644
--- a/base/tps/shared/webapps/tps/ui/tokens.html
+++ b/base/tps/shared/webapps/tps/ui/tokens.html
@@ -56,7 +56,7 @@
<td name="id"><a href="#tokens/${id}">${id}</a></td>
<td name="userID">${userID}</td>
<td name="type">${type}</td>
- <td name="status"><a href="#tokens/${id}/status">${statusLabel}</a></td>
+ <td name="status"><a href="#tokens/${id}/status">${status.label}</a></td>
<td name="appletID">${appletID}</td>
<td name="keyInfo">${keyInfo}</td>
<td name="policy">${policy}</td>