diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-20 03:37:04 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-20 04:39:27 -0500 |
commit | 69473c4fbec7775cae2badfeb16990aa0e9e85a4 (patch) | |
tree | 9929bde90cc38cf8ab3398faf29fd2c865f5f26c /app/views/custom_emojis/new.html.haml | |
parent | d95c3cb550bbbc44c22bce5ef758f0c2d502bbeb (diff) |
[Feature] Community-managed custom emoji
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 |