removed project deletion because it causes problems at login

This commit is contained in:
Fredrik Friis 2012-02-29 11:47:34 +09:00
parent 97e8922599
commit 7bf171b4e8
2 changed files with 15 additions and 15 deletions
src/main/java/se/su/dsv/scipro/project/panels

@ -45,8 +45,8 @@
<th>Supervisor</th> <th>Supervisor</th>
<th>Reviewer</th> <th>Reviewer</th>
<th>Status</th> <th>Status</th>
<th>Edit</th> <th class="rounded-right-top">Edit</th>
<th class="rounded-right-top">Delete</th> <!-- <th class="rounded-right-top">Delete</th> -->
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
@ -64,12 +64,12 @@
<td wicket:id="statusLabel">Other role</td> <td wicket:id="statusLabel">Other role</td>
<!-- <td wicket:id="editLabel">Other role</td> --> <!-- <td wicket:id="editLabel">Other role</td> -->
<td><a href="#" wicket:id="testLink">Edit</a></td> <td><a href="#" wicket:id="testLink">Edit</a></td>
<td><a href="#" wicket:id="deleteLink">Delete</a></td> <!-- <td><a href="#" wicket:id="deleteLink">Delete</a></td> -->
</tr> </tr>
</tbody> </tbody>
<tbody> <tbody>
<tr> <tr>
<td wicket:id="emptyLabel" colspan="8"></td> <td wicket:id="emptyLabel" colspan="7"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

@ -130,17 +130,17 @@ public class ProjectManagementPanel extends Panel {
}; };
item.add(testLink); item.add(testLink);
AjaxLink deleteLink = new AjaxLink<Void>("deleteLink"){ // AjaxLink deleteLink = new AjaxLink<Void>("deleteLink"){
private static final long serialVersionUID = 1L; // private static final long serialVersionUID = 1L;
@Override // @Override
public void onClick(AjaxRequestTarget target) { // public void onClick(AjaxRequestTarget target) {
Project p2 = projectDao.reLoad(p); // Project p2 = projectDao.reLoad(p);
projectDao.delete(p2); // projectDao.delete(p2);
ajaxRefresh(target); // ajaxRefresh(target);
} // }
//
}; // };
item.add(deleteLink); // item.add(deleteLink);
//>>>>>>> cascade //>>>>>>> cascade
} }