Commit c3bb2ba9 by tungnq

TODO: Đã hoàn thiện xong các phần cơ bản

parent 1e175243
...@@ -78,7 +78,7 @@ const styles = StyleSheet.create({ ...@@ -78,7 +78,7 @@ const styles = StyleSheet.create({
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
borderWidth: 1, borderWidth: 1,
borderColor: '#ccc', borderColor: R.colors.grayBorderInputTextHeader,
borderRadius: 5, borderRadius: 5,
backgroundColor: '#fff', backgroundColor: '#fff',
height: 35, height: 35,
......
...@@ -8,6 +8,24 @@ container:{ ...@@ -8,6 +8,24 @@ container:{
body:{ body:{
flex:1, flex:1,
backgroundColor:R.colors.white, backgroundColor:R.colors.white,
padding:15,
}, },
containerInput:{
flexDirection:'row',
justifyContent:'space-between',
marginBottom:15
},
txtSubtitle:{
fontWeight:'400',
fontFamily:R.fonts.fontRegular,
fontSize:R.fontsize.fontSizeLabel,
color:R.colors.black,
},
containerDropDown:{
marginBottom:15
},
btnRegister:{
alignItems:'flex-end',
}
}) })
export default styles export default styles
\ No newline at end of file
...@@ -2,13 +2,110 @@ import React from 'react'; ...@@ -2,13 +2,110 @@ import React from 'react';
import {Text, View, TouchableOpacity, StyleSheet} from 'react-native'; import {Text, View, TouchableOpacity, StyleSheet} from 'react-native';
import styles from './style'; import styles from './style';
import Header from '../../../components/Header/Header'; import Header from '../../../components/Header/Header';
import TextField from '../../../components/Input/TextField';
const CompensateRegisterView = (props) => { import R from '../../../assets/R';
const { } = props; import Dropdown from '../../../components/DropdownAlert/Dropdown';
import TextMulti from '../../../components/Input/TextMulti';
import Button from '../../../components/Button';
const CompensateRegisterView = props => {
const {} = props;
return ( return (
<View <View style={styles.container}>
style={styles.container}> <Header title={'Đăng kí báo bù'} isBack />
<Header title={'Đăng kí báo bù'} isBack /> <View style={styles.body}>
<View style={styles.containerInput}>
<TextField
title={'Học kì'}
color={R.colors.black}
fontSize={R.sizes.sm}
backgroundColor={R.colors.gray}
required
fontSizeTitle={R.sizes.sm}
containerBackgroundColor={R.colors.white}
width={'48%'}
/>
<View style={styles.sizedBox}></View>
<TextField
title={'Năm học'}
color={R.colors.black}
fontSize={R.sizes.sm}
backgroundColor={R.colors.gray}
required
fontSizeTitle={R.sizes.sm}
containerBackgroundColor={R.colors.white}
width={'48%'}
/>
</View>
<View style={styles.containerInput}>
<TextField
title={'Mã CBGV'}
color={R.colors.black}
fontSize={R.sizes.sm}
required
backgroundColor={R.colors.gray}
fontSizeTitle={R.sizes.sm}
width={'100%'}
containerBackgroundColor={R.colors.white}
/>
</View>
<View style={styles.containerDropDown}>
<View style={{flexDirection: 'row'}}>
<Text style={[styles.txtSubtitle , {marginBottom: 5}]}>Mã lp </Text>
<Text style={{color: R.colors.red}}>*</Text>
</View>
<Dropdown title={'Giảng viên thay thế'} />
</View>
<View style={styles.containerDropDown}>
<View style={{flexDirection: 'row'}}>
<Text style={[styles.txtSubtitle , {marginBottom: 5}]}>Lch báo cn bù </Text>
<Text style={{color: R.colors.red}}>*</Text>
</View>
<Dropdown title={'Lịch báo cần bù'} />
</View>
<View style={styles.containerInput}>
<TextField
title={'Số tiết đã nghỉ'}
color={R.colors.black}
fontSize={R.sizes.sm}
backgroundColor={R.colors.white}
fontSizeTitle={R.sizes.sm}
containerBackgroundColor={R.colors.white}
width={'38%'}
/>
<View style={styles.sizedBox}></View>
<TextField
title={'Ngày học bù'}
color={R.colors.black}
fontSize={R.sizes.sm}
backgroundColor={R.colors.white}
required
fontSizeTitle={R.sizes.sm}
containerBackgroundColor={R.colors.white}
width={'58%'}
/>
</View>
<TextMulti
title={'Ghi chú'}
color={R.colors.black}
fontSize={R.sizes.sm}
titleFontSize={R.sizes.sm}
containerMarginBottom={15}
containerBackgroundColor={R.colors.white}
/>
<View style={styles.btnRegister}>
<Button
title={'Xem lịch rảnh SV'}
textColor={R.colors.white}
onPress={() => {}}
backgroundColor={R.colors.blue}
fontSize={R.sizes.sm}
fontFamily={R.fonts.fontMedium}
height={35}
containerStyle={{paddingHorizontal: 15, borderRadius: 10}}
/>
</View>
</View>
</View> </View>
); );
}; };
......
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