Sha256: 5f0001a4a2be737f9a902a7abef7fe75eb7565dcb2a76bef07df5b5123f9737b
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
= f.select :category, EffectiveClassifieds.categories, required: true = f.text_field :title = f.text_field :location - if f.object.persisted? || f.object.errors.include?(:slug) - current_url = (effective_classifieds.classified_url(f.object) rescue nil) = f.text_field :slug, hint: "The slug controls this resource's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url }".html_safe - minDate = [Time.zone.now, f.object.created_at].compact.min .row .col-lg-6 - if f.object.new_record? = f.date_field :start_on, label: "Start", hint: "The posting will be displayed starting after this date.", input_js: { minDate: minDate.strftime('%F') } - else = f.date_field :start_on, label: "Start", hint: 'The posting will be displayed starting after this date.' .col-lg-6 = f.date_field :end_on, label: "Expire", hint: 'The posting will no longer be displayed after this date.' - if f.object.persisted? && !f.object.draft? = f.check_box :archived, label: 'Yes, this posting is archived. It will not be displayed.' - if defined?(EffectiveArticleEditor) = f.article_editor :body, label: 'Description', hint: 'The content of your posting. Be sure to include all relevant information!' - else = f.rich_text_area :body, label: 'Description', hint: 'The content of your posting. Be sure to include all relevant information!' = f.file_field :file, hint: 'Please attach a PDF' %h2.mt-5.mb-0 Contact Information %p %small.text-muted Contact information will be displayed on the #{classifieds_name_label} ad. = f.text_field :organization, hint: 'Organization or company name' = f.url_field :website = f.email_field :email = f.tel_field :phone
Version data entries
3 entries across 3 versions & 1 rubygems