Commits

Kenneth Love committed f30088d

key type choice

Comments (0)

Files changed (3)

   margin:20px 0;
   width:50%;
 }
+  #key h2 {
+    font-weight:normal;
+  }
+    #key h2 b { font-weight:bold; }
 
   textarea[name=value] {
     border:1px solid rgba(30,30,30,0.5);

static/js/redbeard.js

             window.location.hash = '';
         });
     });
+	$("#add_key").live('click', function(e) {
+		e.stopPropagation();
+		e.preventDefault();
+		var link = $(this).attr("href");
+		$.confirm({
+			'title': 'Add new key',
+			'message': 'Choose the new key type',
+			'buttons': {
+				'String': {
+					'action': function() {
+					}
+				},
+				'List': {
+					'action': function() {
+                    }
+				},
+				'Hash': {
+					'action': function() {
+					}
+				},
+				'Set': {
+					'action': function() {
+					}
+				},
+				'Sorted Set': {
+					'action': function() {
+					}
+				}
+			}
+		});
+	});
 });
-<article>
+<article id="key">
 	<header>
-		<h2>{{ rtype }}</h2>
+		<h2>{{ rtype }}: <b>{{ key }}</b></h2>
 		{% if ttl %}
 		<h3>Key expires in: {{ ttl }} seconds</h3>
 		{% endif %}