From 6cbd41b1f9dc016b8adedcbf71da49ff522fc6e1 Mon Sep 17 00:00:00 2001
From: Fabrice Bellamy <12b@distrilab.fr>
Date: Mon, 21 Oct 2024 14:19:14 +0200
Subject: [PATCH] cargo loco generate scaffold service name:string^
description:text configuration:text --htmx
---
.../assets/views/service/create.html | 59 +++++++++
nixin_farm_ssr/assets/views/service/edit.html | 78 ++++++++++++
nixin_farm_ssr/assets/views/service/list.html | 30 +++++
nixin_farm_ssr/assets/views/service/show.html | 22 ++++
nixin_farm_ssr/migration/src/lib.rs | 2 +
.../src/m20241021_121806_services.rs | 39 ++++++
nixin_farm_ssr/src/app.rs | 1 +
nixin_farm_ssr/src/controllers/mod.rs | 3 +-
nixin_farm_ssr/src/controllers/service.rs | 117 ++++++++++++++++++
nixin_farm_ssr/src/models/_entities/mod.rs | 1 +
.../src/models/_entities/prelude.rs | 1 +
.../src/models/_entities/services.rs | 22 ++++
nixin_farm_ssr/src/models/mod.rs | 1 +
nixin_farm_ssr/src/models/services.rs | 7 ++
nixin_farm_ssr/src/views/mod.rs | 3 +-
nixin_farm_ssr/src/views/service.rs | 39 ++++++
nixin_farm_ssr/tests/models/mod.rs | 3 +-
nixin_farm_ssr/tests/models/services.rs | 31 +++++
18 files changed, 456 insertions(+), 3 deletions(-)
create mode 100644 nixin_farm_ssr/assets/views/service/create.html
create mode 100644 nixin_farm_ssr/assets/views/service/edit.html
create mode 100644 nixin_farm_ssr/assets/views/service/list.html
create mode 100644 nixin_farm_ssr/assets/views/service/show.html
create mode 100644 nixin_farm_ssr/migration/src/m20241021_121806_services.rs
create mode 100644 nixin_farm_ssr/src/controllers/service.rs
create mode 100644 nixin_farm_ssr/src/models/_entities/services.rs
create mode 100644 nixin_farm_ssr/src/models/services.rs
create mode 100644 nixin_farm_ssr/src/views/service.rs
create mode 100644 nixin_farm_ssr/tests/models/services.rs
diff --git a/nixin_farm_ssr/assets/views/service/create.html b/nixin_farm_ssr/assets/views/service/create.html
new file mode 100644
index 0000000..e6b676a
--- /dev/null
+++ b/nixin_farm_ssr/assets/views/service/create.html
@@ -0,0 +1,59 @@
+{% extends "base.html" %}
+
+{% block title %}
+Create service
+{% endblock title %}
+
+{% block content %}
+
+{% endblock content %}
+
+{% block js %}
+
+{% endblock js %}
\ No newline at end of file
diff --git a/nixin_farm_ssr/assets/views/service/edit.html b/nixin_farm_ssr/assets/views/service/edit.html
new file mode 100644
index 0000000..0ad95a4
--- /dev/null
+++ b/nixin_farm_ssr/assets/views/service/edit.html
@@ -0,0 +1,78 @@
+{% extends "base.html" %}
+
+{% block title %}
+Edit service: {{ item.id }}
+{% endblock title %}
+
+{% block content %}
+Edit service: {{ item.id }}
+
+