Commit 8257dd51 authored by Penny Leach's avatar Penny Leach
Browse files

contextual help for add group / edit group forms

parent bb19a78c
......@@ -34,23 +34,28 @@ define('TITLE', get_string('creategroup'));
$creategroup = pieform(array(
'name' => 'creategroup',
'method' => 'post',
'plugintype' => 'core',
'pluginname' => 'groups',
'elements' => array(
'name' => array(
'type' => 'text',
'title' => get_string('groupname'),
'rules' => array( 'required' => true ),
'help' => true,
),
'description' => array(
'type' => 'wysiwyg',
'title' => get_string('groupdescription'),
'rows' => 10,
'cols' => 70,
'help' => true,
),
'members' => array(
'type' => 'userlist',
'title' => get_string('groupmembers'),
'rules' => array( 'required' => true ),
'filter' => false,
'help' => true,
),
'submit' => array(
'type' => 'submitcancel',
......
......@@ -44,12 +44,15 @@ $group_members = get_column('usr_group_member', 'member', 'grp', $group_data->id
$editgroup = pieform(array(
'name' => 'editgroup',
'method' => 'post',
'plugintype' => 'core',
'pluginname' => 'groups',
'elements' => array(
'name' => array(
'type' => 'text',
'title' => get_string('groupname'),
'rules' => array( 'required' => true ),
'defaultvalue' => $group_data->name,
'help' => true,
),
'description' => array(
'type' => 'wysiwyg',
......@@ -57,12 +60,14 @@ $editgroup = pieform(array(
'rows' => 10,
'cols' => 70,
'defaultvalue' => $group_data->description,
'help' => true,
),
'members' => array(
'type' => 'userlist',
'title' => get_string('groupmembers'),
'rules' => array( 'required' => true ),
'defaultvalue' => $group_members,
'help' => true,
),
'id' => array(
'type' => 'hidden',
......
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<h3><strong>Description</strong></h3>
<p>You may choose to write a Description of your Group for your reference.&nbsp; Members of the Group will not see this Description.</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<p><strong>Group members</strong></p>
<p>Select potential Group members from the list on the left and using the arrow buttons add them to the Group box on the right.&nbsp; You can also Search for specific users.&nbsp; </p>
<p>Members of a Group do not see the name or details of any other member and are no aware that they have been assigned to a Group within your portfolio.</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<h3><strong>Name</strong></h3>
<p>Enter the Name you would like use to identify this Group.&nbsp; Each of your Groups must have a unique name. </p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<h3><strong>Description</strong></h3>
<p>You may choose to write a Description of your Group for your reference.&nbsp; Members of the Group will not see this Description.</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<h3><strong>Edit</strong></h3>
<p>Use Edit Group to change the Name or Description or update membership of your Group.</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<p><strong>Group members</strong></p>
<p>Select potential Group members from the list on the left and using the arrow buttons add them to the Group box on the right.&nbsp; You can also Search for specific users.&nbsp; </p>
<p>Members of a Group do not see the name or details of any other member and are no aware that they have been assigned to a Group within your portfolio.</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
</head>
<body bgcolor="#FFFFFF">
<h3><strong>Name</strong></h3>
<p>Enter the Name you would like use to identify this Group.&nbsp; Each of your Groups must have a unique name. </p>
</body>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment