Commit bb12f258 by NGUYEN HOANG SON

implement message detail lang, data

parent f4f4ccb9
......@@ -54,6 +54,10 @@
"chatTitle":"Chat",
"makeDashboardAsHome":"Make dashboard your home screen",
"btnKeep":"Keep",
"messageListEmpty":"No Messages"
"messageListEmpty":"No Messages",
"messageDetail":"Message Details",
"operationName":"Operation Name",
"sendDate":"Send Date",
"sender":"Sender",
"content":"Content"
}
\ No newline at end of file
......@@ -54,5 +54,10 @@
"chatTitle":"チャット",
"makeDashboardAsHome":"ダッシュボードをホーム画面にする",
"btnKeep":"保存",
"messageListEmpty":"メッセージがありません。"
"messageListEmpty":"メッセージがありません。",
"messageDetail":"メッセージ詳細",
"operationName":"作業名",
"sendDate":"送信日時",
"sender":"送信者",
"content":"内容"
}
\ No newline at end of file
......@@ -54,5 +54,10 @@
"chatTitle":"Chat",
"makeDashboardAsHome":"Make dashboard your home screen",
"btnKeep":"Keep",
"messageListEmpty":"No Messages"
"messageListEmpty":"No Messages",
"messageDetail":"Message Details",
"operationName":"Operation Name",
"sendDate":"Send Date",
"sender":"Sender",
"content":"Content"
}
\ No newline at end of file
......@@ -41,12 +41,12 @@
<ol class="breadcrumb px-0 mb-0">
<li class="breadcrumb-item"><a href="dashboard.html" class="text-decoration-none text-underline lang" lang="dashboard"></a></li>
<li class="breadcrumb-item"><a href="message-list.html" class="text-decoration-none text-underline lang" lang="messageListTitle"></a></li>
<li class="breadcrumb-item active" aria-current="page"><span>メッセージ詳細</span></li>
<li class="breadcrumb-item active lang" lang="messageDetail" aria-current="page"><span></span></li>
</ol>
</nav>
<!-- title -->
<h1 class="fs-14 font-weight-bold pt-sm-4 pt-2 pb-3 mb-0">メッセージ詳細</h1>
<h1 class="fs-14 font-weight-bold pt-sm-4 pt-2 pb-3 mb-0 lang" lang="messageDetail"></h1>
<!-- message detail -->
<div class="row">
......@@ -58,20 +58,20 @@
</colgroup>
<tbody>
<tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">作業名</th>
<td class="p-2">絞り検索</td>
<th class="fs-9 p-2 text-secondary lang" lang="operationName"></th>
<td class="p-2" id="operationName"></td>
</tr>
<tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">送信日時</th>
<td class="p-2">2022/07/06 14:14</td>
<th class="fs-9 p-2 text-secondary lang" lang="sendDate"></th>
<td class="p-2" id="sendDate"></td>
</tr>
<tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">送信者</th>
<td class="p-2">agentec</td>
<th class="fs-9 p-2 text-secondary lang" lang="sender"></th>
<td class="p-2" id="sender"></td>
</tr>
<tr class="border-bottom">
<th class="fs-9 p-2 text-secondary">内容</th>
<td class="p-2">内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。内容が入ります。</td>
<th class="fs-9 p-2 text-secondary lang" lang="content"></th>
<td class="p-2" id="content"></td>
</tr>
</tbody>
</table>
......
......@@ -2,23 +2,22 @@ var PushMessageDetail = {};
PushMessageDetail.baseApiUrl = CONSTANT.URL.CMS.BASE + ClientData.userInfo_accountPath() + CONSTANT.URL.CMS.API.BASE + 'pushMessageDetail/';
// msgMap.messageDetailTopTitle = {ja:"プッシュメッセージ詳細", ko:"푸시 메시지 상세", en:"Push message details"};
// msgMap.messageDetailHeaderTitle = {ja:"メッセージ詳細", ko:"메시지 상세", en:"Message Details"};
// msgMap.messageDetailContentTitle = {ja:"件名", ko:"내용", en:"Content"};
// msgMap.messageDetailSendDateTitle = {ja:"日時", ko:"일시", en:"Send Date"};
// msgMap.messageDetailWorkingNameTitle = {ja:"作業名", ko:"작업명", en:"Operation Name"};
// msgMap.messageDetailSenderTitle = {ja:"送信者", ko:"송신자", en:"Sender"};
PushMessageDetail.dummyMessageDetailJson = {
pushMessage: "内容が入ります。内容が入ります。内容が入ります。内容が入ります。",
pushSendDate: "2022/07/06 14:14",
operationName: "絞り検索",
pushSendLoginId: "agentec"
}
PushMessageDetail.init = function() {
$("#includedHeader").load("../common/header.html" , function() {
I18N.initi18n();
});
var urlParam = CHK.getUrlParameter();
let urlParam = COMMON.getUrlParameter();
if (typeof urlParam !== 'object' || typeof urlParam.pushMessageId === 'undefined') {
return;
}
let messageId = urlParam.pushMessageId;
PushMessageDetail.getMessageDetail(messageId, function(message) {
PushMessageDetail.getMessageDetail(urlParam.pushMessageId, function(message) {
PushMessageDetail.showMessage(message);
});
}
......@@ -42,13 +41,8 @@ PushMessageDetail.getMessageDetail = function(pushMessageId, callback) {
}
PushMessageDetail.showMessage = function(message) {
$('#messageDetail #message').text(message.pushMessage);
var mDate = message.pushSendDate;
if (CHK.isAndroid)
{
mDate = CHK.getFormatDate(new Date(message.pushSendDate));
}
$('#messageDetail #sendDate').text(mDate);
$('#messageDetail #operationName').text(message.operationName);
$('#messageDetail #sender').text(message.pushSendLoginId);
$('#content').text(message.pushMessage);
$('#sendDate').text(message.pushSendDate);
$('#operationName').text(message.operationName);
$('#sender').text(message.pushSendLoginId);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment