Permalink
Browse files

Style tweaks

  • Loading branch information...
1 parent c6b21bd commit 066c7e543f8a1956b89aed94d14573747e6e4412 @henrypoydar committed Aug 4, 2009
@@ -1,10 +1,10 @@
-<p><a href="#/manage/new">Create a new sketch</a></p>
+<p><b><a href="#/manage/new">Create a new sketch</a></b></p>
<% if (list.length > 0) { %>
<p>Select a sketch to edit:</p>
<ul class="sketches">
<% for ( var i = 0; i < list.length; i++ ) { %>
- <li><a href="#/manage/edit/<%= i %>"><%= list[i].name %></a></li>
+ <li><a href="#/manage/edit/<%= list[i].value._id %>"><%= list[i].value.name %></a></li>
<% } %>
</ul>
<% } %>
@@ -6,12 +6,12 @@
<p>
<label for="sketch_name">Sketch name:</label>
- <input type="text" name="sketch_name" value="" id="sketch_name" />
+ <input type="text" name="sketch_name" value="" id="sketch_name" class="title" />
</p>
<p>
<label for="sketch_code">Sketch code:</label>
- <textarea class="source" name="sketch_code" id="sketch_code">
+ <textarea class="" name="sketch_code" id="sketch_code">
int cv_width = 600;\n
int cv_height = 480;\n
\n
@@ -25,7 +25,7 @@
<p>
<input type="button" name="preview" value="Preview" id="preview_sketch" class="preview" />
<input type="submit" name="add" value="Add" id="add_sketch" />
- <a href="#/manage">Cancel</a></small>
+ <small><a href="#/manage">Cancel</a></small>
</p>
</form>
@@ -37,7 +37,7 @@
include_docs: true,
success: function(json) {
console.log(json);
- ctx.partial('views/manage/index.html', {list: json.rows.reverse()});
+ ctx.partial('views/manage/index.html', {list: json.rows});
}
});
});
@@ -60,7 +60,7 @@
}, {
success: function(json) {
flash = {
- message: "Stored sketch '" + json.name + "'",
+ message: "Stored sketch '" + sketch_name + "'",
css_class: "success"
};
ctx.redirect('#/manage');
View
@@ -5,4 +5,5 @@
+blueprint
+blueprint-liquid-grid
++blueprint-form
View
@@ -11,13 +11,14 @@ html, body
body
:background-color #f1f1f1
:font-size 100%
- :font-family Whitney,"Myriad Pro", MyriadPro, Helvetica, "Helvetica Neue", Arial, sans-serif
+ //:font-family Whitney,"Myriad Pro", MyriadPro, Helvetica, "Helvetica Neue", Arial, sans-serif
:text-transform none
&.uppercase
:text-transform uppercase
h2
:font-size 110%
+ :font-weight bold
a
:color rgb(50, 116, 209) !important
@@ -29,11 +30,19 @@ a
b
+loud
+small
+ :font-size 80%
+
label
:display block
:font-size 80%
:color #666
- :text-transform uppercase
+
+input[type=text]
+ :font-family Arial, helvetica, sans-serif
+
+input[type=text], textarea
+ :margin-top 0.1em
.container
:min-height 100%
@@ -156,8 +165,7 @@ form.processing
:width 600px
:height 300px
+processing-code
- &.source
- :display block
+
input#sketch_name
:width 600px
View
@@ -1,5 +1,5 @@
function(doc) {
if (doc.type == "sketch") {
- emit(doc.created_at, doc);
+ emit(doc.name, doc);
}
};

0 comments on commit 066c7e5

Please sign in to comment.