Commit 37eb3a18 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Configuration de l'intitulé du numéro financier en cours

parent 9c980f3c
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ class OscarConfigurationService implements ServiceLocatorAwareInterface
    const pfi_strict_format = 'pfi_strict_format';
    const allow_node_selection = 'allow_node_selection';
    const empty_project_require_validation = 'empty_project_require_validation';
    const financial_label = 'financial_label';
    const financial_description = 'financial_description';


    const theme = 'theme';
@@ -663,6 +665,16 @@ class OscarConfigurationService implements ServiceLocatorAwareInterface
        return $this->getConfiguration(self::auth_person_normalize, false);
    }

    public function getFinancialLabel(): string
    {
        return $this->getEditableConfKey(self::financial_label, 'PFI');
    }

    public function getFinancialDescription(): string
    {
        return $this->getEditableConfKey(self::financial_description, 'Code PFI côté SIFAC');
    }

    /**
     * Retourne le dossier racine PCRU.
     *
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ class Options extends AbstractHtmlElement implements UseOscarConfigurationServic
    /**
     * @return OscarConfigurationService
     */
    private function getConfiguration()
    public function getConfiguration()
    {
        return $this->getOscarConfigurationService();
    }
+3 −4
Original line number Diff line number Diff line
@@ -153,7 +153,9 @@
            </article>

            <article class="card">
                <h3><i class="icon-"></i>Format du PFI</h3>
                <h3><i class="icon-"></i>Format du numéro financier (PFI)</h3>

                <h1><?php echo $this->options()->getConfiguration()->getFinancialLabel(); ?></h1>
                <p class="help-message">
                    <i class="icon-help-circled"></i>
                    Permet de fixer le mode strict
@@ -215,9 +217,7 @@
                    </form>
                </div>
                <script>
                    console.log('HOP');
                    require(['vue', 'vue-resource'], function(Vue, VueResource){
                        console.log("OK");
                        Vue.use(VueResource);
                        var verif = new Vue({
                            el: "#verifEl",
@@ -242,7 +242,6 @@

                                },
                                handlerVerify() {
                                    console.log("véfif ?", this.reg);
                                    this.$http.get('?a=verifypfi&reg=' +this.reg).then(
                                        ok => {
                                            console.log(ok);