Commit e4c9998b authored by Lucas Détré's avatar Lucas Détré

trefle/explorer/app.css

parent de634dbc
Pipeline #1692 passed with stage
in 1 minute and 22 seconds
......@@ -2,22 +2,22 @@
<div id="ref-main-div" class="bg-light">
<div id="ref-header-row">
<div class="container">
<div class="row">
<div id="ref-count-financements" class="col-md-3">
<div class="row mb-4">
<div id="ref-count-financements" class="col-md-3 col-sm-6 col-xs-12">
<span id="ref-count-financements-number" class="ref-count-financements-text">{ this.count_financements }&nbsp;</span>
<span class="ref-count-financements-text" if={ this.lt_two }>financement</span>
<span class="ref-count-financements-text" if={ !this.lt_two }>financements</span>
</div>
<div id="ref-create-financement" class="col-md-3">
<div id="ref-create-financement" class="col-md-3 col-sm-6 col-xs-12 my-auto">
<button href="#" class="btn btn-outline-success" disabled>Créer un financement</button>
</div>
<div id="ref-search-financement" class="col-md-6">
<form class="form-inline pull-right">
<div id="ref-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" name="financement-search" placeholder="Rechercher" disabled>
<input class="form-control" id="financement-search-field" name="financement-search" type="search" placeholder="Rechercher">
</div>
<button class="btn btn-success mb-2" type="submit" disabled>OK</button>
</form>
<button class="btn btn-success mb-2" id="financement-search-button">OK</button>
</div>
</div>
</div>
<div class="row">
......@@ -95,30 +95,6 @@
<script>
this.rules = []
this.rule = null
this.active = null
this.on('mount', () => this.load())
this.load_data = (data) => {
RULES = data
this.rules = data
if (this.opts.id) {
this.active = decodeURIComponent(this.opts.id)
this.rule = data[this.active.split('~')[0]]
}
this.update()
// Force element target after DOM has been rebuilt
// (eg. if we have a ~line in the URL, to highlight it).
window.location.hash = window.location.hash
}
this.load = () => {
if (RULES) return this.load_data(RULES)
request('../explore/rules')
.then(this.load_data)
}
this.financements = []
this.count_financements = 0
......@@ -139,7 +115,6 @@
this.update()
})
}
this.mixin(View)
$(document).ready(function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment