Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Page title="Add">
- <div id="left">
- <h2>Add new #{@obj.class.name.humanize}</h2>
- <?r
- flash[:VERROR].errors.each do |sym,msg|
- @obj.annotation sym => {:control_style => 'border:1px solid red;'}
- end if flash[:VERROR]
- ?>
- #{form(:object => @obj, :action => '/add/' + @obj.class.name.methodize + (@parent_oid ? '/' + [@parent_symbol, @parent_oid].join('/') : ''), :method => 'post') do |f|
- f.attributes
- if @obj.respond_to?(:tag!)
- f.p :id => 'form_tags' do
- f.label "Nitro Version / Tags:", :for => 'tags'
- f.input(:type => 'text', :name => 'tags', :id => 'tags_ctl', :value => (@obj.tags.join(' ') if @obj.tags), :tabindex => '7', :style => Nitro::TextControl.style)
- end
- end
- f.br
- f.submit 'Submit'
- end
- }
- </div>
- <render href="/help" />
- </Page>
Add Comment
Please, Sign In to add comment