diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -13,7 +13,9 @@ include_once 'inc/class.page.php'; ?>
- +
+ +
+
(For example: Fall ) @@ -36,9 +38,12 @@ include_once 'inc/class.page.php';
+ + Add Class -
+
@@ -52,7 +57,6 @@ include_once 'inc/class.page.php';
  • After selecting a start time, set the end time to one hour after the start time
  • Append sections
  • Move the add class button to somewhere nicer, maybe a gray row at the bottom. Make the submit button more obvious.
  • -
  • Switch from dropdown for section identifier to entry field
  • Form validation to ensure endtime is after starttime, at least one day is checked.
  • Auto-populate form based on saved schedule?
  • Grab data from school sites such as this?
  • diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -72,7 +72,7 @@ '; } function customIds(name){ - return ''; + return ''; } //-------------------------------------------------- @@ -148,7 +148,7 @@ // Adds a new class when the add class button is // clicked. //-------------------------------------------------- - jQuery('#classage').click(function() { + jQuery('#addclass').click(function() { addRow(); }); @@ -156,8 +156,9 @@ // Deletes the selected class from input. //-------------------------------------------------- jQuery('.deleteClass').live('click', function() { - alert('Delete class and all sections of this class?'); - jQuery('.class'+ jQuery(this).parent().parent().attr("title")).remove(); + if(confirm('Delete class and all sections of this class?')) { + jQuery('.class'+ jQuery(this).parent().parent().attr("title")).remove(); + } }); //-------------------------------------------------- diff --git a/styles/general.css b/styles/general.css --- a/styles/general.css +++ b/styles/general.css @@ -57,3 +57,17 @@ .tdInput { background: #fff; } + +.addClassRow { + padding: 2px; + width: 30em; + +} +.gray { + text-align: center!important; + background: #BBB!important; + cursor:default; +} +.gray:hover { + background: #CCC!important; +}