Sha256: f2784670d30dbf9d42ce44ca6015b1a994af16ee433c015b94ccec970863fd89
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
#telegram_chatbot.modal-content = simple_form_for @telegram_bot, url: '/telegram_chatbot/bot/upsert', method: :put, class: 'setting' do |f| .modal-header .d-flex.align-items-center %h5#exampleModalLabel.modal-title = t('program.telegram_bot') = link_to t('telegram_bot.need_help'), help_telegram_bots_path, class: 'btn btn-link' .modal-body .d-flex .flex-grow-1 = form_check_toggle({name: "telegram_bot[enabled]", checked: f.object.enabled, label: t('program.telegram_notification')}).html_safe %div - if @telegram_bot.present? && @telegram_bot.enabled? && @telegram_bot.actived? %i.far.fa-check-circle.text-success{'data-toggle'=> 'tooltip', title: t('telegram_bot.valid_bot')} - else %i.far.fa-times-circle.text-danger{'data-toggle'=> 'tooltip', title: t('telegram_bot.invalid_bot')} .tokens = f.input :username, label: t("telegram_bot.username") = f.input :token, label: t("telegram_bot.token") .modal-footer = link_to t("shared.cancel"), main_app.root_path, class: 'btn btn-secondary' = f.submit t("shared.save"), class: 'btn btn-primary'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telegram_chatbot-0.1.3 | app/views/telegram_chatbot/telegram_bots/show.haml |
telegram_chatbot-0.1.1 | app/views/telegram_chatbot/telegram_bots/show.haml |