Sha256: e0690466c789538736d88531b2ee5b5271c7eac7be4e046ff3225373b67316f9
Contents?: true
Size: 1.48 KB
Versions: 26
Compression:
Stored size: 1.48 KB
Contents
%h1= model.new_record? ? t('new_javascript') : t('edit_javascript') - form_for [:admin, model], :url => (model.new_record? ? admin_scripts_url : admin_script_url(model)) do |f| %p.title = label :sheet_page, :slug, 'Slug' = f.text_field :slug, :class => 'textbox', :maxlength => 255, :id => 'sheet_page_slug' %span.hint= %{#{t('path')}: #{@root.url}<span id="this_slug">#{model.slug}</span>} - f.fields_for :parts do |p| %p.content = p.label :content, 'Body' = p.hidden_field :name, :value => 'body' if model.new_record? = p.text_area :content, :class => 'textarea large', :style => 'width: 100%' %p - if SheetsExtension.javascript_filters.blank? = p.hidden_field :filter_id, :value => '' - else = p.label :filter_id, t('filter'), :for => 'sheet_filter_id' = p.select :filter_id, javascript_filter_options_for_select(p.object.filter_id), {}, :id => 'sheet_filter_id' %span.reference_links = t('reference') - unless SheetsExtension.javascript_filters.blank? %span{:id => "filter_reference_link_body"} = link_to_function t('filter'), "loadFilterReference();" %span{:id => "tag_reference_link_body"} = link_to_function t('available_tags'), "loadTagReference('body');" %p.buttons{:style=>"clear: left"} = save_model_button(model) = save_model_and_continue_editing_button(model) = t('or') = link_to t('cancel'), admin_scripts_url = render 'admin/sheets/edit_scripts'
Version data entries
26 entries across 18 versions & 2 rubygems