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

refactor: move buttons

parent 80e9c451
......@@ -6,6 +6,7 @@ Observations de la session {{}}
{% block content %}
......@@ -19,7 +20,7 @@ Observations de la session {{}}
<ol class="breadcrumb">
<li><a href="{% url 'sights:place_detail' %}">Localité</a> <span class="text-muted hidden-xs">({{}})</span>
<li><a href="{% url 'sights:session_detail' %}">Session</a> <span class="text-muted hidden-xs">({{}}<span class="label label-default">{{}}</span>)</span>
<li><a href="{% url 'sights:session_detail' %}">Session</a> <span class="text-muted hidden-xs">({{}} <span class="label label-default">{{}}</span>)</span>
<div v-if="messages.length > 0" >
......@@ -38,18 +39,15 @@ Observations de la session {{}}
<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
<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>
<!-- <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 class="panel panel-default">
......@@ -73,11 +71,11 @@ Observations de la session {{}}
<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>
<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'):'-' ]]
<i class="text-muted">
[[ s.codesp ? getSpecieValue(s.codesp,'sci_name'):'-' ]]
......@@ -87,8 +85,10 @@ Observations de la session {{}}
<span @click="addNewSighting()" class="btn btn-info btn-sm btn-block"><i class="fa fa-plus"></i> <strong>Nouveau
<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 {{}}
</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']]
......@@ -386,14 +386,11 @@ Observations de la session {{}}
<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>
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