Files
2021-05-12 16:35:23 +05:00

26 lines
857 B
Plaintext

<% if Webhook.where(:project_id => @project.id).first%>
<div class="box tabular">
<% Webhook.where(:project_id => @project.id).each do |webhook|%>
<%= form_tag(update_webhook_path(@project, webhook.id), :method => :put, :class => "tabular") do %>
<span>
<span><strong>URL</strong></span>
<%= text_field_tag :url, webhook.url, :size => 80 %>
<%= submit_tag l(:button_update) %>
</span>
<% end %>
<%= link_to l(:button_delete), delete_webhook_path(@project, webhook.id), :class => "icon icon-del", :method => :delete, :confirm => l(:text_are_you_sure) %>
</br>
<% end %>
</div>
<% end %>
<%= form_tag(create_webhook_path(@project), :method => :post, :class => "tabular") do %>
<div class="box tabular">
<span>
<span><strong>URL</strong></span>
<%= text_field_tag :url, '', :size => 80 %>
<%= submit_tag l(:button_add) %>
</span>
</div>
<% end %>