Refactor profile-edit, candidate-profile, proposed-candidates, and registration forms

- Added a new div container in profile-edit.php for better layout structure.
- Removed the back button from candidate-profile.php to streamline navigation.
- Updated proposed-candidates.php to open candidate links in a new tab for improved user experience.
- Modified registration forms to make the profile visibility checkbox optional, enhancing user flexibility.
This commit is contained in:
2025-06-12 00:35:15 +02:00
parent 6b7ad2a297
commit 43d74c60d5
10 changed files with 35 additions and 28 deletions

View File

@@ -188,6 +188,7 @@
?>
</div>
</div>
<div class="col-12">
<div class="row">
<div class="col-12">
<div class="form-group row">

View File

@@ -231,6 +231,5 @@
<a href="<?= $this -> next_profile;?>" id="next-cv" class="btn btn-system"><?= $lang['nastepny-kandydat'];?></a>
<? endif;?>
</div>
<a href="javascript:history.go(-1);" class="btn btn-dark btn-back"><?= $lang['wstecz'];?></a>
</div>
<? \front\factory\GlobelusCandidates::profile_visits_increase( $this -> candidate['id'], $this -> g_user['id'] );?>

View File

@@ -29,7 +29,7 @@
<div class="row">
<div class="col-12 col-sm-8">
<h2>
<a href="/proponowany-kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" title="Kandydat: <?= addslashes( $candidate['surname'] . ' ' . $candidate['name'] );?>"><?= $candidate['surname'] . ' ' . $candidate['name'];?></a>
<a href="/proponowany-kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" title="Kandydat: <?= addslashes( $candidate['surname'] . ' ' . $candidate['name'] );?>" target="_blank"><?= $candidate['surname'] . ' ' . $candidate['name'];?></a>
</h2>
</div>
<div class="col-12 col-sm-4 sex-and-birth">

View File

@@ -58,7 +58,7 @@ if ( !$accessToken )
</div>
<div class="form-group row agremment-profile">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="checkbox" required id="agremment-profile"> * <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
<input type="checkbox" id="agremment-profile"> <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
</div>
</div>
<div class="form-group row agremment-marketing">

View File

@@ -305,12 +305,12 @@
</div>
<div class="form-group row agremment-profile">
<div class="col-12">
<input type="checkbox" id="agremment-profile" name="agremment_profile" required > * <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
<input type="checkbox" id="agremment-profile" name="agremment_profile"> <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
</div>
</div>
<div class="form-group row agremment-marketing">
<div class="col-12">
<input type="checkbox" id="agremment-marketing" name="agremment_marketing" > Wyrażam zgodę na kontakt mailowy i/lub telefoniczny ze strony globelus.pl
<input type="checkbox" id="agremment-marketing" name="agremment_marketing"> Wyrażam zgodę na kontakt mailowy i/lub telefoniczny ze strony globelus.pl
</div>
</div>
<div class="row">