Section properties are now tables within fieldsets r0-9
authorTimm S. Mueller <tmueller@neoscientists.org>
Mon, 19 Feb 2007 00:16:54 +0100
changeset 69deba83fe50cf
parent 68 53354bfe4769
child 70 3df72753eefd
Section properties are now tables within fieldsets
cgi-bin/loona/editable.lua
     1.1 --- a/cgi-bin/loona/editable.lua	Sun Feb 18 23:13:09 2007 +0100
     1.2 +++ b/cgi-bin/loona/editable.lua	Mon Feb 19 00:16:54 2007 +0100
     1.3 @@ -84,27 +84,64 @@
     1.4  							<legend>
     1.5  								<%=loona.locale.CREATE_NEW_SECTION_UNDER%> <%=loona.sectionpath%>
     1.6  							</legend>
     1.7 -							<input size="30" maxlength="30" name="editname" />
     1.8 -							<label><%=loona.locale.PATHNAME%></label>
     1.9 -							<br />
    1.10 -							<input size="30" maxlength="50" name="editlabel" />
    1.11 -							<label><%=loona.locale.MENULABEL%></label>
    1.12 -							<br />
    1.13 -							<input size="30" maxlength="50" name="edittitle" />
    1.14 -							<label><%=loona.locale.WINDOWTITLE%></label>
    1.15 -							<br />
    1.16 -							<input type="checkbox" name="editvisibility" />
    1.17 -							<label><%=loona.locale.INVISIBLE%></label>
    1.18 -							<br />
    1.19 -							<input type="checkbox" name="editsecrecy" />
    1.20 -							<label><%=loona.locale.SECRET%></label>
    1.21 -							<br />
    1.22 -							<input type="checkbox" name="editsecure" />
    1.23 -							<label><%=loona.locale.SECURE_CONNECTION%></label>
    1.24 -							<br />
    1.25 -							<input size="30" maxlength="50" name="editredirect" />
    1.26 -							<label><%=loona.locale.REDIRECT%></label>
    1.27 -							<br />
    1.28 +							<table>
    1.29 +								<tr>
    1.30 +									<td align="right">
    1.31 +										<%=loona.locale.PATHNAME%>
    1.32 +									</td>
    1.33 +									<td>
    1.34 +										<input size="30" maxlength="30" name="editname" />
    1.35 +									</td>
    1.36 +								</tr>
    1.37 +								<tr>
    1.38 +									<td align="right">
    1.39 +										<%=loona.locale.MENULABEL%>
    1.40 +									</td>
    1.41 +									<td>
    1.42 +										<input size="30" maxlength="50" name="editlabel" />
    1.43 +									</td>
    1.44 +								</tr>
    1.45 +								<tr>
    1.46 +									<td align="right">
    1.47 +										<%=loona.locale.WINDOWTITLE%>
    1.48 +									</td>
    1.49 +									<td>
    1.50 +										<input size="30" maxlength="50" name="edittitle" />
    1.51 +									</td>
    1.52 +								</tr>
    1.53 +								<tr>
    1.54 +									<td align="right">
    1.55 +										<%=loona.locale.INVISIBLE%>
    1.56 +									</td>
    1.57 +									<td>
    1.58 +										<input type="checkbox" name="editvisibility" />
    1.59 +									</td>
    1.60 +								</tr>
    1.61 +								<tr>
    1.62 +									<td align="right">
    1.63 +										<%=loona.locale.SECRET%>
    1.64 +									</td>
    1.65 +									<td>
    1.66 +										<input type="checkbox" name="editsecrecy" />
    1.67 +									</td>
    1.68 +								</tr>
    1.69 +								<tr>
    1.70 +									<td align="right">
    1.71 +										<%=loona.locale.SECURE_CONNECTION%>
    1.72 +									</td>
    1.73 +									<td>
    1.74 +										<input type="checkbox" name="editsecure" />
    1.75 +									</td>
    1.76 +								</tr>
    1.77 +								<tr>
    1.78 +									<td align="right">
    1.79 +										<%=loona.locale.REDIRECT%>
    1.80 +									</td>
    1.81 +									<td>
    1.82 +										<input size="30" maxlength="50" name="editredirect" />
    1.83 +									</td>
    1.84 +								</tr>
    1.85 +							</table>					
    1.86  							<input type="submit" name="actioncreate" value="<%=loona.locale.CREATE%>" />
    1.87  							<%hiddenvars()%>
    1.88  						</fieldset>
    1.89 @@ -118,38 +155,58 @@
    1.90  					<form action="<%=loona.document%>" method="post" accept-charset="utf-8">
    1.91  						<fieldset>
    1.92  							<legend>
    1.93 -								<%=loona.locale.MODIFY_PROPERTIES_OF_SECTION%> /<%=loona.sectionpath%>
    1.94 +								<%=loona.locale.MODIFY_PROPERTIES_OF_SECTION%> <%=loona.sectionpath%>
    1.95  							</legend>
    1.96 -							<input size="30" value="<%=(loona.section.creator or "")%>" readonly="readonly" />
    1.97 -							<label><%=loona.locale.CREATOR%></label>
    1.98 -							<br />
    1.99 -							<input size="30" value="<%=((loona.section.creationdate and os.date("%d-%b-%Y %T", loona.section.creationdate)) or "")%>" readonly="readonly" />
   1.100 -							<label><%=loona.locale.CREATIONDATE%></label>
   1.101 -							<br />
   1.102 -							<input size="30" value="<%=(loona.section.revisioner or "")%>" readonly="readonly" />
   1.103 -							<label><%=loona.locale.REVISIONER%></label>
   1.104 -							<br />
   1.105 -							<input size="30" value="<%=((loona.section.revisiondate and os.date("%d-%b-%Y %T", loona.section.revisiondate)) or "")%>" readonly="readonly" />
   1.106 -							<label><%=loona.locale.REVISIONDATE%></label>
   1.107 -							<br />
   1.108 -							<input size="30" maxlength="50" name="editlabel" value="<%=(loona.section.label or "")%>" />
   1.109 -							<label><%=loona.locale.MENULABEL%></label>
   1.110 -							<br />
   1.111 -							<input size="30" maxlength="50" name="edittitle" value="<%=(loona.section.title or "")%>" />
   1.112 -							<label><%=loona.locale.WINDOWTITLE%></label>
   1.113 -							<br />
   1.114 -							<input type="checkbox" name="editvisibility" <%=(loona.section.hidden and 'checked="checked"' or "")%>/>
   1.115 -							<label><%=loona.locale.INVISIBLE%></label>
   1.116 -							<br />
   1.117 -							<input type="checkbox" name="editsecrecy" <%=(loona.section.secret and 'checked="checked"' or "")%>/>
   1.118 -							<label><%=loona.locale.SECRET%></label>
   1.119 -							<br />
   1.120 -							<input type="checkbox" name="editsecure" <%=(loona.section.secure and 'checked="checked"' or "")%>/>
   1.121 -							<label><%=loona.locale.SECURE_CONNECTION%></label>
   1.122 -							<br />
   1.123 -							<input size="30" maxlength="50" name="editredirect" value="<%=(loona.section.redirect or "")%>" />
   1.124 -							<label><%=loona.locale.REDIRECT%></label>
   1.125 -							<br />
   1.126 +							<table>
   1.127 +								<tr>
   1.128 +									<td align="right">
   1.129 +										<%=loona.locale.MENULABEL%>
   1.130 +									</td>
   1.131 +									<td>
   1.132 +										<input size="30" maxlength="50" name="editlabel" value="<%=(loona.section.label or "")%>" />
   1.133 +									</td>
   1.134 +								</tr>
   1.135 +								<tr>
   1.136 +									<td align="right">
   1.137 +										<%=loona.locale.WINDOWTITLE%>
   1.138 +									</td>
   1.139 +									<td>
   1.140 +										<input size="30" maxlength="50" name="edittitle" value="<%=(loona.section.title or "")%>" />
   1.141 +									</td>
   1.142 +								</tr>
   1.143 +								<tr>
   1.144 +									<td align="right">
   1.145 +										<%=loona.locale.INVISIBLE%>
   1.146 +									</td>
   1.147 +									<td>
   1.148 +										<input type="checkbox" name="editvisibility" <%=(loona.section.hidden and 'checked="checked"' or "")%>/>
   1.149 +									</td>
   1.150 +								</tr>
   1.151 +								<tr>
   1.152 +									<td align="right">
   1.153 +										<%=loona.locale.SECRET%>
   1.154 +									</td>
   1.155 +									<td>
   1.156 +										<input type="checkbox" name="editsecrecy" <%=(loona.section.secret and 'checked="checked"' or "")%>/>
   1.157 +									</td>
   1.158 +								</tr>
   1.159 +								<tr>
   1.160 +									<td align="right">
   1.161 +										<%=loona.locale.SECURE_CONNECTION%>
   1.162 +									</td>
   1.163 +									<td>
   1.164 +										<input type="checkbox" name="editsecure" <%=(loona.section.secure and 'checked="checked"' or "")%>/>
   1.165 +									</td>
   1.166 +								</tr>
   1.167 +								<tr>
   1.168 +									<td align="right">
   1.169 +										<%=loona.locale.REDIRECT%>
   1.170 +									</td>
   1.171 +									<td>
   1.172 +										<input size="30" maxlength="50" name="editredirect" value="<%=(loona.section.redirect or "")%>" />
   1.173 +									</td>
   1.174 +								</tr>
   1.175 +							</table>
   1.176  							<input type="submit" name="actionsaveprops" value="<%=loona.locale.SAVE%>" />
   1.177  							<input type="submit" name="actioncancel" value="<%=loona.locale.CANCEL%>" />
   1.178  							<%hiddenvars()%>