Commit 0acca16c authored by hypsug0's avatar hypsug0
Browse files

refactor: move buttons

parent 80e9c451
......@@ -6,6 +6,7 @@ Observations de la session {{object.name}}
{% block content %}
<style>
</style>
......@@ -19,7 +20,7 @@ Observations de la session {{object.name}}
<ol class="breadcrumb">
<li><a href="{% url 'sights:place_detail' pk=object.place.pk %}">Localité</a> <span class="text-muted hidden-xs">({{object.place.name}})</span>
</li>
<li><a href="{% url 'sights:session_detail' pk=object.pk %}">Session</a> <span class="text-muted hidden-xs">({{object.name}}<span class="label label-default">{{object.contact.descr}}</span>)</span>
<li><a href="{% url 'sights:session_detail' pk=object.pk %}">Session</a> <span class="text-muted hidden-xs">({{object.name}} <span class="label label-default">{{object.contact.descr}}</span>)</span>
</li>
</ol>
<div v-if="messages.length > 0" >
......@@ -38,18 +39,15 @@ Observations de la session {{object.name}}
</div>
<div id="sessionSightingEditForm">
<validation-observer tag="form" v-slot="{ invalid, valid }" slim>
<div id="sessionSightingEditFormList" class="col-sm-4 col-md-2">
<div class="panel btn-group " role="group" aria-label="...">
<div class="btn-group btn-group-justified" role="group">
<span @click="addNewSighting()" class="btn btn-info btn-sm"><i class="fa fa-plus"></i> <strong>Nouveau
taxon</strong></span>
<span @click="postData()" type="submit" class="btn btn-sm btn-success"
<div id="sessionSightingEditFormList" class="col-sm-4 col-md-3">
<div class="panel" role="group" aria-label="...">
<span @click="postData()" type="submit" class="btn btn-sm btn-block btn-success"
><i class="fa fa-fw fa-save"></i>
<strong>Tout enregistrer</strong></span>
<strong>Enregistrer</strong></span>
<!-- <span @click="postData()" type="submit" class="btn btn-xs" :class="{'btn-warning':invalid,'btn-success':valid}"
:disabled="invalid"><i class="fa fa-plus" :class="{'fa-': invalid}"></i>
<strong>[[invalid ? 'Formulaire non valide': 'Enregistrer']]</strong></span>-->
</div>
</div>
<div class="panel panel-default">
......@@ -73,11 +71,11 @@ Observations de la session {{object.name}}
</h4>
<div class="">
<div class="btn-group btn-sm pull-right">
<span @click="postOneData(is)" class="text-info"><i class="fas fa-fw fa-save"></i></span>
{% comment %} <span @click="postOneData(is)" class="text-info"><i class="fas fa-fw fa-save"></i></span> {% endcomment %}
<span @click="deleteSighting(is)" class="text-danger "><i class="fa fa-fw fa-trash"></i></span>
</div>
<span class="label bg-info text-uppercase">
[ [[ s.codesp ? getSpecieValue(s.codesp,'codesp'):'-' ]] ]
<span class="label label-info text-uppercase">
[[ s.codesp ? getSpecieValue(s.codesp,'codesp'):'-' ]]
</span>
<i class="text-muted">
[[ s.codesp ? getSpecieValue(s.codesp,'sci_name'):'-' ]]
......@@ -87,8 +85,10 @@ Observations de la session {{object.name}}
</div>
</div>
</div>
<span @click="addNewSighting()" class="btn btn-info btn-sm btn-block"><i class="fa fa-plus"></i> <strong>Nouveau
taxon</strong></span>
</div>
<div id="sessionSightingEditFormDetails" class="col-sm-8 col-md-10">
<div id="sessionSightingEditFormDetails" class="col-sm-8 col-md-9">
<div v-if="data[selectedItem]" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
......@@ -104,7 +104,7 @@ Observations de la session {{object.name}}
</span> {% endcomment %}
<span v-else class="label label-success">new</span>
[[ data[selectedItem].codesp ?
getSpecieValue(data[selectedItem].codesp, 'sci_name'):
getSpecieValue(data[selectedItem].codesp, 'common_name_fr'):
'Choisissez une espèce']]
</h3>
</div>
......@@ -386,14 +386,11 @@ Observations de la session {{object.name}}
</table>
</div>
<div class="panel-footer">
<div class="btn-group text-right">
<div class="btn btn-xs btn-info" @click="addNewCountDetail(selectedItem)">
<div class="btn btn-sm btn-info btn-block" @click="addNewCountDetail(selectedItem)">
<i class="fa fa-plus"></i>
<strong>Nouveau dénombrement</strong>
</div>
</div>
</div>
</div>
......
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