diff --git a/src/Controller/TabularDataController.php b/src/Controller/TabularDataController.php index a527b98..6588ee3 100644 --- a/src/Controller/TabularDataController.php +++ b/src/Controller/TabularDataController.php @@ -19,10 +19,6 @@ class TabularDataController extends AbstractController #[Route('/tabular-data', name: 'tabular_data_publish')] public function publish(Request $request, NostrClient $nostrClient): Response { - $user = $this->getUser(); - if (!$user) { - return $this->redirectToRoute('login'); - } $form = $this->createForm(TabularDataType::class); $form->handleRequest($request); diff --git a/templates/tabular_data/publish.html.twig b/templates/tabular_data/publish.html.twig index e69de29..9ad9cec 100644 --- a/templates/tabular_data/publish.html.twig +++ b/templates/tabular_data/publish.html.twig @@ -0,0 +1,38 @@ +{% extends 'layout.html.twig' %} + +{% block title %}Publish Tabular Data{% endblock %} + +{% block body %} +
+
+
+

Publish Tabular Data

+
+
+ {{ form_start(form) }} +
+ {{ form_label(form.title) }} + {{ form_widget(form.title) }} + {{ form_errors(form.title) }} +
+
+ {{ form_label(form.csvContent) }} + {{ form_widget(form.csvContent) }} + {{ form_errors(form.csvContent) }} +
+
+ {{ form_label(form.license) }} + {{ form_widget(form.license) }} + {{ form_errors(form.license) }} +
+
+ {{ form_label(form.units) }} + {{ form_widget(form.units) }} + {{ form_errors(form.units) }} +
+ + {{ form_end(form) }} +
+
+
+{% endblock %}