* Upgrade Stimulus to 3.0 * Remove unused variable * Bump postcss from 8.3.8 to 8.3.9 (#14956) Bumps [postcss](https://github.com/postcss/postcss) from 8.3.8 to 8.3.9. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.3.8...8.3.9) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
45 lines
1.9 KiB
Text
45 lines
1.9 KiB
Text
<div class="grid l:grid-cols-2">
|
|
<div class="p-2">
|
|
<div class="form-group">
|
|
<%= label_tag :organization_id, "Organization ID:" %>
|
|
<%= text_field_tag :organization_id, @display_ad.organization_id, class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= label_tag :body_markdown, "Body Markdown:" %>
|
|
<%= text_area_tag :body_markdown, @display_ad.body_markdown, size: "100x10", class: "form-control" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= label_tag :placement_area, "Placement Area:" %>
|
|
<%= select_tag :placement_area, options_for_select(display_ads_placement_area_options_array, selected: @display_ad.placement_area), include_blank: true %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= label_tag :published, "Published:" %>
|
|
<%= select_tag :published, options_for_select([false, true], selected: @display_ad.published) %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= label_tag :approved, "Approved:" %>
|
|
<%= select_tag :approved, options_for_select([false, true], selected: @display_ad.approved) %>
|
|
</div>
|
|
</div>
|
|
<div class="p-2">
|
|
<div class="crayons-card crayons-card--secondary p-4 crayons-sponsorship-widget">
|
|
<% if @display_ad.persisted? %>
|
|
<%= @display_ad.processed_html.html_safe %>
|
|
<% else %>
|
|
<p>
|
|
Display ads will show up in the designated placement area <strong>once published and approved</strong>. You can safely preview them here before publishing.
|
|
</p>
|
|
<p class="mt-3">
|
|
Multiple ads that share the same placement area will be swapped every few minutes. <strong>The units with the most engagement will show up the most often</strong>.
|
|
</p>
|
|
<p class="mt-3">
|
|
Organization ID is optional. Use it if you want to attribute an ad to a specific organization.
|
|
</p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|