Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f205b571bc | |||
| 57ba629402 |
@@ -367,6 +367,7 @@ class AccountEtape1 extends Component {
|
||||
this.setState({ lat: obj.lat.toString()})
|
||||
this.setState({ lng: obj.lng.toString()})
|
||||
}
|
||||
this.soumettre("geoloc", "unitaire");
|
||||
|
||||
|
||||
// console.log("GEOLOC ON geocodeByAddress")
|
||||
@@ -447,9 +448,13 @@ class AccountEtape1 extends Component {
|
||||
soumettre(champ, type){
|
||||
console.log("soumettre");
|
||||
console.log(champ);
|
||||
const errors = this.validate(this.state, champ, type);
|
||||
let errors = false;
|
||||
const success = {};
|
||||
this.setState({ errors });
|
||||
if(champ!="geoloc"){
|
||||
errors = this.validate(this.state, champ, type);
|
||||
this.setState({ errors });
|
||||
}
|
||||
|
||||
if (!this.state.errors || !this.state.errors.message){
|
||||
|
||||
success.message ="Profil mis à jour";
|
||||
@@ -469,19 +474,31 @@ class AccountEtape1 extends Component {
|
||||
data.append('twitter', this.state.twitter)
|
||||
data.append('website', this.state.website)
|
||||
console.log("GEOLOC ON SUBMIT")
|
||||
console.log(this.state)
|
||||
data.append('geoloc', this.state.geoloc)
|
||||
console.log(this.state.geoloc)
|
||||
if(this.state.geoloc){
|
||||
data.append('geoloc', this.state.geoloc)
|
||||
console.log(this.state.street_number)
|
||||
console.log(this.state.route)
|
||||
console.log(this.state.locality)
|
||||
console.log(this.state.administrative_area_level_2)
|
||||
console.log(this.state.administrative_area_level_1)
|
||||
console.log(this.state.country)
|
||||
console.log(this.state.postal_code)
|
||||
console.log(this.state.formatted_address)
|
||||
console.log(this.state.lat)
|
||||
console.log(this.state.lat)
|
||||
data.append('street_number', this.state.street_number.replace('"', ''))
|
||||
data.append('route', this.state.route.replace('"', ''))
|
||||
data.append('locality', this.state.locality.replace('"', ''))
|
||||
data.append('administrative_area_level_2', this.state.administrative_area_level_2.replace('"', ''))
|
||||
data.append('administrative_area_level_1', this.state.administrative_area_level_1.replace('"', ''))
|
||||
data.append('country', this.state.country.replace('"', ''))
|
||||
data.append('postal_code', this.state.postal_code.replace('"', ''))
|
||||
data.append('formatted_address', this.state.formatted_address.replace('"', ''))
|
||||
data.append('lat', this.state.lat)
|
||||
data.append('lng', this.state.lng)
|
||||
}
|
||||
|
||||
data.append('street_number', this.state.street_number.replace('"', ''))
|
||||
data.append('route', this.state.route.replace('"', ''))
|
||||
data.append('locality', this.state.locality.replace('"', ''))
|
||||
data.append('administrative_area_level_2', this.state.administrative_area_level_2.replace('"', ''))
|
||||
data.append('administrative_area_level_1', this.state.administrative_area_level_1.replace('"', ''))
|
||||
data.append('country', this.state.country.replace('"', ''))
|
||||
data.append('postal_code', this.state.postal_code.replace('"', ''))
|
||||
data.append('formatted_address', this.state.formatted_address.replace('"', ''))
|
||||
data.append('lat', this.state.lat)
|
||||
data.append('lng', this.state.lng)
|
||||
//Compétences
|
||||
data.append('appellationId', this.state.appellationId)
|
||||
data.append('appellationLibelle', this.state.appellationLibelle)
|
||||
@@ -600,7 +617,7 @@ class AccountEtape1 extends Component {
|
||||
</span>
|
||||
);
|
||||
refreshPage() {
|
||||
window.location.replace("/profileStep");
|
||||
window.location.replace("/");
|
||||
}
|
||||
|
||||
choisirMetier = (code) =>{
|
||||
|
||||
@@ -229,6 +229,7 @@ class Etape2 extends React.Component {
|
||||
video = "";
|
||||
}
|
||||
if (typeof global.navigator === 'undefined') global.navigator = {};
|
||||
if (typeof global.maps === 'undefined') global.maps = {};
|
||||
return (
|
||||
|
||||
|
||||
@@ -304,7 +305,7 @@ class Etape2 extends React.Component {
|
||||
<Button component="span" className={classes.captureButton} classes={{ root: classes.rootButton }} onClick={this.realise}>
|
||||
<img alt="talents-tube" src='/statique/images/capture.svg' className={classes.iconButton} />
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
Je <span className={classes.underlined}>réalise</span> ma vidéo de réponse
|
||||
Je <span className={classes.underlined}>réalise</span> ma vidéo de présentation
|
||||
</Typography>
|
||||
<KeyboardArrowRightIcon className={ classes.InputKeyboardArrowRightIcon }/>
|
||||
</Button>
|
||||
@@ -320,25 +321,7 @@ class Etape2 extends React.Component {
|
||||
}
|
||||
</Grid>
|
||||
<Grid item xs={12} sm={12} md={12} lg={12} xl={12}>
|
||||
<div>
|
||||
<label htmlFor="import-conseil">
|
||||
<Button
|
||||
component="span"
|
||||
className={classes.importButton}
|
||||
classes={{
|
||||
root: classes.rootButton}}
|
||||
onClick={() => Router.push(`/Conseils`)}>
|
||||
<img
|
||||
alt="talents-tube"
|
||||
src='/statique/images/comment-faire-une-video-reponse.svg'
|
||||
className={classes.iconButton}/>
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
<span className={classes.underlined}>Comment</span> créer ma vidéo
|
||||
</Typography>
|
||||
<KeyboardArrowDownIcon className={classes.InputKeyboardArrowDownIcon}/>
|
||||
</Button>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input
|
||||
type="file"
|
||||
@@ -364,7 +347,26 @@ class Etape2 extends React.Component {
|
||||
<KeyboardArrowDownIcon className={classes.InputKeyboardArrowDownIcon}/>
|
||||
</Button>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label htmlFor="import-conseil">
|
||||
<Button
|
||||
component="span"
|
||||
className={classes.importButton}
|
||||
classes={{
|
||||
root: classes.rootButton}}
|
||||
onClick={() => Router.push(`/Conseils`)}>
|
||||
<img
|
||||
alt="talents-tube"
|
||||
src='/statique/images/comment-faire-une-video-reponse.svg'
|
||||
className={classes.iconButton}/>
|
||||
<Typography align="left" className={classes.textButton}>
|
||||
<span className={classes.underlined}>Comment</span> créer ma vidéo de présentation
|
||||
</Typography>
|
||||
<KeyboardArrowDownIcon className={classes.InputKeyboardArrowDownIcon}/>
|
||||
</Button>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</Grid>
|
||||
<Hidden xsUp>
|
||||
|
||||
@@ -114,28 +114,28 @@ const { publicRuntimeConfig } = getConfig()
|
||||
const status = new Map([
|
||||
|
||||
["A_TRAITER"
|
||||
, "À traiter"]
|
||||
, "Envoyée"]
|
||||
,
|
||||
["CONTACTE"
|
||||
, "Contacté"]
|
||||
, "En cours de traitement"]
|
||||
,
|
||||
["ENTRETIEN"
|
||||
, "Entretien programmé"]
|
||||
, "En cours de traitement"]
|
||||
,
|
||||
["REFUSE"
|
||||
, "Refusé"]
|
||||
, "Refusée"]
|
||||
,
|
||||
["EMBAUCHE"
|
||||
, "Embauché"]
|
||||
, "Embauchée"]
|
||||
,
|
||||
["EXPIRED"
|
||||
, "Expirée"]
|
||||
,
|
||||
[""
|
||||
, "A traiter"]
|
||||
, "Envoyée"]
|
||||
,
|
||||
["Null"
|
||||
, "A traiter"]
|
||||
, "Envoyée"]
|
||||
,
|
||||
|
||||
])
|
||||
@@ -198,7 +198,7 @@ class AnswerRowComponent extends React.Component {
|
||||
|
||||
</Typography>
|
||||
<div className={ classes.bottomCard }>
|
||||
<Chip size="small" label={status.get(rowData.status_reponse)? status.get(rowData.status_reponse) : "A traiter" } className={classes.chip} />
|
||||
<Chip size="small" label={status.get(rowData.status_reponse)? status.get(rowData.status_reponse) : "Envoyée" } className={classes.chip} />
|
||||
<ArrowForwardIcon className={classes.icon} />
|
||||
</div>
|
||||
</div>
|
||||
@@ -237,7 +237,7 @@ class AnswerRowComponent extends React.Component {
|
||||
<IconText classes={{ root: classes.iconText, icon: classes.iconTextIcon, text: classes.iconTextText }} variant="watch_later" text={(new Date(rowData.c_time)).toLocaleDateString("fr-FR")} />
|
||||
</Typography>
|
||||
<div className={ classes.bottomCard }>
|
||||
<Chip size="small" label={status.get(rowData.status_reponse)? status.get(rowData.status_reponse) : "A traiter" } className={classes.chip} />
|
||||
<Chip size="small" label={status.get(rowData.status_reponse)? status.get(rowData.status_reponse) : "Envoyée" } className={classes.chip} />
|
||||
<ArrowForwardIcon className={classes.icon} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,7 +55,7 @@ module.exports = withPlugins(
|
||||
blogUrl: 'https://blog.talentstube.com',
|
||||
frontServerUrl: 'https://pp.app.talentstube.com/',
|
||||
cvThequeUrl: 'https://recruteur.talentstube.com',
|
||||
version : 'V2.10.1',
|
||||
version : 'V2.10.2',
|
||||
adListDefaultUrl: '/statique/images/default/default_picture_company.jpg',
|
||||
cachedMediaUrl: '/media/cache/profile_thumb/uploads/img/',
|
||||
postedContentUrl: '/uploads/img/',
|
||||
|
||||
Reference in New Issue
Block a user