Diff for /loncom/html/adm/helper/parameter.helper between versions 1.19 and 1.22

version 1.19, 2010/03/16 15:12:36 version 1.22, 2015/08/28 22:45:11
Line 1 Line 1
 <helper title="Course Parameter Helper" requiredpriv='opa'>  <helper title="Course Parameter Helper" requiredpriv='opa&S'>
   
   <exec>    <exec>
     # 'dateTypeHash' should really be renamed now that we have tries...      # 'dateTypeHash' should really be renamed now that we have tries...
Line 144 Line 144
         ' for ...');          ' for ...');
       </eval>        </eval>
     <choices variable="TARGETS">      <choices variable="TARGETS">
       <choice computer="course" nextstate="FINISH">        <condition>
          . . . for <b>all students</b> in the course</choice>          <clause>return 1 if ($env{'request.course.sec'} eq '')</clause>
           <choice computer="course" nextstate="FINISH">
              . . . for <b>all students</b> in the course</choice>
         </condition>
       <choice computer="section" nextstate="CHOOSE_SECTION">        <choice computer="section" nextstate="CHOOSE_SECTION">
          . . . for a particular <b>section</b></choice>           . . . for a particular <b>section</b></choice>
       <condition>        <condition>
         <clause>return 1 if (&Apache::longroup::coursegroups())</clause>          <clause>return 1 if (($env{'request.course.groups'} ne '') || (&Apache::lonnet::allowed('mdg',$env{'request.course.id'}) && (&Apache::longroup::coursegroups())))</clause>
         <choice computer="group" nextstate="CHOOSE_GROUP">          <choice computer="group" nextstate="CHOOSE_GROUP">
            . . . for a particular <b>group</b></choice>             . . . for a particular <b>group</b></choice>
       </condition>        </condition>
       <choice computer="student" nextstate="CHOOSE_STUDENT">        <choice computer="student" nextstate="CHOOSE_STUDENT">
          . . . for an individual <b>student</b></choice>           . . . for an individual <b>student</b> or <b>user</b></choice>
       </choices>        </choices>
     </state>      </state>
   
Line 163 Line 166
       return &mt('Please select the section you wish to set the ' .        return &mt('Please select the section you wish to set the ' .
        &{$helper->{DATA}->{'dateType'}}() .         &{$helper->{DATA}->{'dateType'}}() .
          ' for:').'<br />';</eval>           ' for:').'<br />';</eval>
     <section variable="SECTION_NAME" nextstate="FINISH" />      <section variable="SECTION_NAME" nextstate="FINISH" onlysections="1" />
     </state>      </state>
   
   <state name="CHOOSE_GROUP" title="Select Group">    <state name="CHOOSE_GROUP" title="Select Group">
Line 171 Line 174
       return &mt('Please select the group you wish to set the ' .        return &mt('Please select the group you wish to set the ' .
        &{$helper->{DATA}->{'dateType'}}() .         &{$helper->{DATA}->{'dateType'}}() .
          ' for:').'<br />';</eval>           ' for:').'<br />';</eval>
     <group variable="GROUP_NAME" nextstate="FINISH" />      <group variable="GROUP_NAME" nextstate="FINISH" grouponly="1" />
     </state>      </state>
   
   
   <state name="CHOOSE_STUDENT" title="Select Student">    <state name="CHOOSE_STUDENT" title="Select User">
     <eval>      <eval>
       return &mt('Please select the student you wish to set the ' .        return &mt('Please select the person you wish to set the ' .
        &{$helper->{DATA}->{'dateType'}}() .         &{$helper->{DATA}->{'dateType'}}() .
          ' for:').'<br />';</eval>           ' for:').'<br />';</eval>
     <student variable="USER_NAME" nextstate="FINISH" coursepersonnel='1'/>      <student variable="USER_NAME" nextstate="FINISH" coursepersonnel="1" sectiononly="1" />
     </state>      </state>
   
   <state name="FINISH" title="Verify Selection">    <state name="FINISH" title="Verify Selection">

Removed from v.1.19  
changed lines
  Added in v.1.22


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>