client/templates/nodeeditor.html
changeset 649 2b9c120dba55
parent 600 e12243191095
child 650 b2e22052e9d6
--- a/client/templates/nodeeditor.html	Thu Jan 05 19:34:53 2017 +0100
+++ b/client/templates/nodeeditor.html	Tue Jan 10 17:36:30 2017 +0100
@@ -10,7 +10,23 @@
         <input class="Rk-Edit-Title" type="text" value="<%-node.title%>" />
     <% } %>
 </p>
-<% if (options.show_node_editor_uri) { %>
+<% if (options.show_node_title_style) { %>
+    <div class="Rk-Editor-p-title-style">
+        <div class="Rk-Editor-p-title-color">
+            <span class="Rk-Editor-Label"><%-renkan.translate("Title color:")%></span>
+            <span class="Rk-Edit-Color" style="background: <%-node.title_color%>;">
+                <span class="Rk-Edit-ColorTip"></span>
+            </span>
+            <%= renkan.colorPicker('Rk-Editor-ColorPicker-Title') %>
+        </div>
+        <div class="Rk-Editor-p-title-size">
+            <span class="Rk-Editor-Label"><%-renkan.translate("Title size:")%></span>
+            <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Title-Size-Down">-</a>
+            <span class="Rk-Edit-Size-Disp" id="Rk-Edit-Title-Size-Value"><%-node.title_size.toFixed(1)%></span>
+            <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Title-Size-Up">+</a>
+        </div>
+    </div>
+<% } %> <% if (options.show_node_editor_uri) { %>
     <p>
         <label><%-renkan.translate("URI:")%></label>
         <input class="Rk-Edit-URI" type="text" value="<%-node.uri%>" />
@@ -53,7 +69,7 @@
             <span class="Rk-Edit-Color" style="background: <%-node.color%>;">
                 <span class="Rk-Edit-ColorTip"></span>
             </span>
-            <%= renkan.colorPicker %>
+            <%= renkan.colorPicker('Rk-Editor-ColorPicker-Node') %>
             <span class="Rk-Edit-ColorPicker-Text"><%- renkan.translate("Choose color") %></span>
         </div>
       </div>