Sha256: ed44fb382bbb41eabedf8135f29444ace5d404b50b5c092d307394d3669b018a

Contents?: true

Size: 721 Bytes

Versions: 24

Compression:

Stored size: 721 Bytes

Contents

%h1 <%= class_name %>Command
%p Find me in '<%= args.first %>'.

= command_form_for(@command, :html => {:class => 'form-vertical'}) do |f|
<% if defined?(SimpleForm) -%>
  = f.error_notification
<% else -%>
  - if @command.errors.any?
    #error_explanation
      %h2= "#{pluralize(@command.errors.count, "error")} prohibited performing this action:"
      %ul
        - @command.errors.full_messages.each do |msg|
          %li= msg
<%end -%>

  .form-inputs
<% if command_attributes.any? -%>
<% command_attributes.each do |attribute| -%>
    = f.input :<%= attribute.name %><%= attribute.inject_options %>
<% end -%>
<% else -%>
    -# TODO: provide inputs for each attribute
<% end -%>

  .form-actions
    = f.submit

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
riveter-0.8.3 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.8.2 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.8.1 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.8.0 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.7.0 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.6.0 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.3.0 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.2.1 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.2.0 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.1.1 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.15 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.14 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.13 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.12 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.11 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.10 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.9 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.8 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.7 lib/generators/haml/command_controller/templates/new.html.haml
riveter-0.0.6 lib/generators/haml/command_controller/templates/new.html.haml