Changeset 1425


Ignore:
Timestamp:
Jan 4, 2014, 4:27:11 AM (4 years ago)
Author:
dkg
Message:

show all current proposals submitted by each user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.person.php

    r1422 r1425  
    3333
    3434      $ret = '';
     35      $proposals = $this->getProposals();
     36      // if they have already submitted some, give them links to their own proposals...
     37      if (count($proposals)) {
     38        $ret .= '<div> You have submitted the following proposal'.(count($proposals) > 1 ? 's' : '').'<ul>';
     39        reset($proposals);
     40        while(list(,$proposal) = each($proposals)) {
     41          $ret .= '<li>'.$proposal->getLinkedTitle().'</li>';
     42        }
     43        $ret .= '</ul></div>';
     44      }
    3545      if ($jpdd->getActiveEvent()->advertiseProposals()) {
    36         $ret .= '<div>Please <a href="'.$jpdd->Path('edit', 'proposal').'">submit a workshop proposal!</a></div>';
    37         // FIXME: if they have already submitted some, give them links to their own proposals...
     46        $ret .= '<div>You can <a href="'.$jpdd->Path('edit', 'proposal').'">submit a'.(count($proposals) ? 'nother' : '').' workshop proposal</a>.</div>';
    3847      }
    3948
Note: See TracChangeset for help on using the changeset viewer.