Sha256: 63f5005a2ed34590660599b9d5de2a1c94572681ee7767243b276d14349f433c

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

= form_for [:admin, @snippet], :html => {'data-onsubmit_status' => onsubmit_status(@snippet)} do |f|
  = f.hidden_field :lock_version
  = render_region :form_top, :locals => {:f => f}
  .form_area
    = render_region :form, :locals => {:f => f} do |form|
      - form.edit_title do
        %p.title
          = f.label :name, t('name')
          = f.text_field :name, :class => 'textbox activate', :maxlength => 100
      - form.edit_content do
        %p.content
          = f.label :content, t('body') 
          ~ f.text_area :content, :class => "textarea large", :style => "width: 100%"
      - form.edit_filter do
        .set
          %p
            = f.label :filter_id, t('filter')
            = f.select :filter_id, filter_options_for_select(f.object.filter_id), :id => 'snippet_filter'
            %span.reference_links
              == #{t('reference')}:
              %span{:id => "filter_reference_link"}
                = link_to_function t('filter'), "loadFilterReference();"
              %span{:id => "tag_reference_link"}
                = link_to_function t('available_tags'), "loadTagReference('Page');"
  = render_region :form_bottom, :locals => {:f => f} do |form_bottom|
    - form_bottom.edit_buttons do
      %p.buttons{:style=>"clear: left"}
        = save_model_button(@snippet)
        = save_model_and_continue_editing_button(@snippet)
        = t('or')
        = link_to t('cancel'), admin_snippets_url
    - form_bottom.edit_timestamp do
      = updated_stamp @snippet

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-rails3-0.1 app/views/admin/snippets/_form.html.haml