5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 06:31:44 +00:00

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]
.form-group
= submit_tag t('posts.save'), class: 'btn btn-success submit-post'
.form-group
= label_tag 'post_dir', t('posts.dir')
= select_tag 'post[dir]',
options_for_select([[t('posts.ltr'), 'ltr'], [t('posts.rtl'), 'rtl']], direction),
{ class: 'form-control' }
%small.text-muted.form-text= t('posts.dir_help')
- if @post.has_field? :dir
.form-group
= label_tag 'post_dir', t('posts.dir')
= select_tag 'post[dir]',
options_for_select([[t('posts.ltr'), 'ltr'], [t('posts.rtl'), 'rtl']], direction),
{ class: 'form-control' }
%small.text-muted.form-text= t('posts.dir_help')
.form-group
= label_tag 'post_title', t('posts.title')
= text_field 'post', 'title', value: @post.title, class: field_class, required: true