Sha256: 23dfce4659dbbda233f67d9d754fb61d563d8d707f4df91d17a47904a9f43c64
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 Bytes
Contents
<%%= simple_form_for(@<%= name %>) do |f| %> <%%= f.error_notification %> <%%= f.input :email, autofocus: true %> <%%= f.input :name %> <%%= f.input :phone %> <%%= f.input :comment %> <%%= f.input :theme %> <%%= f.input :active %> <%%- if current_<%= name %>.sysadm and @<%= name %> != current_<%= name %> -%> <%%= f.input :sysadm %> <%%- end -%> <%%= f.input :password %> <%%= f.input :password_confirmation %> <%%= 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
4 entries across 4 versions & 1 rubygems