merge new feature #15

Merged
chiu merged 6 commits from 123/seminar:master into master 2023-09-27 16:22:22 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit d4aba5c2cb - Show all commits

View File

@ -182,6 +182,19 @@ module Admin::SeminarsFieldHelper
end
end
def render_file_field
a = control_group_wrapper_for_sm do |key,value|
add_more_blank = can_add_more ? "[]" : ""
key_field = can_muti_lang_input? ? "[#{key}]" : ""
field_name = [get_field_name_base,add_more_blank,key_field].join
file_required =@require ? 'required="required"' : ''
"<div class=\"file-selector\"><label class=\"ui-button\">
<input style=\"position: absolute;width:0.1em;opacity: 0;padding: 0;border: 0;opacity: 0;left: 50%;top: 0;\" class=\"upload\" name=\"#{field_name}\" #{file_required} type=\"file\" />
<i class=\"fa fa-file\"></i> #{I18n.t('file.upload')}
</label><div class=\"filename\"></div></div>#{value}".html_safe
end
end
def date_is_range?
is_range = "false"
data = get_data