Commit f8f4d47c authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

changing access start/stop to below other access elements, and adding descriptions of what they do

parent fd3c7272
...@@ -132,7 +132,10 @@ $string['deleteviewconfirm'] = 'Do you really want to delete this view? It canno ...@@ -132,7 +132,10 @@ $string['deleteviewconfirm'] = 'Do you really want to delete this view? It canno
$string['editaccesspagedescription'] = '<p>You can control who can see your view, and when they can do so. By default, only you can see your views.</p> $string['editaccesspagedescription'] = '<p>You can control who can see your view, and when they can do so. By default, only you can see your views.</p>
<p>You can grant access to your view to your friends, all logged in users, or only to the certain users and groups you choose.</p> <p>You can grant access to your view to your friends, all logged in users, or only to the certain users and groups you choose.</p>
<p>All dates are optional. If you wish, you can use them to restrict the time in which people can see your view. Access start and end further restrict when peope can see your view.</p>'; <p>All dates are optional. If you wish, you can use them to restrict the time in which people can see your view.</p>';
$string['startdatedescription'] = 'If set, no one can access your view before this time, even if you give them access.';
$string['stopdatedescription'] = 'If set, no one can access your view after this time, even if you give them access.';
$string['emptylabel'] = 'Click here to enter text for this label'; $string['emptylabel'] = 'Click here to enter text for this label';
$string['empty_block'] = 'Select an artefact from the tree on the left to place here'; $string['empty_block'] = 'Select an artefact from the tree on the left to place here';
......
...@@ -77,9 +77,14 @@ $form = array( ...@@ -77,9 +77,14 @@ $form = array(
'type' => 'hidden', 'type' => 'hidden',
'value' => $new, 'value' => $new,
), ),
'accesslist' => array(
'type' => 'viewacl',
'defaultvalue' => isset($view) ? $view->get_access() : null
),
'startdate' => array( 'startdate' => array(
'type' => 'calendar', 'type' => 'calendar',
'title' => get_string('startdate','view'), 'title' => get_string('startdate','view'),
'description' => get_string('startdatedescription', 'view'),
'defaultvalue' => isset($view) ? strtotime($view->get('startdate')) : null, 'defaultvalue' => isset($view) ? strtotime($view->get('startdate')) : null,
'caloptions' => array( 'caloptions' => array(
'showsTime' => true, 'showsTime' => true,
...@@ -90,6 +95,7 @@ $form = array( ...@@ -90,6 +95,7 @@ $form = array(
'stopdate' => array( 'stopdate' => array(
'type' => 'calendar', 'type' => 'calendar',
'title' => get_string('stopdate','view'), 'title' => get_string('stopdate','view'),
'description' => get_string('stopdatedescription', 'view'),
'defaultvalue' => isset($view) ? strtotime($view->get('stopdate')) : null, 'defaultvalue' => isset($view) ? strtotime($view->get('stopdate')) : null,
'caloptions' => array( 'caloptions' => array(
'showsTime' => true, 'showsTime' => true,
...@@ -97,10 +103,6 @@ $form = array( ...@@ -97,10 +103,6 @@ $form = array(
), ),
'help' => true, 'help' => true,
), ),
'accesslist' => array(
'type' => 'viewacl',
'defaultvalue' => isset($view) ? $view->get_access() : null
),
'submit' => array( 'submit' => array(
'type' => !empty($new) ? 'cancelbackcreate' : 'submitcancel', 'type' => !empty($new) ? 'cancelbackcreate' : 'submitcancel',
'value' => !empty($new) 'value' => !empty($new)
......
Markdown is supported
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