Skip to content

Commit

Permalink
Add required label style and apply it to email
Browse files Browse the repository at this point in the history
Fixes issues#22
  • Loading branch information
abookyun committed Oct 23, 2015
1 parent 2881636 commit 889beab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/invite.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Place all the styles related to the invite controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

label.required:after {
content: "(*)";
color: red;
}
6 changes: 3 additions & 3 deletions app/views/invite/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<%= text_field_tag :first_name, '', class: "form-control", placeholder: "First Name" %><br />
<%= label_tag(:last_name, "Last Name:") %>
<%= text_field_tag :last_name, '', class: "form-control", placeholder: "Last Name" %><br />
<%= label_tag(:email, "Email Address:") %>
<%= label_tag(:email, "Email Address:", class: "required") %>
<%= email_field_tag :email, '', class: "form-control", placeholder: "Email Address" %><br />

<% if ENV["ITC_TOKEN"] %>
<% if params[:token] %>
<%= hidden_field_tag :token, '', value: params[:token] %>
Expand Down Expand Up @@ -49,4 +49,4 @@
#submit {
margin-bottom: 20px;
}
</style>
</style>

0 comments on commit 889beab

Please sign in to comment.