aboutsummaryrefslogtreecommitdiff
path: root/mod/logrotate/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logrotate/views')
-rw-r--r--mod/logrotate/views/default/settings/logrotate/edit.php26
1 files changed, 23 insertions, 3 deletions
diff --git a/mod/logrotate/views/default/settings/logrotate/edit.php b/mod/logrotate/views/default/settings/logrotate/edit.php
index c73bec52c..32d59faa5 100644
--- a/mod/logrotate/views/default/settings/logrotate/edit.php
+++ b/mod/logrotate/views/default/settings/logrotate/edit.php
@@ -6,12 +6,16 @@
*/
$period = $vars['entity']->period;
+$time = $vars['entity']->time;
if (!$period) {
$period = 'monthly';
}
-
+
+if (!$time) {
+ $time = 'monthly';
+}
?>
-<p>
+<div>
<?php echo elgg_echo('logrotate:period'); ?>
<?php
@@ -25,4 +29,20 @@ if (!$period) {
'value' => $period
));
?>
-</p>
+
+ <?php echo elgg_echo('</div><div>'); ?>
+
+ <?php echo elgg_echo('logrotate:date'); ?>
+
+ <?php
+ echo elgg_view('input/pulldown', array(
+ 'internalname' => 'params[time]',
+ 'options_values' => array(
+ 'weekly' => elgg_echo('logrotate:week'),
+ 'monthly' => elgg_echo('logrotate:month'),
+ 'yearly' => elgg_echo('logrotate:year'),
+ ),
+ 'value' => $time
+ ));
+ ?>
+</div>