client/templates/nodeeditor.html
changeset 459 98cae534083d
parent 458 423bdf56d103
child 468 364c367df7fc
--- a/client/templates/nodeeditor.html	Tue Jun 02 00:39:47 2015 +0200
+++ b/client/templates/nodeeditor.html	Wed Jun 03 13:16:46 2015 +0200
@@ -1,3 +1,4 @@
+<% //TODO: change class to id %>
 <h2>
     <span class="Rk-CloseX">&times;</span><%-renkan.translate("Edit Node")%></span>
 </h2>
@@ -19,12 +20,13 @@
 <% } %> <% if (options.show_node_editor_size) { %>
     <p>
         <span class="Rk-Editor-Label"><%-renkan.translate("Size:")%></span>
-        <a href="#" class="Rk-Edit-Size-Down">-</a>
-        <span class="Rk-Edit-Size-Value"><%-node.size%></span>
-        <a href="#" class="Rk-Edit-Size-Up">+</a>
+        <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Size-Down">-</a>
+        <span class="Rk-Edit-Size-Disp" id="Rk-Edit-Size-Value"><%-node.size%></span>
+        <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Size-Up">+</a>
     </p>
 <% } %> <% if (options.show_node_editor_style) { %>
     <div class="Rk-Editor-p">
+      <% if (options.show_node_editor_style_color) { %>
       <div id="Rk-Editor-p-color">
         <span class="Rk-Editor-Label">
         <%-renkan.translate("Node color:")%></span>
@@ -36,10 +38,21 @@
             <span class="Rk-Edit-ColorPicker-Text"><%- renkan.translate("Choose color") %></span>
         </div>
       </div>
+      <% } %>
+      <% if (options.show_node_editor_style_dash) { %>
       <div id="Rk-Editor-p-dash">
         <span class="Rk-Editor-Label"><%-renkan.translate("Dash:")%></span>
         <input type="checkbox" name="Rk-Edit-Dash" class="Rk-Edit-Dash" <%- node.dash %> />
       </div>
+      <% } %>
+      <% if (options.show_node_editor_style_thickness) { %>
+      <div id="Rk-Editor-p-thickness">
+          <span class="Rk-Editor-Label"><%-renkan.translate("Thickness:")%></span>
+          <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Thickness-Down">-</a>
+          <span class="Rk-Edit-Size-Disp" id="Rk-Edit-Thickness-Value"><%-node.thickness%></span>
+          <a href="#" class="Rk-Edit-Size-Btn" id="Rk-Edit-Thickness-Up">+</a>
+      </div>
+      <% } %>
     </div>
 <% } %> <% if (options.show_node_editor_image) { %>
     <div class="Rk-Edit-ImgWrap">