Commit 56ab8dbf authored by David Foucher's avatar David Foucher
Browse files

Add editor config and reformat

parent c46afd28
Pipeline #1962 passed with stage
in 1 minute and 19 seconds
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4
[*.vue, *.js]
indent_size = 2
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
[Makefile]
indent_style = tab
indent_size = tab
......@@ -2,7 +2,7 @@
<div id="Accueil"></div>
</template>
<script>
export default {
name: 'Accueil'
}
</script>
\ No newline at end of file
export default {
name: 'Accueil'
}
</script>
<template>
<div id="Financements">
<div id="financement-main-div">
<div v-if="!this.isLoading">
<div id="financement-header-row">
<div class="container">
<div class="row mb-4">
<div id="financement-count-financements" class="col-md-6 col-sm-12 col-xs-12">
<span id="financement-count-financements-number" class="financement-results-count-number financement-count-financements-text">{{ this.countFinancements }}</span>
<span class="financement-count-financements-text" v-if="this.countFinancements < 2">&nbsp;financement</span>
<span class="financement-count-financements-text" v-else>&nbsp;financements</span>
</div>
<div id="financement-create-financement" class="col-md-6 col-sm-12 col-xs-12 my-auto">
<div class="form-inline pull-right">
<div class="form-group mx-sm-3 mb-2">
<input type="button" href="#" class="btn btn-outline-success form-control" value="Créer un financement" disabled />
</div>
</div>
</div>
</div>
<div class="row">
<div id="financement-last-update" class="col-md-12">
Dernière mise à jour le __ à __
</div>
</div>
</div>
</div>
<hr class="financement-horizontal-separator">
<div id="financement-filter-row" class="container">
<label for="financement-filter-select">Filtrer par</label>
<select id="financement-filter-select" class="form-control" name="financement-filter-select" v-model="search">
<option value="" selected>Tous les financements</option>
<optgroup label="Champ d'action">
<option value="national">Financements nationaux</option>
<option value="région">Financements régionaux</option>
</optgroup>
<optgroup label="Public visé">
<option value="DE">Demandeurs d'Emploi</option>
<option value="salarié">Salariés</option>
<option value="TH">Travailleurs Handicapés</option>
<option value="jeune">Personnes Niv inférieur au Bac</option>
</optgroup>
</select>
</div>
<hr class="financement-horizontal-separator">
<div id="financement-result-row" class="container">
<div class="row">
<div id="financement-search-financement" class="col-md-6 col-sm-12 col-xs-12 my-auto">
<span v-if="this.countFinancements < 2" class="financement-results-count">
Résultat (<span class="financement-results-count-number">{{ this.countResultats }}</span>)
</span>
<span v-else class="financement-results-count">
Résultats (<span class="financement-results-count-number">{{ this.countResultats }}</span>)
</span>
</div>
<div id="financement-search-financement" class="col-md-6 col-sm-12 col-xs-12 my-auto">
<div class="form-inline pull-right">
<div class="form-group mx-sm-3 mb-2">
<input class="form-control" id="financement-search-field" name="financement-search" placeholder="Rechercher" v-model="search">
</div>
</div>
</div>
</div>
<div id="financement-results-list">
<ul id="ul-financement-results-list">
<li v-for="financement in this.filteredFinancements" :key="financement.id" class="mt-4 row">
<span class="col-md-3 col-sm-12">
<a :href="'/referentiel#'+financement.racine">
<strong class="financement-fields">{{ financement.intitule }}</strong>
</a>
</span>
<span class="col-md-8 col-sm-11">
<span v-for="tag in financement.tags" :key="tag.id" class="financement-results-tags" >
<span class="btn btn-outline-info">
{{ tag }}
</span>
</span>
</span>
<span class="col-md-1 col-sm-1 pull-right">
<button href="https://framagit.org/ybon/trefle/tree/master/trefle/config/financements.yml" target="_blank" class="text-dark btn btn-outline-light" disabled>
<i class="icon" style="vertical-align: baseline;">edit</i>
</button>
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="Financements">
<div id="financement-main-div">
<div v-if="!this.isLoading">
<div id="financement-header-row">
<div class="container">
<div class="row mb-4">
<div id="financement-count-financements" class="col-md-6 col-sm-12 col-xs-12">
<span id="financement-count-financements-number" class="financement-results-count-number financement-count-financements-text">{{ this.countFinancements }}</span>
<span class="financement-count-financements-text" v-if="this.countFinancements < 2">&nbsp;financement</span>
<span class="financement-count-financements-text" v-else>&nbsp;financements</span>
</div>
<div id="financement-create-financement" class="col-md-6 col-sm-12 col-xs-12 my-auto">
<div class="form-inline pull-right">
<div class="form-group mx-sm-3 mb-2">
<input type="button" href="#" class="btn btn-outline-success form-control" value="Créer un financement" disabled />
</div>
</div>
</div>
</div>
<div class="row">
<div id="financement-last-update" class="col-md-12">
Dernière mise à jour le __ à __
</div>
</div>
</div>
</div>