Sha256: 8abdd977d76b792f10c848b49029e1d5858308f28ea8243a275bf90ac1939490
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
= form_for([:admin, @audit]) do |f| -if @audit.errors.any? #error_explanation %h2= "#{pluralize(@audit.errors.count, "error")} prohibited this audit from being saved:" %ul - @audit.errors.full_messages.each do |msg| .alert.alert-danger %li= msg %table.table.table-striped.table-hover %tr %td / #TODO Place the button to better place = f.submit t('the_audit.save'), class: 'btn btn-info' %td %tr %td =f.label :user_id %td =f.label "#{@audit.user_id.nil? ? 'Guest' : @audit.user_id}", class: 'form-control' %tr %td =f.label :obj_id %td =f.text_field :obj_id, class: 'form-control' %tr %td =f.label :obj_type %td =f.text_field :obj_type, class: 'form-control' %tr %td =f.label :controller_name %td =f.text_field :controller_name, class: 'form-control' %tr %td =f.label :action_name %td =f.text_field :action_name, class: 'form-control' %tr %td =f.label :ip, 'IP' %td =f.text_field :ip, class: 'form-control' %tr %td =f.label :remote_ip, 'Remote IP' %td =f.text_field :remote_ip, class: 'form-control' %tr %td =f.label :fullpath %td =f.text_field :fullpath, class: 'form-control' %tr %td =f.label :referer %td =f.text_field :referer, class: 'form-control' %tr %td =f.label :user_agent %td =f.text_field :user_agent, class: 'form-control' %tr %td =f.label :remote_addr %td =f.text_field :remote_addr, class: 'form-control' %tr %td =f.label :remote_host %td =f.text_field :remote_host, class: 'form-control' %tr %td =f.label :data %td =f.text_area :data, class: 'form-control'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the_audit-0.0.2 | app/views/audits/_form.html.haml |