Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<%= form_for(@payment) do |f| %>
|
||||
<% if @payment.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@payment.errors.count, "error") %> prohibited this payment from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @payment.errors.full_messages.each do |msg| %>
|
||||
<li><%= msg %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :profile %><br />
|
||||
<%= f.text_field :profile %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,6 @@
|
||||
<h1>Editing payment</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @payment %> |
|
||||
<%= link_to 'Back', payments_path %>
|
||||
@@ -0,0 +1,23 @@
|
||||
<h1>Listing payments</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Profile</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @payments.each do |payment| %>
|
||||
<tr>
|
||||
<td><%= payment.profile %></td>
|
||||
<td><%= link_to 'Show', payment %></td>
|
||||
<td><%= link_to 'Edit', edit_payment_path(payment) %></td>
|
||||
<td><%= link_to 'Destroy', payment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Payment', new_payment_path %>
|
||||
@@ -0,0 +1,5 @@
|
||||
<h1>New payment</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', payments_path %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<b>Profile:</b>
|
||||
<%= @payment.profile %>
|
||||
</p>
|
||||
|
||||
|
||||
<%= link_to 'Edit', edit_payment_path(@payment) %> |
|
||||
<%= link_to 'Back', payments_path %>
|
||||
Reference in New Issue
Block a user