This commit is contained in:
rulingcom 2024-12-10 23:07:54 +08:00
parent 6614479976
commit a6fe88b0f0
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<label><%= t("greeting_card.automatically_send") %></label>
</div>
<div class="controls">
<%= f.check_box :automatically_send, {class: "automatically_send_enable toggle-check", title: t("greeting_card.enable"), "data-disabled": !(f.object.automatically_send), id: "automatically_send_#{id_postfix}"} %>
<%= f.check_box :automatically_send, {:class => "automatically_send_enable toggle-check", :title => t("greeting_card.enable"), "data-disabled" => !(f.object.automatically_send), :id => "automatically_send_#{id_postfix}"} %>
<div class="auto-send-block <%= 'hide' unless f.object.automatically_send %>">
<%= f.hidden_field_tag "#{f.object_name}[auto_send_date_type]", "-1" %>
<h5><%= t('mongoid.attributes.greeting_card_record.image') %></h5>

View File

@ -185,7 +185,7 @@
<% end %>
<!-- Images Module -->
<%= render :partial=> "form_images", locals: {f: f, greeting_card_setting: greeting_card_setting, is_default: is_default} %>
<% if !is_default %>
<% if !is_default && (greeting_card_setting != @default_greeting_card_setting) %>
<!-- Auto Send Setting -->
<%= render :partial=> "auto_send_setting", locals: {f: f} %>
<% end %>