mirror of
https://github.com/Blair-SGA-Dev-Team/blazerapp.git
synced 2026-11-28 15:18:12 -05:00
templates done (i think)
This commit is contained in:
1 parent
f20773c49a
commit
3eaa975560
12 files changed
+289
-307
No files matched your search
+4
-2
@@ -381,6 +381,8 @@ function HomeStack() {
|
||||
|
||||
function HomeScreen (props) {
|
||||
console.log(props.studentData)
|
||||
var showStudent = true
|
||||
if (props.studentData.length==0) {showStudent = false}
|
||||
const iconURI = null
|
||||
//const iconURI = props.studentData.image !== undefined?`data:image/png;charset=utf-8;base64,${props.studentData.image}`:`data:image/png;base64,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
Line truncated
|
||||
global.headerHeight = useHeaderHeight();
|
||||
@@ -461,7 +463,7 @@ function HomeScreen (props) {
|
||||
/>}
|
||||
</View>
|
||||
|
||||
<View style={{marginTop: '5%', marginBottom: '10%'}}>
|
||||
{showStudent?<View style={{marginTop: '5%', marginBottom: '10%'}}>
|
||||
<Text style={[liststyles.homeTitle, {paddingBottom: '5%'}]}>{I18n.t('home.SOTW')}</Text>
|
||||
<View style={{display: 'flex', flexDirection: 'row'}}>
|
||||
<View style={{backgroundColor: 'white', width: windowWidth*.30, height: windowWidth*.30, shadowColor: 'red', shadowOffset: {width: 0, height: 2}, shadowOpacity: 0.5, shadowRadius: 7, borderRadius: (windowWidth*.30)/2}}>
|
||||
@@ -476,7 +478,7 @@ function HomeScreen (props) {
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</View>: <View></View>}
|
||||
</ScrollView>
|
||||
)
|
||||
}
|
||||
|
||||
+52
-44
@@ -68,56 +68,64 @@ class StudentWeek extends React.Component {
|
||||
if (this.state.isLoading) {
|
||||
return <View/>
|
||||
} else {
|
||||
console.log(this.state.data[this.state.data.length-1].image)
|
||||
const iconURI = this.state.data[this.state.data.length-1].image !== undefined?`data:image/png;charset=utf-8;base64,${this.state.data[this.state.data.length-1].image}`:'';
|
||||
const hobbyText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].hobbies}</Text>)
|
||||
const achievementText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].achievements}</Text>)
|
||||
const messageText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].messages}</Text>)
|
||||
return (
|
||||
<ScrollView style={{paddingTop:'5%',paddingHorizontal:'10%', backgroundColor: 'white', height: '100%'}}>
|
||||
<View style={{backgroundColor: 'white',borderRadius: 150, height: 300, width: 300, alignSelf: 'center', shadowColor: 'red', shadowOffset: {width: 0, height: 2}, shadowOpacity: 0.5, shadowRadius: 7}}>
|
||||
<Image style={{resizeMode: 'cover',borderRadius: 150, height: 300, width: 300, alignSelf: 'center'}} source = {{iconURI}} />
|
||||
if (this.state.data.length==0) {
|
||||
return (
|
||||
<View style={{alignItems:'center',paddingiorizontal:'10%', height: '100%', backgroundColor: 'white', justifyContent: 'center', padding: '2%'}}>
|
||||
<Text style={{fontSize: 32, fontWeight: 'bold', marginBottom: '10%', color: 'red', textAlign: 'center'}}>No student of the week</Text>
|
||||
</View>
|
||||
<Text style={{fontSize:28,marginTop:'5%',textAlign:'center'}}>{this.state.data[this.state.data.length-1].name}</Text>
|
||||
<Text style={{fontSize:20,textAlign:'center', fontWeight: '200'}}>{I18n.t('student.Grade')} {this.state.data[this.state.data.length-1].grade}</Text>
|
||||
<View>
|
||||
<View style={{display: 'flex', padding:'2%', borderRadius: 8, marginTop:'5%'}}>
|
||||
<TouchableOpacity onPress = {this.clickHobby.bind(this)}>
|
||||
<View style={{display:'flex', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/hobbies.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Hobbies')}</Text>
|
||||
{this.state.hobbyExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
)
|
||||
} else {
|
||||
console.log(this.state.data[this.state.data.length-1].image)
|
||||
const iconURI = this.state.data[this.state.data.length-1].image !== undefined?`data:image/png;charset=utf-8;base64,${this.state.data[this.state.data.length-1].image}`:'';
|
||||
const hobbyText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].hobbies}</Text>)
|
||||
const achievementText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].achievements}</Text>)
|
||||
const messageText = (<Text style = {{marginLeft: 50, paddingHorizontal: '2%', paddingBottom: '2%'}}>{this.state.data[this.state.data.length-1].messages}</Text>)
|
||||
return (
|
||||
<ScrollView style={{paddingTop:'5%',paddingHorizontal:'10%', backgroundColor: 'white', height: '100%'}}>
|
||||
<View style={{backgroundColor: 'white',borderRadius: 150, height: 300, width: 300, alignSelf: 'center', shadowColor: 'red', shadowOffset: {width: 0, height: 2}, shadowOpacity: 0.5, shadowRadius: 7}}>
|
||||
<Image style={{resizeMode: 'cover',borderRadius: 150, height: 300, width: 300, alignSelf: 'center'}} source = {{iconURI}} />
|
||||
</View>
|
||||
<Text style={{fontSize:28,marginTop:'5%',textAlign:'center'}}>{this.state.data[this.state.data.length-1].name}</Text>
|
||||
<Text style={{fontSize:20,textAlign:'center', fontWeight: '200'}}>{I18n.t('student.Grade')} {this.state.data[this.state.data.length-1].grade}</Text>
|
||||
<View>
|
||||
<View style={{display: 'flex', padding:'2%', borderRadius: 8, marginTop:'5%'}}>
|
||||
<TouchableOpacity onPress = {this.clickHobby.bind(this)}>
|
||||
<View style={{display:'flex', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/hobbies.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Hobbies')}</Text>
|
||||
{this.state.hobbyExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
{this.state.hobbyExpanded?hobbyText:<></>}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity onPress = {this.clickAchievements.bind(this)}>
|
||||
<View style={{display: 'flex', borderTopWidth: 1, borderTopColor: '#8D8D8D', shadowColor: 'black', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/achievements.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Achievements')}</Text>
|
||||
{this.state.achievementExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
{this.state.hobbyExpanded?hobbyText:<></>}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity onPress = {this.clickAchievements.bind(this)}>
|
||||
<View style={{display: 'flex', borderTopWidth: 1, borderTopColor: '#8D8D8D', shadowColor: 'black', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/achievements.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Achievements')}</Text>
|
||||
{this.state.achievementExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
{this.state.achievementExpanded?achievementText:<></>}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity onPress = {this.clickMessages.bind(this)}>
|
||||
<View style={{display: 'flex', borderTopWidth: 1, borderTopColor: '#8D8D8D', shadowColor: 'black', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/message.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Messages')}</Text>
|
||||
{this.state.messageExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
{this.state.achievementExpanded?achievementText:<></>}
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity onPress = {this.clickMessages.bind(this)}>
|
||||
<View style={{display: 'flex', borderTopWidth: 1, borderTopColor: '#8D8D8D', shadowColor: 'black', flexDirection: 'row'}}>
|
||||
<Image source = {require('./assets/message.png')} />
|
||||
<View style = {{display: 'flex', flexDirection: 'row', width: '85%', justifyContent: 'space-between', paddingHorizontal:'2%',}}>
|
||||
<Text style={{fontSize: 20, alignSelf: 'center'}}>{I18n.t('student.Messages')}</Text>
|
||||
{this.state.messageExpanded?<LinearGradient start={{x: 0, y: 0.25}} end={{x: .5, y: 1}} colors={['red', '#FF7373']} style={{borderRadius: 24, alignSelf: 'center'}}><Image source = {require('./assets/collapse.png')} style={{tintColor: 'white'}}/></LinearGradient>:<Image source = {require('./assets/expand.png')} style={{tintColor: '#b2b2b2', alignSelf: 'center'}}/>}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
{this.state.messageExpanded?messageText:<></>}
|
||||
</TouchableOpacity>
|
||||
{this.state.messageExpanded?messageText:<></>}
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
||||
</View>
|
||||
|
||||
</View>
|
||||
|
||||
</ScrollView>
|
||||
)
|
||||
</ScrollView>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<form action="announcements/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -62,7 +62,7 @@
|
||||
<p class="my-0">Teacher</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="teacher" name="teacher">
|
||||
<input type="text" class="form-control form-control-sm" id="teacher" name="teacher" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<p class="my-0">Message</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="message" name="message">
|
||||
<input type="text" class="form-control form-control-sm" id="message" name="message" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<p class="my-0">Date of Submission</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="date" name="date">
|
||||
<input type="text" class="form-control form-control-sm" id="date" name="date" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<p class="my-0">Time of Submission</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -105,13 +105,13 @@
|
||||
<p class="my-0">ID of announcement to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -124,7 +124,7 @@
|
||||
<p class="my-0">Teacher</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="teacher" name="teacher">
|
||||
<input type="text" class="form-control form-control-sm" id="teacher" name="teacher" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<p class="my-0">Message</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="message" name="message">
|
||||
<input type="text" class="form-control form-control-sm" id="message" name="message" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<p class="my-0">Date of Submission</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="date" name="date">
|
||||
<input type="text" class="form-control form-control-sm" id="date" name="date" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
<p class="my-0">Time of Submission</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time" required>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit", value="Submit">
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<form action="challenge/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -62,7 +62,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<p class="my-0">Link to Challenge</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -96,13 +96,13 @@
|
||||
<p class="my-0">ID of challenge to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -115,7 +115,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<p class="my-0">Link to Challenge</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<form action="clubs/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -63,7 +63,7 @@
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<p class="my-0">Meeting Date and Time</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<p class="my-0">Meeting Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<p class="my-0">Sponsor</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -106,13 +106,13 @@
|
||||
<p class="my-0">ID of club to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -125,7 +125,7 @@
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<p class="my-0">Meeting Date and Time</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
<p class="my-0">Meeting Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
<p class="my-0">Sponsor</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<form action="events/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -63,7 +63,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<p class="my-0">Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<p class="my-0">Date</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date">
|
||||
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<p class="my-0">Teacher/Organizer</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<p class="my-0">Teacher/Organizer Email</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="emails" name="emails">
|
||||
<input type="text" class="form-control form-control-sm" id="emails" name="emails" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -124,13 +124,13 @@
|
||||
<p class="my-0">ID of event to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -143,7 +143,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
<p class="my-0">Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<p class="my-0">Date</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date">
|
||||
<input type="text" class="form-control form-control-sm" id="event_date" name="event_date" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
<p class="my-0">Teacher/Organizer</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
<p class="my-0">Teacher/Organizer Email</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="emails" name="emails">
|
||||
<input type="text" class="form-control form-control-sm" id="emails" name="emails" required>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit", value="Submit">
|
||||
|
||||
@@ -1,167 +0,0 @@
|
||||
{{! vim: set ft=html: }}
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-md p-3" style="">
|
||||
<h2 style="font-size: 24px; font-weight: bold">
|
||||
Admin Panel
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="container-md d-flex gap-4" style="">
|
||||
<!-- clubs list -->
|
||||
<div class="p-3" style="flex: 1;">
|
||||
<h1 style="font-size: 28px;">Important</h1>
|
||||
|
||||
<div class="vstack gap-3 mt-4">
|
||||
{{#each ctx}}
|
||||
<div class="bg-light border rounded-3 p-2">
|
||||
<small>ID: {{id}} | LANG: {{lang}}</small>
|
||||
<h3 class="my-2" style="font-size: 18px;">{{name}}</h3>
|
||||
<p class="mb-2">{{meeting}}</p>
|
||||
<p class="mb-2">{{link}}</p>
|
||||
<p class="mt-2 mb-0">Sponsor: {{sponsor}}</p>
|
||||
<form action="clubs/del" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" value = {{id}} style="display: none">
|
||||
</div>
|
||||
<input type="submit" value="Delete">
|
||||
</form>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- clubs actions -->
|
||||
<div class="p-3" style="flex: 1;">
|
||||
<h1 style="font-size: 28px;">Clubs Actions</h1>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="my-4">
|
||||
<h2 style="font-size: 20px;">Add Club</h2>
|
||||
<form action="clubs/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Lang</p>
|
||||
<label for="lang" class="form-label"><small>'en' for English, 'es' for Spanish</small></label>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="lang" name="lang">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Meeting</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Link</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Sponsor</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="my-4">
|
||||
<h2 style="font-size: 20px;">Update Club</h2>
|
||||
<form action="anouncements/upd" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">ID of club to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Lang</p>
|
||||
<label for="lang" class="form-label"><small>'en' for English, 'es' for Spanish</small></label>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="lang" name="lang">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Meeting</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="meeting" name="meeting">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Link</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="link" name="link">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Sponsor</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="sponsor" name="sponsor">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -28,7 +28,7 @@
|
||||
<p class="mb-2">{{text}}</p>
|
||||
<p class="mb-2">{{location}}</p>
|
||||
<p class="mt-2 mb-0">{{time}}</p>
|
||||
<form action="clubs/del" method="post">
|
||||
<form action="lunch_events/del" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" value = {{id}} style="display: none">
|
||||
</div>
|
||||
@@ -50,7 +50,7 @@
|
||||
<form action="lunch_events/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -63,7 +63,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<p class="my-0">Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<p class="my-0">Time of event</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -106,12 +106,12 @@
|
||||
<p class="my-0">ID of lunch event to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<div style="flex: 1; justify-content: center;" required>
|
||||
<select name="lang", id="lang">
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
@@ -125,7 +125,7 @@
|
||||
<p class="my-0">Title</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title">
|
||||
<input type="text" class="form-control form-control-sm" id="title" name="title" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
<p class="my-0">Location</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location">
|
||||
<input type="text" class="form-control form-control-sm" id="location" name="location" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
<p class="my-0">Time of event</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time">
|
||||
<input type="text" class="form-control form-control-sm" id="time" name="time" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
+141
-2
@@ -3,9 +3,148 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<form onsubmit="forwardForImage('new_f', 'new/add')" id="new_f" name="new_f">
|
||||
<div class="container-md p-3" style="">
|
||||
<h2 style="font-size: 24px; font-weight: bold">
|
||||
Admin Panel
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="container-md d-flex gap-4" style="">
|
||||
<!-- announcements list -->
|
||||
<div class="p-3" style="flex: 1;">
|
||||
<h1 style="font-size: 28px;">What's New</h1>
|
||||
|
||||
<div class="vstack gap-3 mt-4">
|
||||
{{#each ctx}}
|
||||
<div class="bg-light border rounded-3 p-2">
|
||||
<small>ID: {{id}} | LANG: {{lang}}</small>
|
||||
<h3 class="my-2" style="font-size: 18px;">{{name}}</h3>
|
||||
<p class="mb-2">{{image}}</p>
|
||||
<p class="mb-2">{{new_date}}</p>
|
||||
<form action="new/del" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" value = {{id}} style="display: none">
|
||||
</div>
|
||||
<input type="submit" value="Delete">
|
||||
</form>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- announcements actions -->
|
||||
<div class="p-3" style="flex: 1;">
|
||||
<h1 style="font-size: 28px;">What's New Actions</h1>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div class="my-4">
|
||||
<h2 style="font-size: 20px;">Add New Item</h2>
|
||||
<form onsubmit="forwardForImage('new_f', 'new/add')" id="new_f" name="new_f" method="post" enctype="multipart/form-data">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">What's New Item Image</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Date of What's New Item</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="new_date" name="new_date" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="my-4">
|
||||
<h2 style="font-size: 20px;">Update What's New Item</h2>
|
||||
<form action="new/upd" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">ID of announcement to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">What's New Item Image</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Information</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="text" name="text" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<p class="my-0">Date of What's New Item</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="new_date" name="new_date" required>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <form onsubmit="forwardForImage('new_f', 'new/add')" id="new_f" name="new_f" method="post" enctype="multipart/form-data">
|
||||
{{!<form action="new/add" method="post" enctype="multipart/form-data">}}
|
||||
<select name="lang", id="lang">
|
||||
<option value="en">en</option>
|
||||
<option value="es">es</option>
|
||||
@@ -14,7 +153,7 @@
|
||||
<input type="text", id="name", name="name">
|
||||
<input type="text", id="new_date", name="new_date">
|
||||
<input type="submit", value="Submit">
|
||||
</form>
|
||||
</form>-->
|
||||
</body>
|
||||
<!-- <script src="/static/jquery.min.js"></script> -->
|
||||
<script src="/static/utils.js"></script>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<form action="polls/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -60,7 +60,7 @@
|
||||
<p class="my-0">URL of poll</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="url" name="url">
|
||||
<input type="text" class="form-control form-control-sm" id="url" name="url" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -76,13 +76,13 @@
|
||||
<p class="my-0">ID of Poll to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -95,7 +95,7 @@
|
||||
<p class="my-0">URL of poll</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="url" name="url">
|
||||
<input type="text" class="form-control form-control-sm" id="url" name="url" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<p class="mb-2">Message: {{messages}}</p>
|
||||
<p class="mb-2">Hobbies: {{hobbies}}</p>
|
||||
<p class="mb-2">Achievements: {{achievements}}</p>
|
||||
<form action="announcements/del" method="post">
|
||||
<form action="student/del" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" value = {{id}} style="display: none">
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<form action="student/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -64,7 +64,7 @@
|
||||
<p class="my-0">Student Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<p class="my-0">Student Picture</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
<p class="my-0">Grade</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="grade" name="grade">
|
||||
<input type="text" class="form-control form-control-sm" id="grade" name="grade" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<p class="my-0">Message</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="messages" name="messages">
|
||||
<input type="text" class="form-control form-control-sm" id="messages" name="messages" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
<p class="my-0">Hobbies</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies">
|
||||
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
<p class="my-0">Achievements</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements">
|
||||
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -125,13 +125,13 @@
|
||||
<p class="my-0">ID of SOTW to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -144,7 +144,7 @@
|
||||
<p class="my-0">Student Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
<p class="my-0">Student Picture</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<p class="my-0">Grade</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="grade" name="grade">
|
||||
<input type="text" class="form-control form-control-sm" id="grade" name="grade" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<p class="my-0">Message</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="messages" name="messages">
|
||||
<input type="text" class="form-control form-control-sm" id="messages" name="messages" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
<p class="my-0">Hobbies</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies">
|
||||
<input type="text" class="form-control form-control-sm" id="hobbies" name="hobbies" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
<p class="my-0">Achievements</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements">
|
||||
<input type="text" class="form-control form-control-sm" id="achievements" name="achievements" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<h2 style="font-size: 20px;">Add Staff</h2>
|
||||
<form action="teachers/add" method="post">
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<div style="flex: 1; justify-content: center;" required>
|
||||
<select name="lang", id="lang">
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
@@ -63,7 +63,7 @@
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<p class="my-0">Email</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="email" name="email">
|
||||
<input type="text" class="form-control form-control-sm" id="email" name="email" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<p class="my-0">Phone</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="phone" name="phone">
|
||||
<input type="text" class="form-control form-control-sm" id="phone" name="phone" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<p class="my-0">Position</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="position" name="position">
|
||||
<input type="text" class="form-control form-control-sm" id="position" name="position" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
<p class="my-0">Staff Picture</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -115,13 +115,13 @@
|
||||
<p class="my-0">ID of staff to update</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id">
|
||||
<input type="number" class="form-control form-control-sm" id="id" name="id" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mt-3">
|
||||
<div style="flex: 1; justify-content: center;">
|
||||
<select name="lang", id="lang">
|
||||
<select name="lang", id="lang" required>
|
||||
<option value="" disabled selected>Select Language</option>
|
||||
<option value="en">English</option>
|
||||
<option value="es">Spanish</option>
|
||||
@@ -134,7 +134,7 @@
|
||||
<p class="my-0">Name</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name">
|
||||
<input type="text" class="form-control form-control-sm" id="name" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
<p class="my-0">Email</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="email" name="email">
|
||||
<input type="text" class="form-control form-control-sm" id="email" name="email" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
<p class="my-0">Phone</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="phone" name="phone">
|
||||
<input type="text" class="form-control form-control-sm" id="phone" name="phone" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<p class="my-0">Position</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="text" class="form-control form-control-sm" id="position" name="position">
|
||||
<input type="text" class="form-control form-control-sm" id="position" name="position" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<p class="my-0">Staff Picture</p>
|
||||
</div>
|
||||
<div style="flex: 1; align: center;">
|
||||
<input type="file" name="image", id="image", accept="image/png">
|
||||
<input type="file" name="image", id="image", accept="image/png" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user