app/views/wiki/edit_menu.rhtml in Pimki-1.7.092 vs app/views/wiki/edit_menu.rhtml in Pimki-1.8.092
- old
+ new
@@ -1,34 +1,37 @@
<%
@title = "Editing Left-Side Menu Options"
- @content_width = 700
+ @content_width = 810
@hide_navigation = true
@hide_menu = true
- @style_additions = "#Container { margin-left: 100px;}"
+ @inline_style = true
+ @style_additions = "#Content, #Container {width = 820px; padding-left:100px;}"
%>
<%= sub_template "top" %>
<%= render_markup_help %>
+<div id='main'>
+
<form id="editForm" action="./save_menu" method="post">
<p>Please choose the format you prefer for the left-size menu:</p>
<p><input type="radio" name="type" value="linkers" <%= 'checked' if @menu_type == 'linkers' %>>Only pages that link other pages (default)</p>
<p><input type="radio" name="type" value="all" <%= 'checked' if @menu_type == 'all' %>>All Pages</p>
<p><input type="radio" name="type" value="revised" <%= 'checked' if @menu_type == 'revised' %>>Recently revised pages</p>
<p><input type="radio" name="type" value="recent" <%= 'checked' if @menu_type == 'recent' %>>Recently visited pages</p>
<p><input type="radio" name="type" value="viewed" <%= 'checked' if @menu_type == 'viewed' %>>Most viewed pages</p>
-<p><input type="radio" name="type" value="category" <%= 'checked' if @menu_type == 'category' %>>Pages in a specific category:
- <select id="category" name="category" size="1" style="width:190">
+<p><input type="radio" name="type" value="category" id='menu_rb_categ' <%= 'checked' if @menu_type == 'category' %>>Pages in a specific category:
+ <select id="sel_category" name="sel_category" size="1" style="width:190" onChange="forms.editForm.menu_rb_categ.checked = true;">
<option value="noselect">------------
<% for category in web.categories %>
- <option value="<%= category %>"><%= category %>
+ <option value="<%= category %>" <%= 'selected' if category == web.menu_category %>><%= category %></option>
<% end %>
</select>
</p>
<p>For the above options you can choose if you want to limit the number of results. Enter the number of items you wish, or 0 for all items: <input type="textfield" size="20", name="limit" value="<%= @list_limit %>" /></p>
-<p><input type="radio" name="type" value="user" <%= 'checked' if @menu_type == 'user' %>>Or just write your own menu contents (as a regular Wiki page):
- <textarea name="content" style="width: 400px; height: 300px"><%= !@menu_content.nil? && Page === @menu_content ? @menu_content.content : @menu_content %></textarea>
+<p><input type="radio" name="type" value="user" id="menu_rb_freetext" <%= 'checked' if @menu_type == 'user' %>>Or just write your own menu contents (as a regular Wiki page):
+ <textarea name="content" style="width: 400px; height: 300px" onClick="forms.editForm.menu_rb_freetext.checked = true;"><%= !@menu_content.nil? && Page === @menu_content ? @menu_content.content : @menu_content %></textarea>
</p>
<% if Page === @menu_content && @menu_content.revisions.length > 1
@menu_content.revisions.each_with_index do |rev, i| %>
<a href='.' onClick="forms.editForm.content.value = unescape('<%= CGI.escape(rev.content).gsub('+', ' ') %>'); return false;">Set menu content to revision <%= i %></a><br />
@@ -46,22 +49,26 @@
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td align="right">
- <small>
- Enter system password
- <input style="font-size:small;" type="password" id="system_password" name="system_password">
- and
- <input type="submit" name='action' value="Update">
- </small>
- </tr></td>
- <tr><td align="right">
- <small>
- ...or forget changes and <input type="submit" name='action' value="Cancel Update">
- </small>
- </tr></td>
+ <small>
+ Enter system password
+ <input style="font-size:small;" type="password" id="system_password" name="system_password">
+ and
+ <input type="submit" name='action' value="Update">
+ </small>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ <small>
+ ...or forget changes and <input type="submit" name='action' value="Cancel Update">
+ </small>
+ </td>
+ </tr>
</table>
</form>
+</div>
<%= sub_template "bottom" %>
\ No newline at end of file