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)) %> <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