ocultar la direccion del texto tambien
This commit is contained in:
parent
ac27a6f905
commit
f6da78738d
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue