Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ea5b9f

Browse files
committedJun 19, 2017
1 parent 518c404 commit 5ea5b9f

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed
 

‎assets/js/default/editInPlace.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ function bindAboutPodElement() {
193193
if(data.result && data.resultGoods.result){
194194
if(typeof data.resultGoods.values.allDay != "undefined"){
195195
contextData.allDay = data.resultGoods.values.allDay;
196-
$("#allDayAbout").html(contextData.allDay);
196+
197+
$("#allDayAbout").html((contextData.allDay ? trad["yes"] : trad["no"]));
197198
}
198199
if(typeof data.resultGoods.values.startDate != "undefined"){
199200
contextData.startDate = data.resultGoods.values.startDate;
@@ -209,7 +210,6 @@ function bindAboutPodElement() {
209210
initDate();
210211
updateCalendar();
211212
}
212-
213213
//urlCtrl.loadByHash(location.hash);
214214
dyFObj.closeForm();
215215
},
@@ -625,7 +625,7 @@ function bindAboutPodElement() {
625625
if(notEmpty(contextData.socialNetwork) && notEmpty(contextData.socialNetwork.facebook))
626626
dataUpdate.facebook = contextData.socialNetwork.facebook;
627627

628-
dyFObj.openForm(form, null, dataUpdate);
628+
dyFObj.openForm(form, "sub", dataUpdate);
629629

630630

631631
});

‎views/element/about.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@
462462

463463
var formatDateView = "DD MMMM YYYY à HH:mm" ;
464464
var formatDatedynForm = "DD/MM/YYYY HH:mm" ;
465-
if( (typeof contextData.allDay != "undefined" && contextData.allDay == true) || contextData.type == "<?php echo Project::COLLECTION; ?>" ) {
465+
/*if( (typeof contextData.allDay != "undefined" && contextData.allDay == true) || contextData.type == "<?php //echo Project::COLLECTION; ?>" ) {
466466
formatDateView = "DD MMMM YYYY" ;
467467
formatDatedynForm = "DD/MM/YYYY" ;
468-
}
468+
}*/
469469

470470
jQuery(document).ready(function() {
471471
bindDynFormEditable();
@@ -569,6 +569,14 @@ className: 'btn-danger'
569569

570570
function initDate() {//DD/mm/YYYY hh:mm
571571
//moment.locale('fr');
572+
if( (typeof contextData.allDay != "undefined" && contextData.allDay == true) || contextData.type == "<?php echo Project::COLLECTION; ?>" ) {
573+
formatDateView = "DD MMMM YYYY" ;
574+
formatDatedynForm = "DD/MM/YYYY" ;
575+
}else{
576+
formatDateView = "DD MMMM YYYY à HH:mm" ;
577+
formatDatedynForm = "DD/MM/YYYY HH:mm" ;
578+
}
579+
572580
if( typeof contextData.startDate != "undefined" && contextData.startDate != "" ){
573581
$("#divStartDate").removeClass("hidden");
574582
$("#divNoDate").addClass("hidden");
@@ -582,7 +590,7 @@ function initDate() {//DD/mm/YYYY hh:mm
582590
$("#divEndDate").removeClass("hidden");
583591
else
584592
$("#divEndDate").addClass("hidden");
585-
593+
mylog.log("formatDateView", formatDateView);
586594
if($("#startDateAbout").html() != "")
587595
$("#startDateAbout").html(moment(contextData.startDateDB).local().locale("fr").format(formatDateView));
588596
if($("#endDateAbout").html() != "")

‎views/pod/activityList.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"isOpenEdition" => Yii::t("common", "open edition"),
3434
"state" => Yii::t("common", "state"),
3535
"organizer" => Yii::t("common", "organizer"),
36-
"contacts" => Yii::t("common", "un contact")
36+
"contacts" => Yii::t("common", "un contact"),
37+
"descriptionHTML" => Yii::t("common", "la descripton"),
3738
);
3839
if ($contextType == Organization::COLLECTION)
3940
$contextTypeLabel=Yii::t("common","of the organization");
@@ -128,6 +129,8 @@
128129

129130
} else if(@$value["object"]["displayValue"] && !empty($value["object"]["displayValue"]) )
130131
echo Yii::t("common",$value["object"]["displayValue"]);
132+
else if($value["object"]["displayName"] == "descriptionHTML")
133+
echo "transformer la description en format Markdown";
131134
else
132135
echo "supprimé";
133136

0 commit comments

Comments
 (0)
Please sign in to comment.