Updates
This commit is contained in:
parent
09b916796a
commit
b215e66976
|
|
@ -619,6 +619,21 @@ class CASS_View_Race_Edit
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.ckeditor.com/4.21.0/standard/ckeditor.js"></script>
|
||||||
|
|
||||||
|
<!-- Initialiser CKEditor -->
|
||||||
|
<script>
|
||||||
|
CKEDITOR.replace('descriptionPublic', {
|
||||||
|
width: '600px', // Largeur spécifique
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.form-element {
|
||||||
|
display: flex; /* Disposition en ligne */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
document.getElementById("raceMeeting").innerHTML = "Le lieu de RDV est <b>" + race.meetingPlaceName + "</b>.";
|
document.getElementById("raceMeeting").innerHTML = "Le lieu de RDV est <b>" + race.meetingPlaceName + "</b>.";
|
||||||
document.getElementById("IDRace").value = race.IDRace;
|
document.getElementById("IDRace").value = race.IDRace;
|
||||||
document.getElementById("pageUrl").value = window.location;
|
document.getElementById("pageUrl").value = window.location;
|
||||||
|
document.getElementById("linkManageUser").href = siteUrl + "/wp-admin/admin.php?page=cass-admin-race-user-list&action=edit&IDRace="+race.IDRace;
|
||||||
this.eventRaceSelected = race.IDRace;
|
this.eventRaceSelected = race.IDRace;
|
||||||
|
|
||||||
raceSubscriptionStartEndMeetingPlaceParticipiant = 'Les inscriptions sont ouvertes du <b>' + getDateFormated(race.subscriptionStart) + ' </b> au <b>' + getDateFormated(race.subscriptionEnd) + '</b>.';
|
raceSubscriptionStartEndMeetingPlaceParticipiant = 'Les inscriptions sont ouvertes du <b>' + getDateFormated(race.subscriptionStart) + ' </b> au <b>' + getDateFormated(race.subscriptionEnd) + '</b>.';
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,10 @@ function cass_shortcode_calendar_global($atts){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "
|
|
||||||
|
$HTML =
|
||||||
|
|
||||||
|
"
|
||||||
<script>
|
<script>
|
||||||
window.adminPostUrl =" . json_encode(esc_attr(admin_url('admin-post.php'))) . ";
|
window.adminPostUrl =" . json_encode(esc_attr(admin_url('admin-post.php'))) . ";
|
||||||
window.siteUrl =" . json_encode(get_site_url()) . ";
|
window.siteUrl =" . json_encode(get_site_url()) . ";
|
||||||
|
|
@ -50,7 +53,6 @@ function cass_shortcode_calendar_global($atts){
|
||||||
window.viewChangeVisible = '".$viewChangeVisible."';
|
window.viewChangeVisible = '".$viewChangeVisible."';
|
||||||
window.IDGroup = '".$IDGroup."';
|
window.IDGroup = '".$IDGroup."';
|
||||||
window.viewgroupvisible='".$viewgroupvisible."';
|
window.viewgroupvisible='".$viewgroupvisible."';
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -146,11 +148,17 @@ function cass_shortcode_calendar_global($atts){
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<br/>";
|
||||||
<h5>Administration</h5>
|
|
||||||
<a href='http://localhost/wordpress/wp-admin/admin.php?page=cass-admin-race-user-list&action=edit&IDRace=178' target='_blank'>
|
if ( current_user_can( 'CASS_ADMIN' ) || current_user_can( 'CASS_RL' ) ) {
|
||||||
Liste des participants de la course
|
$HTML .= "
|
||||||
</a>
|
<h5>Administration</h5>
|
||||||
|
<a id='linkManageUser' href='' target='_blank'>
|
||||||
|
Liste des participants de la course";
|
||||||
|
}
|
||||||
|
$HTML .= "
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
@ -165,5 +173,7 @@ function cass_shortcode_calendar_global($atts){
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
";
|
";
|
||||||
|
|
||||||
|
return $HTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user