docbrown/app/views/admin/broadcasts/_form.html.erb
Rajat Talesra 4ae1721848
Remove bootstrap library fully with some minor fixes (#18945)
* Minor fixes

* Replaced justify-content-between with justify-content

* Override all heading tags, paragraph tag

* Fixed a tag underline css

* Removed bootstrap library

* Removed duplicate crayons-select class
2023-01-16 20:07:12 +05:30

26 lines
1.2 KiB
Text

<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="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="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="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="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>