Commit 5d07fb68 authored by Lucas Détré's avatar Lucas Détré

Merge branch 'new-simulator' into 'vue-editor'

New simulator

See merge request !29
parents a0570397 60c1d091
Pipeline #2392 passed with stage
in 1 minute and 48 seconds
<template>
<div id="Catalogue">
<div id="CatalogueSearch">
<div class="container mb-0 mt-0">
<div class="row">
<div class="col-md-6">
<h2>Recherche Catalogue</h2>
<input type="text" ref="intercarif" placeholder="Identifiant INTERCARIF" v-model="intercarif">
<input @click="search()" type="button" class="btn main-button ml-4" value="Chercher">
<p>Plus d'info sur le format du catalogue: <a href="http://lheo.gouv.fr/langage">http://lheo.gouv.fr/langage</a>.</p>
<div class="col-md-12">
<h2>Catalogue</h2>
<input type="text" ref="intercarif" placeholder="Identifiant INTERCARIF" v-model="intercarif" class="form-control"><br>
<input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div>
<div class="col-md-6 results">
</div>
<br>
<div class="row">
<div class="col-md-12 results">
<div v-if="this.intercarif && Object.keys(this.results).length">
<pre>{{ this.results }}</pre>
</div>
......@@ -24,6 +26,7 @@
</template>
<script>
export default {
name: 'CatalogueSearch',
data: function () {
return {
intercarif: "",
......
<template>
<div id="CertifInfo">
<div id="CertifInfoSearch">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Recherche Certif Info</h2>
<input type="text" ref="certifinfo" placeholder="Code Certif Info" v-model="certifinfo">
<input @click="search()" type="button" class="btn main-button ml-4" value="Chercher">
<div class="col-md-12">
<h2>Certif Info</h2>
<input type="text" ref="certifinfo" placeholder="Code Certif Info" v-model="certifinfo" class="form-control"><br>
<input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div>
<div class="col-md-6 results">
</div>
<br>
<div class="row">
<div class="col-md-12 results">
<div v-if="this.certifinfo && Object.keys(this.results).length">
<ul class="dash">
<li v-for="(result,code) in this.results" :key="code">
......@@ -25,7 +28,7 @@
</template>
<script>
export default {
name: 'CertifInfo',
name: 'CertifInfoSearch',
data: function () {
return {
certifinfo: "",
......
......@@ -2,12 +2,15 @@
<div id="IDCCSearch">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Recherche IDCC</h2>
<input type="text" ref="idcc" placeholder="Chercher une convention collective" v-model="idcc">
<input @click="search()" type="button" class="btn main-button ml-4" value="Chercher">
<div class="col-md-12">
<h2>IDCC</h2>
<input type="text" ref="idcc" placeholder="Chercher une convention collective" v-model="idcc" class="form-control"><br>
<input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div>
<div class="col-md-6 results">
</div>
<br>
<div class="row">
<div class="col-md-12 results">
<div v-if="this.idcc && Object.keys(this.results).length">
<ul class="dash">
<li v-for="(result,code) in this.results" :key="code">
......
<template>
<div id="NAFSearch">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>NAF</h2>
<input type="text" ref="naf" placeholder="Code NAF" v-model="naf" class="form-control"><br>
<input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div>
</div>
<br>
<div class="row">
<div class="col-md-12 results">
<div v-if="this.naf && Object.keys(this.results).length">
<ul class="dash">
<li v-for="(result,code) in this.results" :key="code">
{{ result.name }}
</li>
</ul>
</div>
<div v-if="this.naf && this.resultsIsEmpty">
<p> Aucune activité principale trouvée avec l'identifiant «{{ this.naf }}».</p>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'NAFSearch',
data: function () {
return {
naf: "",
results: {},
resultsIsEmpty: false,
}
},
computed: {
},
methods: {
search: function () {