Sha256: c1806c9220f8a01a209ad6ca2acee6e8b886e4a5ffaee709c55996445e9b067f

Contents?: true

Size: 1.45 KB

Versions: 18

Compression:

Stored size: 1.45 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 -%>
<%- added_fields.each do |field| -%>
    <%%= f.input :<%= field[0] %> %>
<%- 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

18 entries across 18 versions & 1 rubygems

Version Path
bootswatch_rails-3.3.7.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.7.0 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.6.2 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.6.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.5.2 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.5.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.4.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.2.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.1.2 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.1.1 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.1.0 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.11 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.10 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.9 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.8 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.7 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.6 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb
bootswatch_rails-3.3.0.5 lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb