-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .form-label to all form labels (except checkboxes (#1859)
- Loading branch information
1 parent
4a4f4fd
commit 926a3a4
Showing
22 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<% label_text ||= nil %> | ||
|
||
<div class="form-group"> | ||
<%= form.label attr, label_text %> | ||
<%= form.label attr, label_text, class: "form-label", class: "form-label" %> | ||
<%= form.text_field attr, class: "form-control form-control-lg" %> | ||
</div> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<div id="publication-status" class="form-group"> | ||
<%= form.label :publication_status, "Publication Status" %><br> | ||
<%= form.label :publication_status, "Publication Status", class: "form-label" %><br> | ||
|
||
<div class="toggle"> | ||
<% Publishable.publication_statuses_for(user: Current.user).each do |state| %> | ||
<%= form.radio_button :publication_status, state, id: "publication_status_#{state}", class: "sr-only" %> | ||
<%= form.label "publication_status_#{state}", state.capitalize, for: "publication_status_#{state}" %> | ||
<%= form.label "publication_status_#{state}", state.capitalize, for: "publication_status_#{state}", class: "form-label" %> | ||
<% end %> | ||
</div><!-- .toggle --> | ||
</div><!-- #publication-status --> |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div id="featured_status" class="form-group toggle sr-only"> | ||
<%= form.label :featured_status, "Feature this on homepage?" %><br> | ||
<%= form.label :featured_status, "Feature this on homepage?", class: "form-label" %><br> | ||
|
||
<%= form.radio_button :featured_status, false, class: "sr-only" %> | ||
<%= form.label :featured_status_false, 'Not featured', for: "#{klass}_featured_status_false" %> | ||
<%= form.label :featured_status_false, 'Not featured', for: "#{klass}_featured_status_false", class: "form-label" %> | ||
<%= form.radio_button :featured_status, true, class: "sr-only" %> | ||
<%= form.label :featured_status_true, 'Featured', for: "#{klass}_featured_status_true" %> | ||
<%= form.label :featured_status_true, 'Featured', for: "#{klass}_featured_status_true", class: "form-label" %> | ||
</div><!-- #featured_status --> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="form-group mt-3"> | ||
<%= form.label :tags, "Tags" %> | ||
<%= form.label :tags, "Tags", class: "form-label" %> | ||
<%= text_field_tag :tags, @article.tags.map(&:name).join(", "), class: "form-control form-control-lg" %> | ||
<p class="form-text text-muted">Comma separated. For example, <em>dogs, cats, etc</em>.</p> | ||
</div> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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