Sha256: 441ef9f8b7093bfc31861ceb4821ddc9ac77ef11d27fb7a8235a6ae9934912f9
Contents?: true
Size: 1.96 KB
Versions: 6
Compression:
Stored size: 1.96 KB
Contents
= f.select :category, EffectiveClassifieds.categories, required: true, include_blank: false = f.text_field :title = f.text_field :organization, hint: 'Organization or company name' = 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: 'Optionally attach a PDF for this posting' %h2.mt-5.mb-0 Contact Information %p %small.text-muted The following contact information is not displayed to the public and is only used by staff to provide support. = f.text_field :contact_name = f.url_field :website = f.email_field :email = f.tel_field :phone
Version data entries
6 entries across 6 versions & 1 rubygems