Updates
This commit is contained in:
parent
09b916796a
commit
b215e66976
|
|
@ -619,6 +619,21 @@ class CASS_View_Race_Edit
|
|||
</form>
|
||||
</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
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -256,6 +256,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
document.getElementById("raceMeeting").innerHTML = "Le lieu de RDV est <b>" + race.meetingPlaceName + "</b>.";
|
||||
document.getElementById("IDRace").value = race.IDRace;
|
||||
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;
|
||||
|
||||
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>
|
||||
window.adminPostUrl =" . json_encode(esc_attr(admin_url('admin-post.php'))) . ";
|
||||
window.siteUrl =" . json_encode(get_site_url()) . ";
|
||||
|
|
@ -49,8 +52,7 @@ function cass_shortcode_calendar_global($atts){
|
|||
window.initialView = '".$initialView."';
|
||||
window.viewChangeVisible = '".$viewChangeVisible."';
|
||||
window.IDGroup = '".$IDGroup."';
|
||||
window.viewgroupvisible='".$viewgroupvisible."';
|
||||
|
||||
window.viewgroupvisible='".$viewgroupvisible."';
|
||||
</script>
|
||||
|
||||
|
||||
|
|
@ -146,11 +148,17 @@ function cass_shortcode_calendar_global($atts){
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<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'>
|
||||
Liste des participants de la course
|
||||
</a>
|
||||
<br/>";
|
||||
|
||||
if ( current_user_can( 'CASS_ADMIN' ) || current_user_can( 'CASS_RL' ) ) {
|
||||
$HTML .= "
|
||||
<h5>Administration</h5>
|
||||
<a id='linkManageUser' href='' target='_blank'>
|
||||
Liste des participants de la course";
|
||||
}
|
||||
$HTML .= "
|
||||
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
|
@ -165,5 +173,7 @@ function cass_shortcode_calendar_global($atts){
|
|||
<br>
|
||||
<br>
|
||||
";
|
||||
|
||||
return $HTML;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user