forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove bootstrap from admin/broadcasts and use Crayons (forem#18855)
* Remove bootstrap from admin broadcast * Removed bootstrap from broadcast * Added EOF * Replaced a tag with link_to
- Loading branch information
Showing
5 changed files
with
38 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
<div class="form-group"> | ||
<%= label_tag :title, "Title:" %> | ||
<%= text_field_tag :title, @broadcast.title, class: "form-control" %> | ||
</div> | ||
<div class="flex flex-col gap-4"> | ||
<div class="crayons-field"> | ||
<%= label_tag :title, "Title", class: "crayons-field__label" %> | ||
<%= text_field_tag :title, @broadcast.title, class: "crayons-textfield" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= label_tag :processed_html, "HTML" %> | ||
<%= text_area_tag :processed_html, @broadcast.processed_html, size: "100x10", class: "form-control" %> | ||
</div> | ||
<div class="crayons-field"> | ||
<%= label_tag :processed_html, "HTML", class: "crayons-field__label" %> | ||
<%= text_area_tag :processed_html, @broadcast.processed_html, size: "100x10", class: "crayons-textfield" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= label_tag :type_of, "Type:" %> | ||
<%= select_tag :type_of, options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of) %> | ||
</div> | ||
<div class="crayons-field"> | ||
<%= label_tag :type_of, "Type", class: "crayons-field__label" %> | ||
<%= select_tag :type_of, options_for_select(%w[Welcome Announcement], selected: @broadcast.type_of), class: "crayons-select"%> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= label_tag :banner_style, "Banner Style:" %> | ||
<%= select_tag :banner_style, options_for_select(%w[default brand success warning error], selected: @broadcast.banner_style), include_blank: true %> | ||
</div> | ||
<div class="crayons-field"> | ||
<%= label_tag :banner_style, "Banner Style", class: "crayons-field__label" %> | ||
<%= select_tag :banner_style, options_for_select(%w[default brand success warning error], selected: @broadcast.banner_style), include_blank: true, class: "crayons-select"%> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= label_tag :active, "Active:" %> | ||
<%= select_tag :active, options_for_select([false, true], selected: @broadcast.active) %> | ||
<div class="crayons-field"> | ||
<%= label_tag :active, "Active", class: "crayons-field__label" %> | ||
<%= select_tag :active, options_for_select([false, true], selected: @broadcast.active), class: "crayons-select"%> | ||
</div> | ||
</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