scinote-web/app/views/users/settings/webhooks/_webhook_form.html.erb
aignatov-bio afe2a19c88
Add webhooks management [SCI-5767] (#3376)
* Add webhooks managment [SCI-5767]

* Markup fixes [SCI-5676]
2021-06-09 12:53:11 +02:00

17 lines
717 B
Plaintext

<span class="form-text"><%= t("webhooks.index.webhook_trigger") %></span>
<div class="webhook-method-container">
<%= f.select :method, options_for_select(Webhook.methods.map{ |k,_v| [k.upcase, k] }, f.object.method) %>
</div>
<span class="form-text"><%= t("webhooks.index.target") %></span>
<div class="sci-input-container url-input-container form-group">
<%= f.text_field :url, class: "sci-input-field url-input", placeholder: t("webhooks.index.url_placeholder") %>
</div>
<button class="btn btn-light cancel-action">
<i class="fas fa-times"></i>
<%= t('general.cancel') %>
</button>
<%= f.button class: "btn btn-primary save-webhook" do %>
<i class="fas fa-save"></i>
<%= t('general.save') %>
<% end %>