Sha256: 7095718f08a4eb37c84b9d243bfa2a4c9070761324babcf6507c0c9f55a9e6d4
Contents?: true
Size: 1.53 KB
Versions: 7
Compression:
Stored size: 1.53 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 %> <%- if options.language? -%> <%%= f.association :language %> <%- end -%> <%%= 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
7 entries across 7 versions & 1 rubygems