Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
c4e06868
Commit
c4e06868
authored
Oct 27, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change comment as English comment
parent
86177773
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
43 deletions
+51
-43
abvw/common/confirm-modal.html
+4
-5
abvw/common/header.html
+0
-1
abvw/common/js/newdash/common.js
+30
-31
abvw/common/json/lang/lang-en.json
+6
-2
abvw/common/json/lang/lang-ja.json
+6
-1
abvw/common/json/lang/lang-ko.json
+5
-1
abvw/html/dashboard.html
+0
-2
No files found.
abvw/common/confirm-modal.html
View file @
c4e06868
...
@@ -2,17 +2,16 @@
...
@@ -2,17 +2,16 @@
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-dark10"
>
<div
class=
"modal-header bg-dark10"
>
<h5
class=
"modal-title
"
>
確認
</h5>
<h5
class=
"modal-title
lang"
lang=
"confirmation"
>
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</button>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"msgModel"
>
XXXXしますか?
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
>
はい
</button>
<button
type=
"button"
class=
"btn btn-primary
lang"
lang=
"confirmYes
"
>
はい
</button>
<button
type=
"button"
class=
"btn btn-tertiary
"
data-dismiss=
"modal"
>
いいえ
</button>
<button
type=
"button"
class=
"btn btn-tertiary
lang"
lang=
"confirmNo"
data-dismiss=
"modal"
>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
abvw/common/header.html
View file @
c4e06868
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
<a
class=
"dropdown-item "
href=
"#"
data-toggle=
"modal"
data-target=
"#confirm-modal"
>
<a
class=
"dropdown-item "
href=
"#"
data-toggle=
"modal"
data-target=
"#confirm-modal"
>
<img
src=
"../common/img/menu_icon_logout.svg"
alt=
"ログアウト"
class=
"navbar-dropdown-icon"
>
<img
src=
"../common/img/menu_icon_logout.svg"
alt=
"ログアウト"
class=
"navbar-dropdown-icon"
>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"dspLogout"
></span>
<span
class=
"lang"
style=
" color: #6c757d;"
lang=
"dspLogout"
></span>
</a>
</a>
</div>
</div>
</div>
</div>
...
...
abvw/common/js/newdash/common.js
View file @
c4e06868
$
(
function
(){
$
(
function
(){
hide_del_btn
();
hide_del_btn
();
});
});
/** Handle press the Add button */
// 追加ボタン押下
$
(
'.add'
).
on
(
'click'
,
function
(){
$
(
'.add'
).
on
(
'click'
,
function
(){
var
base
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb-item'
);
var
base
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb-item'
);
base
.
find
(
'.del'
).
show
();
base
.
find
(
'.del'
).
show
();
//
入力フォームをクローン
//
clone input form
base
.
clone
(
true
).
insertAfter
(
base
);
base
.
clone
(
true
).
insertAfter
(
base
);
//
追加した要素にスクロール
//
Scroll to added element
$
(
"html,body"
).
animate
({
scrollTop
:
base
.
next
().
offset
().
top
});
$
(
"html,body"
).
animate
({
scrollTop
:
base
.
next
().
offset
().
top
});
//
入力フォームアコーディオン表示
//
Input form accordion display
base
.
parent
().
parent
(
'.tb'
).
find
(
'.ac-tb-form'
).
show
();
base
.
parent
().
parent
(
'.tb'
).
find
(
'.ac-tb-form'
).
show
();
});
});
/** Handle press the Delete button */
// 削除ボタン押下
$
(
'.del'
).
on
(
'click'
,
function
(){
$
(
'.del'
).
on
(
'click'
,
function
(){
var
base
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb-item'
);
var
base
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb-item'
);
var
tbwrap
=
base
.
parent
(
'.tb-wrap'
);
var
tbwrap
=
base
.
parent
(
'.tb-wrap'
);
var
tb
=
tbwrap
.
parent
(
'.tb'
);
var
tb
=
tbwrap
.
parent
(
'.tb'
);
//
エリアの削除
//
Delete area
base
.
remove
();
base
.
remove
();
//
ボタンの表示非表示切り替え
//
Hidden delete button
hide_del_btn
();
hide_del_btn
();
//
フォームエリア表示切り替え
//
Form area display switch
tbWrapClear
(
tbwrap
);
tbWrapClear
(
tbwrap
);
//
折りたたみアイコン非表示
//
Hide collapse icon
if
(
tb
.
find
(
'.ac-tb-form'
).
is
(
':hidden'
)){
if
(
tb
.
find
(
'.ac-tb-form'
).
is
(
':hidden'
)){
tb
.
find
(
'.fold-area'
).
addClass
(
'hide'
);
tb
.
find
(
'.fold-area'
).
addClass
(
'hide'
);
}
}
});
});
/
/ 閉じるボタン押下
/
** handle Press the close button */
$
(
'.close-window'
).
on
(
'click'
,
function
(){
$
(
'.close-window'
).
on
(
'click'
,
function
(){
window
.
close
();
window
.
close
();
});
});
/
/ 表領域のフォームが一つの時、削除ボタンを非表示
/
** Hide delete button when there is only one tablespace form */
function
hide_del_btn
(){
function
hide_del_btn
(){
$
(
'.tb-wrap'
).
each
(
function
(
i
,
elem
){
$
(
'.tb-wrap'
).
each
(
function
(
i
,
elem
){
var
len
=
$
(
elem
).
find
(
'.tb-item'
).
length
;
var
len
=
$
(
elem
).
find
(
'.tb-item'
).
length
;
//
表の項目が一つの場合
//
When there is one item in the table
if
(
len
<=
1
){
if
(
len
<=
1
){
$
(
elem
).
find
(
'.del'
).
hide
();
$
(
elem
).
find
(
'.del'
).
hide
();
$
(
this
).
children
(
'.tb-item'
).
removeClass
(
'visually-hidden'
);
$
(
this
).
children
(
'.tb-item'
).
removeClass
(
'visually-hidden'
);
//
入力フォームアコーディオン非表示
//
Input form accordion hidden
$
(
this
).
parent
().
find
(
'.ac-tb-form'
).
hide
();
$
(
this
).
parent
().
find
(
'.ac-tb-form'
).
hide
();
}
}
});
});
}
}
/** Handle when deleting while closing the accordion */
// アコーディオンを閉めている際にフォームを削除した場合
// 子要素がすべて非表示の場合、親要素を非表示とする
function
tbWrapClear
(
tbwrap
){
function
tbWrapClear
(
tbwrap
){
// If you delete the form while closing the accordion
// Hide parent element if all child elements are hidden
if
(
tbwrap
.
children
(
':not(.visually-hidden)'
).
length
==
0
){
if
(
tbwrap
.
children
(
':not(.visually-hidden)'
).
length
==
0
){
tbwrap
.
addClass
(
"visually-hidden"
);
tbwrap
.
addClass
(
"visually-hidden"
);
}
}
...
@@ -65,7 +63,7 @@ function tbWrapClear(tbwrap){
...
@@ -65,7 +63,7 @@ function tbWrapClear(tbwrap){
}
}
}
}
/
/ 入力フォームアコーディオン
/
** input form accordion */
$
(
'.ac-tb-form'
).
on
(
'click'
,
function
(){
$
(
'.ac-tb-form'
).
on
(
'click'
,
function
(){
var
tb
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb'
);
var
tb
=
$
(
this
).
parent
().
parent
().
parent
(
'.tb'
);
var
elems
=
tb
.
find
(
'.tb-wrap'
).
find
(
'.tb-item'
);
var
elems
=
tb
.
find
(
'.tb-wrap'
).
find
(
'.tb-item'
);
...
@@ -79,28 +77,28 @@ $('.ac-tb-form').on('click',function(){
...
@@ -79,28 +77,28 @@ $('.ac-tb-form').on('click',function(){
});
});
$
(
this
).
text
(
'開く'
);
$
(
this
).
text
(
'開く'
);
//
フォームエリア表示切り替え
//
Form area display switch
tbWrapClear
(
tbwrap
);
tbWrapClear
(
tbwrap
);
//
折りたたみアイコン表示
//
Collapse icon view
tb
.
find
(
'.fold-area'
).
removeClass
(
'hide'
);
tb
.
find
(
'.fold-area'
).
removeClass
(
'hide'
);
}
else
{
}
else
{
elems
.
removeClass
(
'visually-hidden'
);
elems
.
removeClass
(
'visually-hidden'
);
$
(
this
).
text
(
'閉じる'
);
$
(
this
).
text
(
'閉じる'
);
//
フォームエリア表示切り替え
//
Form area display switch
tbWrapClear
(
tbwrap
);
tbWrapClear
(
tbwrap
);
//
折りたたみアイコン非表示
//
Hide collapse icon
tb
.
find
(
'.fold-area'
).
addClass
(
'hide'
);
tb
.
find
(
'.fold-area'
).
addClass
(
'hide'
);
}
}
//
開閉
//
opening and closing
$
(
this
).
toggleClass
(
"hide"
);
$
(
this
).
toggleClass
(
"hide"
);
});
});
/
/ トグル切り替え
/
** toggle switch */
$
(
".toggle"
).
on
(
"click"
,
function
()
{
$
(
".toggle"
).
on
(
"click"
,
function
()
{
$
(
this
).
toggleClass
(
"checked"
);
$
(
this
).
toggleClass
(
"checked"
);
if
(
!
$
(
'input[name="check"]'
).
prop
(
"checked"
))
{
if
(
!
$
(
'input[name="check"]'
).
prop
(
"checked"
))
{
...
@@ -111,24 +109,25 @@ $(".toggle").on("click", function() {
...
@@ -111,24 +109,25 @@ $(".toggle").on("click", function() {
});
});
/
/ メニュー表示
/
** Menu display */
$
(
'.c-dropdown-trigger'
).
on
(
"click"
,
function
(){
$
(
'.c-dropdown-trigger'
).
on
(
"click"
,
function
(){
$
(
'[data-target="'
+
$
(
this
).
attr
(
'id'
)
+
'"]'
).
toggleClass
(
'show'
);
$
(
'[data-target="'
+
$
(
this
).
attr
(
'id'
)
+
'"]'
).
toggleClass
(
'show'
);
$
(
'.mask'
).
removeClass
(
'hide'
);
$
(
'.mask'
).
removeClass
(
'hide'
);
});
});
// メニューを閉じる
/** Close menu */
$
(
'.mask'
).
on
(
"click"
,
function
(){
$
(
'.mask'
).
on
(
"click"
,
function
(){
$
(
'.mask'
).
addClass
(
'hide'
);
$
(
'.mask'
).
addClass
(
'hide'
);
$
(
'.c-dropdown-menu'
).
removeClass
(
'show'
);
$
(
'.c-dropdown-menu'
).
removeClass
(
'show'
);
});
});
/
/ カードリスト選択
/
** Select card list */
$
(
'.select-card-list .card .select-label'
).
on
(
"click"
,
function
(){
$
(
'.select-card-list .card .select-label'
).
on
(
"click"
,
function
(){
$
(
this
).
closest
(
'.select-card-list'
).
find
(
'.card'
).
removeClass
(
'selected'
);
$
(
this
).
closest
(
'.select-card-list'
).
find
(
'.card'
).
removeClass
(
'selected'
);
$
(
this
).
closest
(
'.card'
).
addClass
(
'selected'
);
$
(
this
).
closest
(
'.card'
).
addClass
(
'selected'
);
});
});
/
/ リスト表示切替(リスト表示)
/
** List display switching (list display) */
$
(
'.view-menu .view-list-btn'
).
on
(
"click"
,
function
(){
$
(
'.view-menu .view-list-btn'
).
on
(
"click"
,
function
(){
$
(
'.view-block-btn'
).
removeClass
(
'active'
);
$
(
'.view-block-btn'
).
removeClass
(
'active'
);
$
(
'.view-list-btn'
).
addClass
(
'active'
);
$
(
'.view-list-btn'
).
addClass
(
'active'
);
...
@@ -136,7 +135,7 @@ $('.view-menu .view-list-btn').on("click",function(){
...
@@ -136,7 +135,7 @@ $('.view-menu .view-list-btn').on("click",function(){
$
(
'.view-content'
).
addClass
(
'view-list'
);
$
(
'.view-content'
).
addClass
(
'view-list'
);
});
});
/
/ リスト表示切替(グリッド表示)
/
** List display switching (grid display) */
$
(
'.view-menu .view-block-btn'
).
on
(
"click"
,
function
(){
$
(
'.view-menu .view-block-btn'
).
on
(
"click"
,
function
(){
$
(
'.view-list-btn'
).
removeClass
(
'active'
);
$
(
'.view-list-btn'
).
removeClass
(
'active'
);
$
(
'.view-block-btn'
).
addClass
(
'active'
);
$
(
'.view-block-btn'
).
addClass
(
'active'
);
...
@@ -144,7 +143,7 @@ $('.view-menu .view-block-btn').on("click",function(){
...
@@ -144,7 +143,7 @@ $('.view-menu .view-block-btn').on("click",function(){
$
(
'.view-content'
).
addClass
(
'view-block'
);
$
(
'.view-content'
).
addClass
(
'view-block'
);
});
});
/
/ ローディング
/
** loading */
$
(
function
(){
$
(
function
(){
function
e
()
{
function
e
()
{
setTimeout
(
function
(){
setTimeout
(
function
(){
...
...
abvw/common/json/lang/lang-en.json
View file @
c4e06868
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
"workWithWarningsTitle"
:
"Work with warnings"
,
"workWithWarningsTitle"
:
"Work with warnings"
,
"messageListTitle"
:
"Message List"
,
"messageListTitle"
:
"Message List"
,
"sendMessageTitle"
:
"Send Message"
,
"sendMessageTitle"
:
"Send Message"
,
"distanceSupportTitle"
:
"DistanceSupport"
,
"distanceSupportTitle"
:
"Distance
Support"
,
"chatTitle"
:
"Chat"
,
"chatTitle"
:
"Chat"
,
"makeDashboardAsHome"
:
"Set dashboard to home screen"
,
"makeDashboardAsHome"
:
"Set dashboard to home screen"
,
"btnKeep"
:
"Keep"
,
"btnKeep"
:
"Keep"
,
...
@@ -58,6 +58,9 @@
...
@@ -58,6 +58,9 @@
"display"
:
" display"
,
"display"
:
" display"
,
"reportLevelReport"
:
"Report"
,
"reportLevelReport"
:
"Report"
,
"reportLevelAnswer"
:
"Answer"
,
"reportLevelAnswer"
:
"Answer"
,
"msgNotFound"
:
"There is no applicable work."
"msgNotFound"
:
"There is no applicable work."
,
"confirmation"
:
"confirmation"
,
"confirmYes"
:
"Yes"
,
"confirmNo"
:
"No"
}
}
\ No newline at end of file
abvw/common/json/lang/lang-ja.json
View file @
c4e06868
...
@@ -58,5 +58,9 @@
...
@@ -58,5 +58,9 @@
"display"
:
" 件表示"
,
"display"
:
" 件表示"
,
"reportLevelReport"
:
"報告"
,
"reportLevelReport"
:
"報告"
,
"reportLevelAnswer"
:
"回答"
,
"reportLevelAnswer"
:
"回答"
,
"msgNotFound"
:
"該当する作業がありません。"
"msgNotFound"
:
"該当する作業がありません。"
,
"confirmation"
:
"確認"
,
"confirmYes"
:
"はい"
,
"confirmNo"
:
"いいえ"
}
}
\ No newline at end of file
abvw/common/json/lang/lang-ko.json
View file @
c4e06868
...
@@ -58,5 +58,8 @@
...
@@ -58,5 +58,8 @@
"display"
:
" display"
,
"display"
:
" display"
,
"reportLevelReport"
:
"Report"
,
"reportLevelReport"
:
"Report"
,
"reportLevelAnswer"
:
"Answer"
,
"reportLevelAnswer"
:
"Answer"
,
"msgNotFound"
:
"There is no applicable work."
"msgNotFound"
:
"There is no applicable work."
,
"confirmation"
:
"confirmation"
,
"confirmYes"
:
"Yes"
,
"confirmNo"
:
"No"
}
}
\ No newline at end of file
abvw/html/dashboard.html
View file @
c4e06868
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
<body
onload=
"DASHBOARD.init();"
>
<body
onload=
"DASHBOARD.init();"
>
<!-- header -->
<!-- header -->
<!-- <?php include('common/header.html');?> -->
<div
id=
"includedHeader"
></div>
<div
id=
"includedHeader"
></div>
<!-- dashboard -->
<!-- dashboard -->
<main>
<main>
...
@@ -65,7 +64,6 @@
...
@@ -65,7 +64,6 @@
<div
id=
"includedDashboardSetting"
></div>
<div
id=
"includedDashboardSetting"
></div>
<!-- confirm -->
<!-- confirm -->
<!-- <?php include('common/confirm-modal.html');?> -->
<div
id=
"includedConfirmModal"
></div>
<div
id=
"includedConfirmModal"
></div>
</body>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment