Sha256: b1196cd24621f2d1c15ef454ce077ac9262d35a2e9c6d755fd52d24b8155c706

Contents?: true

Size: 1.37 KB

Versions: 14

Compression:

Stored size: 1.37 KB

Contents

<%%= simple_form_for(@<%= name %>) do |f| %>
  <%%= f.error_notification %>

  <%%= f.input :email, autofocus: true %>
  <%%= f.input :name %>
  <%%= f.input :phone %>
  <%%= f.input :comment %>
<%- if options.picture? -%>
  <%%= f.input :picture %>
  <%%= f.input :picture_cache, as: :hidden %>
  <%%- if @<%= name %>.picture? -%>
    <div class="form-group">
      <div class="col-sm-offset-3 col-sm-9">
        <%%= image_tag(@<%= name %>.picture_url(:thumb)) %>
        &nbsp;&nbsp;&nbsp;
        <label for="<%= name %>_remove_picture">
          <%%= f.check_box :remove_picture %>
          <%%= t('headers.destroy', name: t('activerecord.attributes.<%= name %>.picture')) %>
        </label>
      </div>
    </div>
  <%%- end -%>
<%- end -%>
  <%%= f.input :theme %>
  <%%= f.input :active %>
  <%%= f.input :password %>
  <%%= f.input :password_confirmation %>
  <%%- if current_<%= name %>.sysadm and @<%= name %> != current_<%= name %> -%>
    <%%= f.input :sysadm %>
  <%%- end -%>

  <%%= f.button :submit, class: 'btn btn-primary' %>
  <%%- if @<%= name %>.new_record? -%>
    <%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-default' %>
  <%%- else -%>
    <%%= link_to t('actions.back.show'), @<%= name %>, class: 'btn btn-default' %>
    <%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-default' %>
  <%%- end -%>
<%% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bootswatch_rails-3.3.0.4 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.3 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.2 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.43 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.42 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.41 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.40 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.39 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.38 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.37 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.36 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.35 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.2.0.34 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb