aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/acl_selectors.php8
-rw-r--r--view/group_edit.tpl18
-rw-r--r--view/style.css4
3 files changed, 26 insertions, 4 deletions
diff --git a/view/acl_selectors.php b/view/acl_selectors.php
index e5df4c65e..e3ee8c879 100644
--- a/view/acl_selectors.php
+++ b/view/acl_selectors.php
@@ -1,11 +1,11 @@
<?php
-function group_select($selname,$selclass,$preselected = false) {
+function group_select($selname,$selclass,$preselected = false,$size = 4) {
$o = '';
- $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"4\" />\r\n";
+ $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" />\r\n";
$r = q("SELECT * FROM `group` WHERE `uid` = %d ORDER BY `name` ASC",
$_SESSION['uid']
@@ -30,11 +30,11 @@ function group_select($selname,$selclass,$preselected = false) {
-function contact_select($selname,$selclass,$preselected = false) {
+function contact_select($selname,$selclass,$preselected = false,$size = 4) {
$o = '';
- $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"4\" />\r\n";
+ $o .= "<select name=\"{$selname}[]\" class=\"$selclass\" multiple=\"multiple\" size=\"$size\" />\r\n";
$r = q("SELECT `id`, `name` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 ORDER BY `name` ASC ",
$_SESSION['uid']
diff --git a/view/group_edit.tpl b/view/group_edit.tpl
new file mode 100644
index 000000000..ebe32f472
--- /dev/null
+++ b/view/group_edit.tpl
@@ -0,0 +1,18 @@
+<h2>Group Editor</h2>
+
+
+<div id="group-edit-wrapper" >
+<form action="group/$gid" id="group-edit-form" method="post" >
+<div id="group-editname-wrapper" >
+<label id="group-edit-name-label" for="group-edit-name" >Group Name: </label>
+<input type="text" name="groupname" value="$name" />
+</div>
+<div id="group-edit-name-end"></div>
+<div id="group-edit-select-wrapper" >
+<label id=group_members_select_label" for="group_members_select" >Members:</label>
+$selector
+
+</div>
+<div id="group-edit-select-end" ></div>
+</form>
+</div>
diff --git a/view/style.css b/view/style.css
index a031731c5..cd10102d4 100644
--- a/view/style.css
+++ b/view/style.css
@@ -831,4 +831,8 @@ input#dfrn-url {
#acl-wrapper-end {
clear: both;
+}
+
+.group_members_select {
+ width: 200px;
} \ No newline at end of file