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