app/views/wiki/edit_web.rhtml in Pimki-1.2.092 vs app/views/wiki/edit_web.rhtml in Pimki-1.3.092
- old
+ new
@@ -70,10 +70,33 @@
</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>
+ <div class="help">
+ Here are a few setting you can use to tweak the appearance of your Pimki.
+ </div>
+ <div class="inputBox">
+ 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 %>">
+
+ <!--
+
+ <br /><br />
+
+ Extra special symbols. The format of the map is: "code=text" on separate lines. This will map an element of <i><:code></i> to <i>text</i>, e.g. <:cbx> is mapped to <input type="checkbox" disabled /><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&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&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
@@ -129,9 +152,15 @@
if (document.getElementById('password').value != "" &&
document.getElementById('password').value != document.getElementById('password_check').value) {
alert("The password and its verification doesn't match");
return false;
}
+
+ // if (document.getElementById('mind_map_size').value != "" &&
+ // !/^\d+,\d+$/.test(document.getElementById('mind_map_size').value)) {
+ // alert("The Mind Map size must be in the format of 'digit,digit'!");
+ // return false;
+ // }
return true;
}
</script>
\ No newline at end of file