-
-
\ No newline at end of file
+{{ render_partial('function_editor.html', name=name, script=script, environment_info=environment_info, is_edit=True) }}
\ No newline at end of file
diff --git a/templates/dashboard/http_functions/new.html b/templates/dashboard/http_functions/new.html
index 1d0639b..d7cacbb 100644
--- a/templates/dashboard/http_functions/new.html
+++ b/templates/dashboard/http_functions/new.html
@@ -8,175 +8,4 @@
-
-
-
Code
-
-
-
-
-
-
-
-
{{ script }}
-
-
-
Environment
-
-
-
-
-
-
-
{}
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+{{ render_partial('function_editor.html', name=name, script=script, environment_info=environment_info, is_add=True) }}
\ No newline at end of file
diff --git a/templates/function_editor.html b/templates/function_editor.html
new file mode 100644
index 0000000..b8633b9
--- /dev/null
+++ b/templates/function_editor.html
@@ -0,0 +1,228 @@
+
\ No newline at end of file
diff --git a/templates/home.html b/templates/home.html
index d9fd4e6..5d1817c 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -32,130 +32,6 @@
-
-
-
-
-
-
{{ script }}
-
-
-
-
-
-
-
-
-
-
+{{ render_partial('function_editor.html', name=name, script=script, environment_info=environment_info) }}
{% endblock %}
\ No newline at end of file