Skip to content

Commit 1e7e616

Browse files
fix : Review test mobile
1 parent b9855dc commit 1e7e616

File tree

6 files changed

+30
-27
lines changed

6 files changed

+30
-27
lines changed

R/check_param.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ check_names_dataframe <- function(names, df) {
2323

2424
#' formater_comment
2525
#' @noRd
26-
formater_comment <- function(comment, date = Sys.Date()) {
27-
c <- paste(date, comment, sep = " : ")
26+
formater_comment <- function(comment) {
27+
c <- paste0(comment, " : ")
2828
return(c)
2929
}

R/write_db_new_truffe.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#' @param estimation logical indicating whether the weight was estimated or not.
1111
#' @param comment Any additional comments related to the truffle.
1212
#' @param digest_ The digest of the truffle.
13-
#' @param date_comment the date of the comment (Sys.Date() by default)
1413
#'
1514
#' @importFrom digest digest
1615
#' @importFrom DBI dbAppendTable
@@ -20,7 +19,7 @@
2019
#' @examples
2120
#' # write_db_new_truffe(theidoak = "chene")
2221
write_db_new_truffe <-
23-
function(conn = connect_db(), theidoak, date_found, weight, estimation, comment, digest_ = Sys.time(), date_comment = Sys.Date()) {
22+
function(conn = connect_db(), theidoak, date_found, weight, estimation, comment, digest_ = Sys.time()) {
2423
idtruffle <- digest(digest_)
2524

2625
add_truffe <- data.frame(
@@ -29,7 +28,7 @@ write_db_new_truffe <-
2928
date_found = as.character(date_found),
3029
weight = weight,
3130
estimation = estimation,
32-
comment = paste(date_comment, comment, sep = " : ")
31+
comment = formater_comment(comment)
3332
)
3433

3534
dbAppendTable(conn, "truffe", add_truffe)

inst/app/www/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
opacity: 0;
1010
width: 0;
1111
height: 0;
12+
position: absolute;
13+
margin: 0;
14+
padding: 0;
1215
}
1316

1417
.toggle-switch label {

inst/app/www/leaflet_.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ $(document).ready(function () {
3232
);
3333

3434
if (map === null) {
35+
document.getElementById(arg.id).style.height = "580px";
3536
// Créer la carte uniquement si elle n'existe pas encore
3637
map = L.map(document.getElementById(arg.id)).setView(
3738
[mean_lat, mean_lon],
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
<b>Identifiant : </b> {{id}} <hr>
2-
<div class = "conteneur" >
3-
<div class = "enfant" style="text-align: left;">
4-
<label for="inputDate">Date :</label>
5-
<input type="date" id="inputDate" class="swal2-input">
1+
<b>Identifiant : </b> {{id}}
2+
<hr>
3+
<div class="conteneur">
4+
<div class="enfant" style="text-align: left;">
5+
<label for="inputDate">Date :</label>
6+
<input type="date" id="inputDate" class="swal2-input">
7+
</div>
68
</div>
7-
</div><hr>
8-
<div class = "conteneur" >
9-
<div class = "enfant" style="text-align: left;">
10-
<label for="inputNum">Poids (en g):</label>
11-
<input type="number" id="inputNum" class="swal2-input">
9+
<hr>
10+
<div class="conteneur">
11+
<div class="enfant" style="text-align: left;">
12+
<label for="inputNum">Poids (en g):</label>
13+
<input type="number" id="inputNum" class="swal2-input">
14+
</div>
1215
</div>
13-
<div class = "enfant" style="text-align: center;">
16+
<div class="conteneur">
17+
<div class="enfant" style="text-align: left;">
1418
<label for="inputEstim">Estimation</label><br>
1519
<div class="toggle-switch">
1620
<input type="checkbox" id="inputEstim" class="swal2-input">
1721
<label for="inputEstim"></label>
18-
</div>
19-
</div>
22+
</div>
23+
</div>
2024
</div>
2125
<hr>
22-
<div class = "conteneur" >
23-
<div class = "enfant" style="text-align: left;">
26+
<div class="conteneur">
27+
<div class="enfant" style="text-align: left;">
2428
<label for="inputComm">Commentaire :</label>
25-
<input type="text" id="inputComm" class="swal2-input">
29+
<input type="text" id="inputComm" class="swal2-input">
2630
</div>
2731
</div>
28-
<hr>
29-
32+
<hr>

man/write_db_new_truffe.Rd

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)