|
<?php
|
|
|
|
namespace MONTREAL;
|
|
|
|
use Dcp\Ui\CommonRenderOptions;
|
|
use Dcp\Ui\RenderOptions;
|
|
|
|
class dossier_all
|
|
{
|
|
|
|
|
|
public static function getOptions(RenderOptions $options)
|
|
{
|
|
$options->arrayAttribute()->setLabelPosition(
|
|
CommonRenderOptions::upPosition
|
|
)->setRowMinLimit(1);
|
|
|
|
$options->htmltext()->setLabelPosition(CommonRenderOptions::upPosition);
|
|
|
|
$options->enum()->displayDeleteButton(false);
|
|
|
|
$options->htmltext()->displayDeleteButton(false);
|
|
$options->date()->setKendoDateConfiguration(
|
|
[
|
|
"culture" => "fr-CA",
|
|
"format" => "D"
|
|
]
|
|
);
|
|
$options->commonOption("mtd_a_recommandation")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_decision_anterieur")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_dev_durable_pj")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_impact_majeur_pj")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_operation_com_pj")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_calendrier")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_conformite")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_f_validation")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->commonOption("mtd_a_validation")->setLabelPosition(
|
|
CommonRenderOptions::nonePosition
|
|
);
|
|
$options->money()->setCurrency("$");
|
|
return $options;
|
|
}
|
|
|
|
public static function getCssReferences(Array $css)
|
|
{
|
|
$css["dossier"] = "MONTREAL/css/dossier.css";
|
|
return $css;
|
|
}
|
|
|
|
public static function getJsReference(Array $js) {
|
|
$js["culture_CA"] = "lib/KendoUI/2014.3/js/cultures/kendo.culture.fr-CA.js";
|
|
return $js;
|
|
}
|
|
}
|