summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202020-10-12 16:45:51 +0530
committerSashi202020-10-12 16:45:51 +0530
commit72ddaff1c25c87f131a561644846b9ac2d1146c9 (patch)
tree3fb858c3d0214fe9c9514bd87b3611bff109e076
parent445775dcb41a9f0392417bcadb5e179595588e9c (diff)
downloadxcos_textbook_companion-72ddaff1c25c87f131a561644846b9ac2d1146c9.tar.gz
xcos_textbook_companion-72ddaff1c25c87f131a561644846b9ac2d1146c9.tar.bz2
xcos_textbook_companion-72ddaff1c25c87f131a561644846b9ac2d1146c9.zip
Remove restriction on expected date of completion in proposal form
-rwxr-xr-xgeneral.inc6
-rw-r--r--proposal.inc14
2 files changed, 10 insertions, 10 deletions
diff --git a/general.inc b/general.inc
index 649814e..6cde464 100755
--- a/general.inc
+++ b/general.inc
@@ -277,12 +277,12 @@ function list_examples()
$example_data->caption,
$approval_status,
$example_files,
- //l('Edit', 'xcos-textbook-companion/code/edit/' . $example_data->id)
- l('Edit', 'xcos-textbook-companion/code/edit/' . $example_data->id) . ' | ' . l('Delete', 'xcos-textbook-companion/code/delete/' . $example_data->id, array(
+ l('Edit', 'xcos-textbook-companion/code/edit/' . $example_data->id)
+ /*l('Edit', 'xcos-textbook-companion/code/edit/' . $example_data->id) . ' | ' . l('Delete', 'xcos-textbook-companion/code/delete/' . $example_data->id, array(
'attributes' => array(
'onClick' => 'return confirm("Are you sure you want to delete the example?")'
)
- ))
+ ))*/
),
'valign' => 'top'
);
diff --git a/proposal.inc b/proposal.inc
index 5a8aa98..7195c76 100644
--- a/proposal.inc
+++ b/proposal.inc
@@ -334,13 +334,13 @@ function book_proposal_form($form, &$form_state)
'#type' => 'date_popup',
'#title' => t('Expected Date of Completion'),
'#date_label_position' => '',
- '#description' => '<span style="color:red">Please select a date within September 27, 2020</span>',
+ //'#description' => '<span style="color:red">Please select a date within September 27, 2020</span>',
'#default_value' => '',
'#date_format' => 'd-m-Y',
//'#date_increment' => 0,
//'#minDate' => '+0',
- '#date_year_range' => '0 : +0',
- '#datepicker_options' => array('maxDate' => '+30D', 'minDate' => 0),
+ //'#date_year_range' => '0 : +0',
+ '#datepicker_options' => array('minDate' => 0),
'#required' => TRUE
);
$form['operating_system'] = array(
@@ -435,10 +435,10 @@ function book_proposal_form_validate($form, &$form_state)
$d = (int) $d;
$m = (int) $m;
$y = (int) $y;
- $completion_date = strtotime($form_state['values']['expected_date_of_completion']);
- $last_date = strtotime("27-09-2020");
- if ($completion_date > $last_date)
- form_set_error('expected_date_of_completion', t('Please select a date within September 27, 2020'));
+ //$completion_date = strtotime($form_state['values']['expected_date_of_completion']);
+ //$last_date = strtotime("27-09-2020");
+ //if ($completion_date > $last_date)
+ //form_set_error('expected_date_of_completion', t('Please select a date within September 27, 2020'));
if ($form_state['values']['country'] == 'Others')
{
if ($form_state['values']['other_country'] == '')