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> <template>
<div id="Catalogue"> <div id="CatalogueSearch">
<div class="container mb-0 mt-0"> <div class="container mb-0 mt-0">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-12">
<h2>Recherche Catalogue</h2> <h2>Catalogue</h2>
<input type="text" ref="intercarif" placeholder="Identifiant INTERCARIF" v-model="intercarif"> <input type="text" ref="intercarif" placeholder="Identifiant INTERCARIF" v-model="intercarif" class="form-control"><br>
<input @click="search()" type="button" class="btn main-button ml-4" value="Chercher"> <input @click="search()" type="button" class="btn main-button pull-right" 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> </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"> <div v-if="this.intercarif && Object.keys(this.results).length">
<pre>{{ this.results }}</pre> <pre>{{ this.results }}</pre>
</div> </div>
...@@ -24,6 +26,7 @@ ...@@ -24,6 +26,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'CatalogueSearch',
data: function () { data: function () {
return { return {
intercarif: "", intercarif: "",
......
<template> <template>
<div id="CertifInfo"> <div id="CertifInfoSearch">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-12">
<h2>Recherche Certif Info</h2> <h2>Certif Info</h2>
<input type="text" ref="certifinfo" placeholder="Code Certif Info" v-model="certifinfo"> <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 ml-4" value="Chercher"> <input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div> </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"> <div v-if="this.certifinfo && Object.keys(this.results).length">
<ul class="dash"> <ul class="dash">
<li v-for="(result,code) in this.results" :key="code"> <li v-for="(result,code) in this.results" :key="code">
...@@ -25,7 +28,7 @@ ...@@ -25,7 +28,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'CertifInfo', name: 'CertifInfoSearch',
data: function () { data: function () {
return { return {
certifinfo: "", certifinfo: "",
......
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
<div id="IDCCSearch"> <div id="IDCCSearch">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-12">
<h2>Recherche IDCC</h2> <h2>IDCC</h2>
<input type="text" ref="idcc" placeholder="Chercher une convention collective" v-model="idcc"> <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 ml-4" value="Chercher"> <input @click="search()" type="button" class="btn main-button pull-right" value="Chercher">
</div> </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"> <div v-if="this.idcc && Object.keys(this.results).length">
<ul class="dash"> <ul class="dash">
<li v-for="(result,code) in this.results" :key="code"> <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',