Skip to content
Snippets Groups Projects
Commit 0ae642cf authored by Roger W Feese's avatar Roger W Feese
Browse files

Add code to display info messages and block new course requests.

parent 77f75453
Branches
No related tags found
1 merge request!32Add code to display info messages and block new course requests.
...@@ -11,6 +11,12 @@ class Courses_NewController extends Creq_Controller_Action ...@@ -11,6 +11,12 @@ class Courses_NewController extends Creq_Controller_Action
public function searchAction() public function searchAction()
{ {
//disable new requests
$this->_helper->getHelper('FlashMessenger')->addMessage(
"No new requests can be submitted at this time due to the implementation of CIM, the new curriculum request system. More information about CIM and training opportunities will be available in August. If you have any questions please contact Nicolette Brenton at 402-472-4030 or brenton@unl.edu."
);
$this->view->messages = $this->_helper->getHelper('FlashMessenger')->getMessages();
$filter = array( $filter = array(
'subject' => array('Alpha', 'StringToUpper'), 'subject' => array('Alpha', 'StringToUpper'),
'courseNumber' => array('Digits'), 'courseNumber' => array('Digits'),
...@@ -85,6 +91,9 @@ class Courses_NewController extends Creq_Controller_Action ...@@ -85,6 +91,9 @@ class Courses_NewController extends Creq_Controller_Action
public function createAction() public function createAction()
{ {
$this->redirect('/courses/new');
$filter = array( $filter = array(
'type' => array('StringTrim'), 'type' => array('StringTrim'),
'subject' => array('Alpha', 'StringToUpper'), 'subject' => array('Alpha', 'StringToUpper'),
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?> <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?>
<?php if ($this->messages) { ?>
<script type="text/javascript">
WDN.initializePlugin('notice');
</script>
<div class="wdn_notice">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<?php foreach ($this->messages as $message) {
echo $message;
}?>
</div>
</div>
<?php } ?>
<h2> <h2>
The course <?php echo $this->subject . ' ' . $this->courseNumber . $this->courseLetter; ?> is currently involved an The course <?php echo $this->subject . ' ' . $this->courseNumber . $this->courseLetter; ?> is currently involved an
<a href="<?php echo $this->baseUrl(); ?>/requests/view/index/id/<?php echo $this->activeRequests->pop()->getId() ?>">active request</a>!<br /> <a href="<?php echo $this->baseUrl(); ?>/requests/view/index/id/<?php echo $this->activeRequests->pop()->getId() ?>">active request</a>!<br />
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?> <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?>
<?php if ($this->messages) { ?>
<script type="text/javascript">
WDN.initializePlugin('notice');
</script>
<div class="wdn_notice">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<?php foreach ($this->messages as $message) {
echo $message;
}?>
</div>
</div>
<?php } ?>
<div class="content"> <div class="content">
<h2> <h2>
The course <?php echo $this->subject , ' ' The course <?php echo $this->subject , ' '
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?> <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?>
<?php if ($this->messages) { ?>
<script type="text/javascript">
WDN.initializePlugin('notice');
</script>
<div class="wdn_notice">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<?php foreach ($this->messages as $message) {
echo $message;
}?>
</div>
</div>
<?php } ?>
<?php if($this->crosslisting) { ?> <?php if($this->crosslisting) { ?>
<h2> <h2>
The course <?php echo $this->subject , ' ' The course <?php echo $this->subject , ' '
......
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?> <?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/new.css', 'all'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/new.js'); ?> <?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/new.js'); ?>
<?php if ($this->messages) { ?>
<script type="text/javascript">
WDN.initializePlugin('notice');
</script>
<div class="wdn_notice">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<?php foreach ($this->messages as $message) {
echo $message;
}?>
</div>
</div>
<?php } ?>
<div id="helpLinkBox"><a href="<?php echo $this->baseUrl(); ?>/courses/edit/help" target="helpWindow">Curriculum Policies</a></div> <div id="helpLinkBox"><a href="<?php echo $this->baseUrl(); ?>/courses/edit/help" target="helpWindow">Curriculum Policies</a></div>
<div id="announcements" class="titled_box"> <div id="announcements" class="titled_box">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment