Commits

Chris Jones committed 53adda3 Merge

Merge.

Comments (0)

Files changed (3)

File contents unchanged.

static/css/style.css

   #switch_db fieldset {
     overflow:hidden;
   }
-  #switch_db select { vertical-align:baseline; }
+  #switch_db input {
+    vertical-align:baseline;
+    width:5em;
+  }
   #switch_db label {
     color:rgb(133, 27, 31);
     font-size:18px;

templates/layout.html

 	<form action="{{ url_for('change_db') }}" method="post" id="switch_db">
 		<fieldset>
 			<label for="id_redis_db">Current Redis DB:</label>
-			<select id="id_redis_db" name="redis_db">
-				{% for number in range(0, 10) %}
-				<option value="{{ number }}" {% if number == session.redis_db %}selected{% endif %}>{{ number }}</option>
-				{% endfor %}
-			</select>
+			<input type="number" name="redis_db" id="id_redis_db" value="{{ session.redis_db }}">
 			<a href="/new" id="new_key">New Key</a>
 		</fieldset>
 	</form>