diff options
| author | luuduong <luuduong@gmail.com> | 2013-02-22 21:55:44 -0700 |
|---|---|---|
| committer | luuduong <luuduong@gmail.com> | 2013-02-22 21:55:44 -0700 |
| commit | 4ca5ae03ab0bef3874e5141cbb0f2b11bdad547a (patch) | |
| tree | 07baf121c8536cbaf1247e4f5073c3943e727e0f /app/views/tutorials | |
| parent | 5913badbe0c0b1a6d9d6f96ef51a126c80cb130f (diff) | |
changes to labels and styles and also updated gemfile for an error I was getting
Diffstat (limited to 'app/views/tutorials')
| -rw-r--r-- | app/views/tutorials/_form.html.erb | 16 | ||||
| -rw-r--r-- | app/views/tutorials/new.html.erb | 4 |
2 files changed, 15 insertions, 5 deletions
diff --git a/app/views/tutorials/_form.html.erb b/app/views/tutorials/_form.html.erb index bc276764..7634e03c 100644 --- a/app/views/tutorials/_form.html.erb +++ b/app/views/tutorials/_form.html.erb @@ -15,12 +15,17 @@ $(function(){ <div class="control-group"> <%= f.label :url, :class => "control-label" %> <div class="controls"> - <%= f.text_field :url, :class => "input-xlarge" %> + <%= f.text_field :url, :class => "input-xxlarge", :placeholder => "Enter the full website link and click outside this box" %> </div> </div> <div class="control-group"> <label for="tags" class="control-label">Tags</label> - <input type="text" id="tags" name="tutorial_tags" value="" class="input-xxlarge" autocomplete="off" /> + <div class="controls"> + <input type="text" id="tags" name="tutorial_tags" value="" class="input-xxlarge" autocomplete="off" /> + <p class="help-block"> + Note: help people find this tutorial by adding some keyword tags + </p> + </div> </div> <div class="form-actions"> <%= f.hidden_field :heading, :class => "input-xlarge, tutorial-heading" %> @@ -28,11 +33,16 @@ $(function(){ <%= f.hidden_field :author_url, :class => "input-xlarge, tutorial-author-url" %> <%= f.hidden_field :description, :class => "input-xlarge, tutorial-description" %> <%= f.hidden_field :image_url %> - <button type="submit" class="btn btn-primary">Save changes</button> + <button type="submit" class="btn btn-primary">Save</button> <a href="<%= url_for tutorials_url %>" class="btn">Cancel</a> </div> </fieldset> <% end %> + <div class="controls"> + <p class="help-block"> + A preview will be shown below + </p> + </div> <div class="thumbnail"> <img class="embed-thumb" src="" /> <div class="caption"> diff --git a/app/views/tutorials/new.html.erb b/app/views/tutorials/new.html.erb index c826b284..f0e804d5 100644 --- a/app/views/tutorials/new.html.erb +++ b/app/views/tutorials/new.html.erb @@ -1,6 +1,6 @@ -<% provide(:title, "Share a tutorial") -%> +<% provide(:title, "Share a tutorial link") -%> <% content_for :page_header do -%> - <h1>Share a new tutorial</h1> + <h1>Share a tutorial link</h1> <% end -%> <div class="row"> <div class="span3"> |
