app/views/wiki/edit_web.rhtml in Pimki-1.3.092 vs app/views/wiki/edit_web.rhtml in Pimki-1.4.092

- old
+ new

@@ -22,11 +22,11 @@ style to find ID names on individual tags. <a href="#" onClick="document.getElementById('additionalStyle').style.display='block';return false;">See styles >></a> </div> <div class="inputBox"> Markup: <select name="markup"> - <%= html_options({ "Textile" => :textile, "Markdown" => :markdown, "RDoc" => :rdoc }, @web.markup) %> + <%= html_options({ "Textile" => :textile, "Markdown via RedCloth (experimental)" => :red_markdown, "Markdown via BlueCloth" => :blue_markdown, "RDoc" => :rdoc }, @web.markup) %> </select> &nbsp;&nbsp; Color: @@ -54,15 +54,17 @@ <textarea id="additionalStyle" style="display: none; margin-top: 10px; margin-bottom: 5px; width: 560px; height: 200px" name="additional_style"><%= @web.additional_style %></textarea> </div> <h2 style="margin-bottom: 3px">Password protection for this web (<%= @web.name %>)</h2> <div class="help"> - This is the password that visitors need to view and edit this web. Setting the password to nothing will remove the password protection. + This is the password that visitors need to login to view and edit this web. Setting the password to nothing will remove the password protection. </div> <div class="inputBox"> Password: <input type="password" id="password" name="password" value="<%= @web.password %>"> &nbsp;&nbsp; - Verify: <input type="password" id="password_check" value="<%= @web.password %>" name="password_check"> + Verify: <input type="password" id="password_check" value="<%= @web.password %>" name="password_check"><br /> + <input type="radio" id="check_pass_on_edit" name="check_pass_on_edit" value='each_edit' <%= 'checked' if @web.check_pass_on_edit %>>Require password for each edit + <input type="radio" id="check_pass_on_edit" name="check_pass_on_edit" value='login_only' <%= 'checked' if @web.check_pass_on_edit %>>Require password once on logon </div> <h2 style="margin-bottom: 3px">Publish read-only version of this web (<%= @web.name %>)</h2> <div class="help"> You can turn on a read-only version of this web that's accessible even when the regular web is password protected. @@ -70,42 +72,87 @@ </div> <div class="inputBox"> <input type="checkbox" name="published"<%= " CHECKED" if @web.published %>> Publish this web </div> - <h2 style="margin-bottom: 3px">Customise this PIM (<%= @web.name %>)</h2> + <h2 style="margin-bottom: 3px">Customise this PIM</h2> <div class="help"> - Here are a few setting you can use to tweak the appearance of your Pimki. + Here are a few setting you can use to tweak the appearance and behaviour of your Pimki. </div> <div class="inputBox"> + <h4>Interface Options</h4> + <input type="checkbox" name="enable_dclick_edit" <%= "checked" if @web.enable_dclick_edit %>> Edit page on double click. + + <h4>Mind Map</h4> + <i>Size</i>:<br /> Limit the size of the Mind Map image. Format is "width,height" in inches. Leave blank for no size limit.<br /> <input type="text" name="mind_map_size" id="mind_map_size" value="<%= web.mind_map_size %>"> + <table> + <tr style="font-style:italic;"> + <td>Graph Type</td> + <td style="width:200px">Layout Type</td> + <td style="width:500px">Content Options</td> + <td>Categories</td> + </tr> + <tr> + <td style="vertical-align:top;" width="30%"> + <input type="radio" name="graph_type" value="normal" <%= 'checked' if @graph_type == 'normal' %>>Draw Normal Graph<br> + <input type="radio" name="graph_type" value="author" <%= 'checked' if @graph_type == 'author' %>>Draw Authors Graph<br> + <input type="radio" name="graph_type" value="category" <%= 'checked' if @graph_type == 'category' %>>Draw Category Graph<br> + </td> + <td width="100" style="vertical-align:top;" > + <input type="radio" name="draw_type" value="neato" <% if @prog == 'neato' %> checked <% end %>>Neato<br> + <input type="radio" name="draw_type" value="dot" <% if @prog == 'dot' %> checked <% end %>>Dot</br> + <input type="radio" name="draw_type" value="circo" <% if @prog == 'circo' %> checked <% end %>>Circo</br> + <input type="radio" name="draw_type" value="twopi" <% if @prog == 'twopi' %> checked <% end %>>Twopi</br> + </td> + <td style="vertical-align:top;width:400px;"> + <input type="checkbox" id="show_authors" name="show_authors" <%= 'checked' if @show_authors %>>Show author pages<br> + <input type="checkbox" id="missing" name="missing" <%= 'checked' if @missing %>>Show missing pages<br> + <input type="checkbox" id="show_leaves" name="show_leaves" <%= 'checked' if @show_leaves %>>Show leaf pages<br> + </td> + <td> + <select id="selected_categs" name="selected_categs" size="4" style="width:120px;" multiple> + <option value="all" <%= 'selected' if @selected_categories.empty? %>>&lt;all categories&gt;</option> + <option value="none" <%= 'selected' if @selected_categories.include? 'none' %>>&lt;no categories&gt;</option> + <% for category in @categories %> + <option value="<%= category %>" <%= 'selected' if @selected_categories.include? category %>><%= category %></option> + <% end %> + </select> + </td> + </tr> + </table> + <!-- <br /><br /> - + <h4>Bliki Options</h4> + + <br /><br /> + <h4>Content & Symbols mapping</h4> + Extra special symbols. The format of the map is: "code=text" on separate lines. This will map an element of <i>&lt;:code&gt;</i> to <i>text</i>, e.g. &lt;:cbx&gt; is mapped to &lt;input type="checkbox" disabled /&gt;<br /> <textarea name="symbols_map" id="symbols_map" style="width: 100%; height: 100px"></textarea> <br /><br /> Extra special links. The format of the map is: "link_name=link_format" on separate lines. This will map an element of <i>[link_name[link_text]]</i> to your specified format. e.g. to use google's redirection enter: <pre>google=http://www.google.com/url?sa=D&amp;q=#{link_text}</pre> and use as: <pre>[[!goggle http://pimki.rubyforge.org/]]</pre> to map to: <pre>http://www.google.com/url?sa=D&amp;q=http://pimki.rubyforge.org/</pre><br /> <textarea name="links_map" id="links_map" style="width: 100%; height: 100px"></textarea> --> -</div> - -<p align="right"> - <small> - Enter system password - <input type="password" id="system_password" name="system_password"> - and - <input type="submit" value="Update Web"> - <br/><br/> - ...or forget changes and <a href="/new_web/">create a new web</a> - </small> -</p> + </div> + + <p align="right"> + <small> + Enter system password + <input type="password" id="system_password" name="system_password"> + and + <input type="submit" value="Update Web"> + <br/><br/> + ...or forget changes and <a href="/new_web/">create a new web</a> + </small> + </p> </form> <br/> <h1>Other administrative tasks</h1> \ No newline at end of file