mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-27 02:16:20 +08:00
afe2a19c88
* Add webhooks managment [SCI-5767] * Markup fixes [SCI-5676]
17 lines
717 B
Plaintext
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 %>
|