ocultar la direccion del texto tambien

This commit is contained in:
f 2018-07-24 15:43:30 -03:00
parent ac27a6f905
commit f6da78738d
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -19,12 +19,13 @@
= hidden_field_tag 'template', params[:template] = hidden_field_tag 'template', params[:template]
.form-group .form-group
= submit_tag t('posts.save'), class: 'btn btn-success submit-post' = submit_tag t('posts.save'), class: 'btn btn-success submit-post'
.form-group - if @post.has_field? :dir
= label_tag 'post_dir', t('posts.dir') .form-group
= select_tag 'post[dir]', = label_tag 'post_dir', t('posts.dir')
options_for_select([[t('posts.ltr'), 'ltr'], [t('posts.rtl'), 'rtl']], direction), = select_tag 'post[dir]',
{ class: 'form-control' } options_for_select([[t('posts.ltr'), 'ltr'], [t('posts.rtl'), 'rtl']], direction),
%small.text-muted.form-text= t('posts.dir_help') { class: 'form-control' }
%small.text-muted.form-text= t('posts.dir_help')
.form-group .form-group
= label_tag 'post_title', t('posts.title') = label_tag 'post_title', t('posts.title')
= text_field 'post', 'title', value: @post.title, class: field_class, required: true = text_field 'post', 'title', value: @post.title, class: field_class, required: true