From a26e48b013f6674e0cb96c143739b0d5c3f71f63 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 29 Sep 2013 18:18:05 -0700 Subject: sources management page --- view/js/mod_sources.js | 12 ++++++++++++ view/tpl/sources_edit.tpl | 22 ++++++++++++++++++++++ view/tpl/sources_list.tpl | 15 +++++++++++++++ view/tpl/sources_new.tpl | 15 +++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 view/js/mod_sources.js create mode 100644 view/tpl/sources_edit.tpl create mode 100644 view/tpl/sources_list.tpl create mode 100644 view/tpl/sources_new.tpl (limited to 'view') diff --git a/view/js/mod_sources.js b/view/js/mod_sources.js new file mode 100644 index 000000000..140f13843 --- /dev/null +++ b/view/js/mod_sources.js @@ -0,0 +1,12 @@ +$(document).ready(function() { + var a; + a = $("#id_name").autocomplete({ + serviceUrl: baseurl + '/acl', + minChars: 2, + width: 350, + onSelect: function(value,data) { + $("#id_xchan").val(data); + } + }); + +}); diff --git a/view/tpl/sources_edit.tpl b/view/tpl/sources_edit.tpl new file mode 100644 index 000000000..6e9cee32b --- /dev/null +++ b/view/tpl/sources_edit.tpl @@ -0,0 +1,22 @@ +

{{$title}}

+ +
{{$desc}}
+ +
+ + +{{include file="field_input.tpl" field=$name}} +{{include file="field_textarea.tpl" field=$words}} + +
+ +
+
+
+
+{{$drop}} + + + + + diff --git a/view/tpl/sources_list.tpl b/view/tpl/sources_list.tpl new file mode 100644 index 000000000..5fe50ba98 --- /dev/null +++ b/view/tpl/sources_list.tpl @@ -0,0 +1,15 @@ +

{{$title}}

+ +
{{$desc}}
+ + + +{{if $sources}} + +{{/if}} \ No newline at end of file diff --git a/view/tpl/sources_new.tpl b/view/tpl/sources_new.tpl new file mode 100644 index 000000000..267245ae4 --- /dev/null +++ b/view/tpl/sources_new.tpl @@ -0,0 +1,15 @@ +

{{$title}}

+ +
{{$desc}}
+ +
+ +{{include file="field_input.tpl" field=$name}} +{{include file="field_textarea.tpl" field=$words}} + +
+ +
+
+ + -- cgit v1.2.3