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

- old
+ new

@@ -1,8 +1,10 @@ <% @title = "Edit Web" %> <%= sub_template "top" %> +<%= "<p style='font-size: 15px; font-variant: italic; color: red;'>#{@message}</span>" if @message %> + <form action="../update_web" id="setup" method="post" onSubmit="cleanAddress(); return validateSetup()"> <h2 style="margin-bottom: 3px">Name and address</h2> <div class="help"> The name of the web is included in the title on all pages. The address is the base path that all pages within the web live beneath. Ex: the address "rails" gives URLs like <i>/rails/show/HomePage</i>. @@ -52,10 +54,19 @@ </small> <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">Persistence Options (all webs)</h2> + <div class="help"> + You can set how often to take snapshots of the web data. (All incremental changes are saved as command_logs; snapshots supercede those with the full data). Recommended values are 1-2 hours if you turn the web on and off often, or 24-48 hours if this is a long running service.<br /> + Snapshots will not be taken if there are no incremental changes (in the form of command_logs). You can always force a snapshot in the administrative tasks below. + </div> + <div class="inputBox"> + <input align='right' type="text" name="snapshots_interval" value='<%= @snapshot_interval %>' /> hour(s). + </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 login to view and edit this web. Setting the password to nothing will remove the password protection. </div> <div class="inputBox"> @@ -146,30 +157,32 @@ <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> +<h2>Other administrative tasks</h2> +<form action="../administrate" id="administrate" method="post"> + <p style="font-size: 10px;"> + Clean up by entering system password + <input type="password" id="system_password" name="system_password"> + and... + </p> + <p align='right'> + <input type="submit" name='action' value="Delete Orphan Pages"><br/> + <input type="submit" name='action' value="Clear Render Cache"><br/> + <input type="submit" name='action' value="Force Data Snapshot"><br/> + <input type="submit" name='action' value="Clean Storage"><br/> + </p> +</form> -<form action="../remove_orphaned_pages" id="remove_orphaned_pages" method="post"> +<p style='font-size: 10px;'>...or forget all your changes and <a href="/new_web/">create a new web</a>.</p> -<p align="right"> - <small> - Clean up by entering system password - <input type="password" id="system_password" name="system_password"> - and - <input type="submit" value="Delete Orphan Pages"> - </small> -</p> - + <script> function proposeAddress() { document.getElementById('address').value = document.getElementById('name').value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(); } \ No newline at end of file