Download this file

editProjectInfos.jsp    135 lines (107 with data), 2.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta charset="utf-8" />
<title>jQuery UI Accordion - Default functionality</title>
<LINK rel="SHORTCUT ICON" href="./Timbus_icon.png">
<link rel="stylesheet" type="text/css" href="jMetro/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="jMetro/timbusstyle.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<style type="text/css">
body {
font-family: "Segoe UI", Helvetica, Verdana;
font-size: 11px;
margin: 50px;
}
#wrapper {
width: 700px;
}
h1 {
font-weight: normal;
}
.header {
margin-top: 2em;
font-weight: normal;
}
#dialog_link {
padding: .4em 1em .4em 20px;
text-decoration: none;
position: relative;
}
#dialog_link span.ui-icon {
margin: 0 5px 0 0;
position: absolute;
left: .2em;
top: 50%;
margin-top: -8px;
}
ul#icons {
margin: 0;
padding: 0;
}
ul#icons li {
margin: 2px;
position: relative;
padding: 4px 0;
cursor: pointer;
float: left;
list-style: none;
}
ul#icons span.ui-icon {
float: left;
margin: 0 4px;
}
#verticalSliders {
height: 140px;
padding-top: 20px;
}
#verticalSliders>div {
float: left;
margin: 20px;
}
.right {
position: absolute;
top: 0px;
height: 24px;
width: 12px;
margin: 0;
background: white;
border: 0;
}
.right-1 {
right: 0px;
}
.right-2 {
right: 20px
}
.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited
{
background: none;
}
textarea{
resize : none;
}
</style>
</head>
<body>
<div id="wrapper" style="border: 2px solid grey">
<h1 class="header">Edit projectinfos</h1>
<s:form action="commitEditProjects" >
<s:textfield name="project.name" label="Projects name" style="width: 500px"/>
<s:textarea name="project.description" label="Description" style="width: 500px; height=200px;" rows="10"/>
<s:label>Laws</s:label>
<s:iterator value="lawsAvailable" var="laws" >
<div style="width: 500px">
<s:checkbox fieldValue="%{id}" id="project.laws.id-%{id}" name="project.laws.id" key="id" label="%{name}" value="project.laws.{id}"></s:checkbox>
</div>
</s:iterator>
<s:hidden name="project.id" value="%{project.id}"/>
<s:submit />
</s:form>
</div>
</body>
</html>