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]
|
= 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
|
||||||
|
|
Loading…
Reference in a new issue