blob: abb226464879b62d6de82719cd3e6fe130481d88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?php
/**
* Elgg groups plugin
*
* @package ElggGroups
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Marcus Povey
* @copyright Curverider Ltd 2008
* @link http://elgg.com/
*/
?>
<form action="<?php echo $vars['url']; ?>action/groups/edit" enctype="multipart/form-data" method="post">
<p>
<label><?php echo elgg_echo("groups:icon"); ?><br />
<?php
echo elgg_view("input/file",array('internalname' => 'icon'));
?>
</label>
</p>
<?php
//var_export($vars['profile']);
if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0)
foreach($vars['config']->group as $shortname => $valtype) {
?>
<p>
<label>
<?php echo elgg_echo("groups:{$shortname}") ?><br />
<?php echo elgg_view("input/{$valtype}",array(
'internalname' => $shortname,
'value' => $vars['entity']->$shortname,
)); ?>
</label>
</p>
<?php
}
?>
<p>
<label>
<?php echo elgg_echo('groups:membership'); ?><br />
<?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id, 'options' => array( 0 => 'Private', 2=>'Public'))); ?>
</label>
</p>
<p>
<?php
if ($vars['entity'])
{
?><input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" /><?php
}
?>
<input type="hidden" name="user_guid" value="<?php echo page_owner_entity()->guid; ?>" />
<input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
</p>
</form>
|