removed project deletion because it causes problems at login
This commit is contained in:
parent
97e8922599
commit
7bf171b4e8
src/main/java/se/su/dsv/scipro/project/panels
@ -45,8 +45,8 @@
|
||||
<th>Supervisor</th>
|
||||
<th>Reviewer</th>
|
||||
<th>Status</th>
|
||||
<th>Edit</th>
|
||||
<th class="rounded-right-top">Delete</th>
|
||||
<th class="rounded-right-top">Edit</th>
|
||||
<!-- <th class="rounded-right-top">Delete</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
@ -64,12 +64,12 @@
|
||||
<td wicket:id="statusLabel">Other role</td>
|
||||
<!-- <td wicket:id="editLabel">Other role</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>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td wicket:id="emptyLabel" colspan="8"></td>
|
||||
<td wicket:id="emptyLabel" colspan="7"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -130,17 +130,17 @@ public class ProjectManagementPanel extends Panel {
|
||||
};
|
||||
item.add(testLink);
|
||||
|
||||
AjaxLink deleteLink = new AjaxLink<Void>("deleteLink"){
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Override
|
||||
public void onClick(AjaxRequestTarget target) {
|
||||
Project p2 = projectDao.reLoad(p);
|
||||
projectDao.delete(p2);
|
||||
ajaxRefresh(target);
|
||||
}
|
||||
|
||||
};
|
||||
item.add(deleteLink);
|
||||
// AjaxLink deleteLink = new AjaxLink<Void>("deleteLink"){
|
||||
// private static final long serialVersionUID = 1L;
|
||||
// @Override
|
||||
// public void onClick(AjaxRequestTarget target) {
|
||||
// Project p2 = projectDao.reLoad(p);
|
||||
// projectDao.delete(p2);
|
||||
// ajaxRefresh(target);
|
||||
// }
|
||||
//
|
||||
// };
|
||||
// item.add(deleteLink);
|
||||
//>>>>>>> cascade
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user