Sha256: 6b6fbb9e5398788a3432ab2782567d0816baa1b864c2dcef9b4ace1786d3b99d

Contents?: true

Size: 1.41 KB

Versions: 22

Compression:

Stored size: 1.41 KB

Contents

= render_region :form_top

.form-area
  - render_region :form do |formpart|
    - formpart.edit_subject do
      %p.title
        = form.label :subject
        = form.text_field :subject, :class => 'textbox', :maxlength => 255

    - formpart.edit_body do
      %div.body
        %p
          %span.filter
            = form.label :filter_id
            = form.select :filter_id, TextFilter.descendants.map { |tf| tf.filter_name }.sort, :include_blank => true
          = form.label :body
          = form.text_area :body, :class => 'textarea', :style => 'width: 100%'

    #message_roles.set
      - formpart.edit_function do
        - if admin?
          %p
            = form.label :function_id
            = form.select :function_id, MessageFunction.find_all.map { |mf| [t("message_functions.#{mf.name}"), mf.name] }, :include_blank => true
        - elsif @message.new_record?
          - if @message.function
            = f.hidden_field :function_id

      - formpart.edit_groups do
        = render :partial => "admin/groups/edit_access", :locals => {:groupee => @message}

- render_region :form_bottom do |form_bottom|
  - form_bottom.edit_timestamp do
    = updated_stamp @message
  - form_bottom.edit_buttons do
    %p.buttons
      = save_model_button(@message)
      = save_model_and_continue_editing_button(@message)
      = t('or')
      = link_to t("cancel"), @message.new_record? ? admin_messages_url : admin_message_url(@message)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.38 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.37 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.36 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.35 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.33 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.32 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.31 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.30 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.29 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.28 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.27 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.26 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.25 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.24 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.23 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.20 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.19 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.18 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.17 app/views/admin/messages/_form.html.haml
radiant-reader-extension-3.0.16 app/views/admin/messages/_form.html.haml