diff options
Diffstat (limited to 'app/views/custom_emojis/new.html.haml')
-rw-r--r-- | app/views/custom_emojis/new.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/custom_emojis/new.html.haml b/app/views/custom_emojis/new.html.haml new file mode 100644 index 000000000..fe9d8fc64 --- /dev/null +++ b/app/views/custom_emojis/new.html.haml @@ -0,0 +1,13 @@ +- content_for :page_title do + = t('.title') + += simple_form_for @custom_emoji, url: custom_emojis_path do |f| + = render 'shared/error_messages', object: @custom_emoji + + .fields-group + = f.input :shortcode, wrapper: :with_label, label: t('admin.custom_emojis.shortcode'), hint: t('admin.custom_emojis.shortcode_hint') + .fields-group + = f.input :image, wrapper: :with_label, input_html: { accept: 'image/png' }, hint: t('admin.custom_emojis.image_hint') + + .actions + = f.button :button, t('admin.custom_emojis.upload'), type: :submit |