aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/profdef_edit.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-27 22:01:02 -0700
committerfriendica <info@friendica.com>2014-08-27 22:01:02 -0700
commit2d210db1b85e5893afe285fc7b32f9987f1ae565 (patch)
tree5acc6288380390c8ba21543a34e60228257ec276 /view/tpl/profdef_edit.tpl
parenteb27bea794d5aff547be9722f7c058678b8cbb1d (diff)
downloadvolse-hubzilla-2d210db1b85e5893afe285fc7b32f9987f1ae565.tar.gz
volse-hubzilla-2d210db1b85e5893afe285fc7b32f9987f1ae565.tar.bz2
volse-hubzilla-2d210db1b85e5893afe285fc7b32f9987f1ae565.zip
ability to create/edit/delete custom profile field definitions - read the source. Currently the created entries aren't added to the allowed fields arrays, but this can be done by hand until that bit is made available. Only choice for input type at the moment is 'text' or a text input, not a textarea. Multiple choice will be added later.
Diffstat (limited to 'view/tpl/profdef_edit.tpl')
-rw-r--r--view/tpl/profdef_edit.tpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/view/tpl/profdef_edit.tpl b/view/tpl/profdef_edit.tpl
new file mode 100644
index 000000000..bfe85314d
--- /dev/null
+++ b/view/tpl/profdef_edit.tpl
@@ -0,0 +1,16 @@
+<h3>{{$header}}</h3>
+
+<form action="admin/profs" method="post" >
+
+{{if $id}}
+<input type="hidden" name="id" value="{{$id}}" />
+{{/if}}
+
+{{include file="field_input.tpl" field=$field_name}}
+{{include file="field_input.tpl" field=$field_type}}
+{{include file="field_input.tpl" field=$field_desc}}
+{{include file="field_input.tpl" field=$field_help}}
+
+<input name="submit" type="submit" value="{{$submit}}" />
+
+</form>