Rev 12998 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12998 | Rev 13001 | ||
---|---|---|---|
Line 154... | Line 154... | ||
154 | !set tmp=!defof class_ocourses in wimshome/log/classes/$class_parent/.def |
154 | !set tmp=!defof class_ocourses in wimshome/log/classes/$class_parent/.def |
155 | !if $code notwordof $directlist_ \ |
155 | !if $code notwordof $directlist_ \ |
156 | and $code notitemof $user_participate,$user_supervise\ |
156 | and $code notitemof $user_participate,$user_supervise\ |
157 | and ($class_typename!=level or $wims_user=supervisor) |
157 | and ($class_typename!=level or $wims_user=supervisor) |
158 | !set wims_ref_class=wims_button |
158 | !set wims_ref_class=wims_button |
159 | !! obligatory course |
159 | !! obligatory course or optionel course but not registered in the parent |
160 | !if $class_typename=course and (($tmp!=$empty and $tmp isin $code) \ |
160 | !if $class_typename=course and (($tmp!=$empty and $tmp isin $code) \ |
161 | or $class_parent notitemof $user_participate) |
161 | or $class_parent notitemof $user_participate) |
162 | <span style="color:grey">$name_register</span> |
162 | <span style="color:grey">$name_register</span> |
163 | !else |
163 | !else |
- | 164 | !if $wims_user=$empty |
|
- | 165 | !href module=$module&type=authparticipant&class=$code&subclass=yes $wims_name_Enter |
|
- | 166 | !else |
|
164 | !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register |
167 | !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register |
- | 168 | !endif |
|
165 | !endif |
169 | !endif |
166 | !else |
170 | !else |
167 | !if $splevel=$empty or $splevel=2 and $code notitemof $tmp |
171 | !if $splevel=$empty or $splevel=2 and $code notitemof $tmp |
168 | !set wims_ref_class=wims_button |
172 | !set wims_ref_class=wims_button |
169 | !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter |
173 | !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter |