Sha256: 96aa083fbe993256a0c524b026b936d0050f93c9e1b4c68717bb9164d588f7f1
Contents?: true
Size: 1.9 KB
Versions: 2
Compression:
Stored size: 1.9 KB
Contents
= form_for [forgeos_core, :admin, admin], :html => { :id => 'wrap', "data-object_name" => admin.class.model_name.singular, :multipart=>true } do |f| .backgrounds.big-header = f.select :civility, t('civility.select'), { :prompt => t(:please_select) } = f.text_field :firstname, :title => t('firstname'), :class => 'defaultValue field_name firstname' = f.text_field :lastname, :title => t('lastname'), :class => 'defaultValue field_name lastname' .interact-links = Forgeos_save_buttons forgeos_core.admin_administrators_path #content.grid_16.alpha.omega .grid_12.alpha .inner-content - admin.build_avatar unless admin.avatar = f.fields_for :avatar do |avatar| = avatar.label :uploaded_data, I18n.t('avatar').capitalize %div = image_tag(admin.avatar.public_filename(:thumb)) unless admin.avatar.new_record? = avatar.file_field :uploaded_data = f.label :email, I18n.t('email') %div = f.text_field :email = f.label :password, I18n.t('password') %div = f.password_field :password = f.label :password_confirmation, I18n.t('password_confirmation') %div = f.password_field :password_confirmation = f.label :role_id, I18n.t('role', :count => 1) %div = f.collection_select :role_id, Role.find_all_by_active(true), :id, :name, { :prompt => I18n.t('please_select')} #right-sidebar.grid_4.omega - unless admin.new_record? .step = mail_to admin.email,I18n.t('admin.contact.action'), :class => 'small-icons contact' =# link_to I18n.t('admin.duplicate.action'), [:duplicate,:admin,admin], :class => 'small-icons duplicate' = link_to I18n.t('admin.destroy.action').capitalize, [forgeos_core, :admin, admin], :confirm => I18n.t('admin.destroy.confirm').capitalize, :method => :delete, :class => 'small-icons delete'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_core-1.9.5.rc2 | app/views/admin/administrators/_form.html.haml |
forgeos_core-1.9.5.rc1 | app/views/admin/administrators/_form.html.haml |