diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/access.php | 8 | ||||
-rw-r--r-- | views/default/widgets/editwrapper.php | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php index 4c767d0d0..cbabf3cc4 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -27,11 +27,11 @@ <select name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>>
<?php
- foreach($vars['options'] as $option) {
- if ($option != $vars['value']) {
- echo "<option>{$option}</option>";
+ foreach($vars['options'] as $key => $option) {
+ if ($key != $vars['value']) {
+ echo "<option value=\"{$key}\">{$option}</option>";
} else {
- echo "<option selected=\"selected\">{$option}</option>";
+ echo "<option value=\"{$key}\" selected=\"selected\">{$option}</option>";
}
}
diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php index 2411e4ca6..4308ebf2f 100644 --- a/views/default/widgets/editwrapper.php +++ b/views/default/widgets/editwrapper.php @@ -22,6 +22,12 @@ ?>
<p>
+ <label>
+ <?php echo elgg_echo('access'); ?>
+ <?php echo elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $vars['entity']->access_id)); ?>
+ </label>
+ </p>
+ <p>
<input type="hidden" name="guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
<input type="submit" value="<?php
|