Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tungnq
AppUms_Lecturer
Commits
7b2836db
Commit
7b2836db
authored
Sep 09, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã dựng xong giao diện list danh sách điểm danh của lớp học
parent
0be258de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
23 deletions
+34
-23
style.js
src/screens/roll_call/style.js
+16
-11
view.js
src/screens/roll_call/view.js
+18
-12
No files found.
src/screens/roll_call/style.js
View file @
7b2836db
...
@@ -10,7 +10,6 @@ const styles = StyleSheet.create({
...
@@ -10,7 +10,6 @@ const styles = StyleSheet.create({
body
:
{
body
:
{
flex
:
1
,
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
,
backgroundColor
:
R
.
colors
.
white
,
paddingHorizontal
:
15
},
},
card
:
{
card
:
{
borderWidth
:
1
,
borderWidth
:
1
,
...
@@ -27,6 +26,7 @@ const styles = StyleSheet.create({
...
@@ -27,6 +26,7 @@ const styles = StyleSheet.create({
shadowOpacity
:
Platform
.
OS
===
'ios'
?
0.25
:
1
,
shadowOpacity
:
Platform
.
OS
===
'ios'
?
0.25
:
1
,
shadowRadius
:
5
,
shadowRadius
:
5
,
elevation
:
Platform
.
OS
===
'ios'
?
1
:
2
,
elevation
:
Platform
.
OS
===
'ios'
?
1
:
2
,
marginHorizontal
:
15
},
},
btnCard
:
{
btnCard
:
{
borderRadius
:
10
,
borderRadius
:
10
,
...
@@ -44,7 +44,6 @@ const styles = StyleSheet.create({
...
@@ -44,7 +44,6 @@ const styles = StyleSheet.create({
fontWeight
:
'400'
,
fontWeight
:
'400'
,
},
},
searchContainer
:{
searchContainer
:{
width
:
'100%'
,
flexDirection
:
'row'
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
...
@@ -52,6 +51,7 @@ const styles = StyleSheet.create({
...
@@ -52,6 +51,7 @@ const styles = StyleSheet.create({
borderRadius
:
100
,
borderRadius
:
100
,
paddingHorizontal
:
10
,
paddingHorizontal
:
10
,
paddingVertical
:
5
,
paddingVertical
:
5
,
marginHorizontal
:
15
},
},
textInput
:{
textInput
:{
fontSize
:
R
.
sizes
.
sm
,
fontSize
:
R
.
sizes
.
sm
,
...
@@ -67,16 +67,20 @@ const styles = StyleSheet.create({
...
@@ -67,16 +67,20 @@ const styles = StyleSheet.create({
width
:
24
,
width
:
24
,
height
:
24
,
height
:
24
,
},
},
list
:{
marginVertical
:
10
},
item
:{
item
:{
paddingVertical
:
10
,
paddingVertical
:
10
,
paddingHorizontal
:
15
,
paddingHorizontal
:
15
,
borderRadius
:
10
,
marginHorizontal
:
15
,
borderWidth
:
1
,
marginTop
:
10
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
marginBottom
:
15
,
marginVertical
:
5
,
backgroundColor
:
R
.
colors
.
white
,
borderRadius
:
15
,
shadowColor
:
R
.
colors
.
black
,
shadowOffset
:
{
width
:
0.5
,
height
:
2
},
shadowOpacity
:
Platform
.
OS
===
'ios'
?
0.25
:
1
,
shadowRadius
:
5
,
elevation
:
Platform
.
OS
===
'ios'
?
1
:
2
,
},
},
row
:{
row
:{
flexDirection
:
'row'
,
flexDirection
:
'row'
,
...
@@ -85,12 +89,13 @@ const styles = StyleSheet.create({
...
@@ -85,12 +89,13 @@ const styles = StyleSheet.create({
textTitle
:{
textTitle
:{
fontSize
:
R
.
sizes
.
sm
,
fontSize
:
R
.
sizes
.
sm
,
color
:
R
.
colors
.
black
,
color
:
R
.
colors
.
black
,
fontFamily
:
R
.
fonts
.
font
Regular
,
fontFamily
:
R
.
fonts
.
font
Medium
,
fontWeight
:
'
4
00'
,
fontWeight
:
'
6
00'
,
},
},
btnContainer
:{
btnContainer
:{
flexDirection
:
'row'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
justifyContent
:
'space-between'
,
marginVertical
:
5
},
},
iconQR
:{
iconQR
:{
width
:
24
,
width
:
24
,
...
...
src/screens/roll_call/view.js
View file @
7b2836db
...
@@ -25,32 +25,32 @@ const ListRollCallView = props => {
...
@@ -25,32 +25,32 @@ const ListRollCallView = props => {
<
View
style
=
{
styles
.
row
}
>
<
View
style
=
{
styles
.
row
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
M
ã
l
ớ
p
:
M
ã
l
ớ
p
:
<
Text
style
=
{
styles
.
text
}
>
{
item
.
classCode
}
<
/Text
>
<
Text
style
=
{
[
styles
.
text
,{
color
:
R
.
colors
.
blue
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
}]
}
>
{
item
.
classCode
}
<
/Text
>
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
Đã
h
ọ
c
/
T
ổ
ng
ti
ế
t
:
Đã
h
ọ
c
/
T
ổ
ng
ti
ế
t
:
<
Text
style
=
{
styles
.
text
}
>
<
Text
style
=
{
[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]
}
>
{
item
.
lessonLearned
}
/{item.generalDetails
}
{
item
.
lessonLearned
}
/{item.generalDetails
}
<
/Text
>
<
/Text
>
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
row
}
>
<
View
style
=
{
styles
.
row
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
S
ĩ
s
ố
:
S
ĩ
s
ố
:
{
' '
}
<
Text
style
=
{
styles
.
text
}
>
{
item
.
numberOfStudent
}
<
/Text
>
<
Text
style
=
{
[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]
}
>
{
item
.
numberOfStudent
}
<
/Text
>
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
T
ổ
ng
s
ố
s
inh
vi
ê
n
tr
ượ
t
đ
i
ể
m
danh
:
T
ổ
ng
s
ố
s
v
tr
ượ
t
đ
i
ể
m
danh
:{
' '
}
<
Text
style
=
{
styles
.
text
}
>
{
item
.
totalStudentFailedRollCall
}
<
/Text
>
<
Text
style
=
{
[
styles
.
text
,
{
color
:
R
.
colors
.
red
}]
}
>
{
item
.
totalStudentFailedRollCall
}
<
/Text
>
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
Ng
à
y
b
ắ
t
đầ
u
:
Ng
à
y
b
ắ
t
đầ
u
:
{
' '
}
<
Text
style
=
{
styles
.
text
}
>
{
item
.
dateStart
}
<
/Text
>
<
Text
style
=
{
[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]
}
>
{
item
.
dateStart
}
<
/Text
>
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
Ng
à
y
k
ế
t
th
ú
c
:
Ng
à
y
k
ế
t
th
ú
c
:
{
' '
}
<
Text
style
=
{
styles
.
text
}
>
{
item
.
dateEnd
}
<
/Text
>
<
Text
style
=
{
[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]
}
>
{
item
.
dateEnd
}
<
/Text
>
<
/Text
>
<
/Text
>
<
View
style
=
{
styles
.
btnContainer
}
>
<
View
style
=
{
styles
.
btnContainer
}
>
<
Button
<
Button
...
@@ -58,7 +58,8 @@ const ListRollCallView = props => {
...
@@ -58,7 +58,8 @@ const ListRollCallView = props => {
onPress
=
{()
=>
{}}
onPress
=
{()
=>
{}}
backgroundColor
=
{
R
.
colors
.
brown
}
backgroundColor
=
{
R
.
colors
.
brown
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
fontSize
=
{
12
}
containerStyle
=
{{
paddingHorizontal
:
5
,
paddingVertical
:
5
,
borderRadius
:
20
}}
/
>
/
>
<
Button
<
Button
title
=
"Điểm danh"
title
=
"Điểm danh"
...
@@ -66,6 +67,8 @@ const ListRollCallView = props => {
...
@@ -66,6 +67,8 @@ const ListRollCallView = props => {
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
backgroundColor
=
{
R
.
colors
.
brown
}
backgroundColor
=
{
R
.
colors
.
brown
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
width
=
{
85
}
/
>
/
>
<
Button
<
Button
title
=
"Chi tiết"
title
=
"Chi tiết"
...
@@ -73,6 +76,8 @@ const ListRollCallView = props => {
...
@@ -73,6 +76,8 @@ const ListRollCallView = props => {
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
backgroundColor
=
{
R
.
colors
.
blue
}
backgroundColor
=
{
R
.
colors
.
blue
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
width
=
{
85
}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -80,7 +85,7 @@ const ListRollCallView = props => {
...
@@ -80,7 +85,7 @@ const ListRollCallView = props => {
};
};
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Header
title
=
{
'
Báo bù lịch dạy
'
}
isBack
/>
<
Header
title
=
{
'
Danh sách lớp điểm danh
'
}
isBack
/>
<
View
style
=
{
styles
.
body
}
>
<
View
style
=
{
styles
.
body
}
>
<
View
style
=
{
styles
.
card
}
>
<
View
style
=
{
styles
.
card
}
>
<
TouchableOpacity
style
=
{
styles
.
btnCard
}
>
<
TouchableOpacity
style
=
{
styles
.
btnCard
}
>
...
@@ -101,6 +106,7 @@ const ListRollCallView = props => {
...
@@ -101,6 +106,7 @@ const ListRollCallView = props => {
keyExtractor
=
{(
item
,
index
)
=>
`
${
index
}
`
}
keyExtractor
=
{(
item
,
index
)
=>
`
${
index
}
`
}
style
=
{
styles
.
list
}
style
=
{
styles
.
list
}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
...
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