Last active
August 29, 2015 14:10
-
-
Save jeffdean-galvanize/d0840759460d0e1c5531 to your computer and use it in GitHub Desktop.
Bootstrap components for gCamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form_for(@project, html: {class: "form-horizontal"} do |f| %> | |
| <div class="form-group"> | |
| <%= f.label :description, class: "col-sm-2 control-label" %> | |
| <div class="col-sm-4"> | |
| <%= f.text_field :description, class: "form-control" %> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <div class="col-sm-offset-2 col-sm-10"> <br> | |
| <%= f.submit name: button_name, class: "btn btn-primary"%> | |
| </div> | |
| </div> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="page-header"> | |
| <div class="pull-right"> | |
| <%= link_to "This will be on the right", some_path %> | |
| <%= link_to "So will this", some_other_path %> | |
| </div> | |
| <h1>Some page title</h1> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ul class="nav navbar-nav navbar-right"> | |
| <% if current_user %> | |
| <li><%= link_to "Sign Out", signout_path %></li> | |
| <% else %> | |
| <li><%= link_to "Sign In", signin_path %></li> | |
| <% end %> | |
| </ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment