From d9a6cf87569be4a6a8a53269a5261774fe21eb84 Mon Sep 17 00:00:00 2001
From: Fabrice Bellamy <12b@distrilab.fr>
Date: Mon, 21 Oct 2024 14:16:25 +0200
Subject: [PATCH] cargo loco generate scaffold bundle name:string^
description:text --htmx
---
.../assets/views/bundle/create.html | 54 ++++++++
nixin_farm_ssr/assets/views/bundle/edit.html | 73 +++++++++++
nixin_farm_ssr/assets/views/bundle/list.html | 27 ++++
nixin_farm_ssr/assets/views/bundle/show.html | 19 +++
nixin_farm_ssr/migration/src/lib.rs | 2 +
.../migration/src/m20241021_121449_bundles.rs | 37 ++++++
nixin_farm_ssr/src/app.rs | 1 +
nixin_farm_ssr/src/controllers/bundle.rs | 115 ++++++++++++++++++
nixin_farm_ssr/src/controllers/mod.rs | 3 +-
.../src/models/_entities/bundles.rs | 20 +++
nixin_farm_ssr/src/models/_entities/mod.rs | 1 +
.../src/models/_entities/prelude.rs | 1 +
nixin_farm_ssr/src/models/bundles.rs | 7 ++
nixin_farm_ssr/src/models/mod.rs | 1 +
nixin_farm_ssr/src/views/bundle.rs | 39 ++++++
nixin_farm_ssr/src/views/mod.rs | 3 +-
nixin_farm_ssr/tests/models/bundles.rs | 31 +++++
nixin_farm_ssr/tests/models/mod.rs | 3 +-
18 files changed, 434 insertions(+), 3 deletions(-)
create mode 100644 nixin_farm_ssr/assets/views/bundle/create.html
create mode 100644 nixin_farm_ssr/assets/views/bundle/edit.html
create mode 100644 nixin_farm_ssr/assets/views/bundle/list.html
create mode 100644 nixin_farm_ssr/assets/views/bundle/show.html
create mode 100644 nixin_farm_ssr/migration/src/m20241021_121449_bundles.rs
create mode 100644 nixin_farm_ssr/src/controllers/bundle.rs
create mode 100644 nixin_farm_ssr/src/models/_entities/bundles.rs
create mode 100644 nixin_farm_ssr/src/models/bundles.rs
create mode 100644 nixin_farm_ssr/src/views/bundle.rs
create mode 100644 nixin_farm_ssr/tests/models/bundles.rs
diff --git a/nixin_farm_ssr/assets/views/bundle/create.html b/nixin_farm_ssr/assets/views/bundle/create.html
new file mode 100644
index 0000000..c1d3e13
--- /dev/null
+++ b/nixin_farm_ssr/assets/views/bundle/create.html
@@ -0,0 +1,54 @@
+{% extends "base.html" %}
+
+{% block title %}
+Create bundle
+{% endblock title %}
+
+{% block content %}
+
+{% endblock content %}
+
+{% block js %}
+
+{% endblock js %}
\ No newline at end of file
diff --git a/nixin_farm_ssr/assets/views/bundle/edit.html b/nixin_farm_ssr/assets/views/bundle/edit.html
new file mode 100644
index 0000000..1cd784d
--- /dev/null
+++ b/nixin_farm_ssr/assets/views/bundle/edit.html
@@ -0,0 +1,73 @@
+{% extends "base.html" %}
+
+{% block title %}
+Edit bundle: {{ item.id }}
+{% endblock title %}
+
+{% block content %}
+Edit bundle: {{ item.id }}
+
+