Skip to content

Instantly share code, notes, and snippets.

@sherpc
Created February 22, 2012 22:06
Show Gist options
  • Save sherpc/1887749 to your computer and use it in GitHub Desktop.
Save sherpc/1887749 to your computer and use it in GitHub Desktop.
ololol
= simple_form_for(@admin_client) do |f|
= f.error_notification
.inputs
= f.input :code_name, :label => 'Кодовое имя'
#pic_icon
= image_tag @admin_client.logo.url
= f.input :logo, :label => 'Иконка'
= f.input :public, :label => 'Публичное?'
#lang_panel
#ru class='lang_label_cl' Русский
#en class='lang_label_cl' Английский
.label_link_name Имя
= f.input :title_ru, :label => false, wrapper_html: {class: 'left_wrap_input'}
= f.input :title_en, :label => false
.label_link_name Ссылка на сайт
= f.input :link_ru, :label => false, wrapper_html: {class: 'left_wrap_input'}
= f.input :link_en, :label => false
.actions
= f.button :submit, :value => 'Сохранить'
#or или
= link_to 'Отмена', admin_clients_path, id: 'cancel_link'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment