5
lib/eventos_web/templates/group_request/edit.html.eex
Normal file
5
lib/eventos_web/templates/group_request/edit.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h2>Edit Group request</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_request_path(@conn, :update, @group_request)) %>
|
||||
|
||||
<span><%= link "Back", to: group_request_path(@conn, :index) %></span>
|
||||
17
lib/eventos_web/templates/group_request/form.html.eex
Normal file
17
lib/eventos_web/templates/group_request/form.html.eex
Normal file
@@ -0,0 +1,17 @@
|
||||
<%= form_for @changeset, @action, fn f -> %>
|
||||
<%= if @changeset.action do %>
|
||||
<div class="alert alert-danger">
|
||||
<p>Oops, something went wrong! Please check the errors below.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :state, class: "control-label" %>
|
||||
<%= number_input f, :state, class: "form-control" %>
|
||||
<%= error_tag f, :state %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
26
lib/eventos_web/templates/group_request/index.html.eex
Normal file
26
lib/eventos_web/templates/group_request/index.html.eex
Normal file
@@ -0,0 +1,26 @@
|
||||
<h2>Listing Group requests</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>State</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for group_request <- @group_request do %>
|
||||
<tr>
|
||||
<td><%= group_request.state %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: group_request_path(@conn, :show, group_request), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: group_request_path(@conn, :edit, group_request), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: group_request_path(@conn, :delete, group_request), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Group request", to: group_request_path(@conn, :new) %></span>
|
||||
5
lib/eventos_web/templates/group_request/new.html.eex
Normal file
5
lib/eventos_web/templates/group_request/new.html.eex
Normal file
@@ -0,0 +1,5 @@
|
||||
<h2>New Group request</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_request_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: group_request_path(@conn, :index) %></span>
|
||||
13
lib/eventos_web/templates/group_request/show.html.eex
Normal file
13
lib/eventos_web/templates/group_request/show.html.eex
Normal file
@@ -0,0 +1,13 @@
|
||||
<h2>Show Group request</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>State:</strong>
|
||||
<%= @group_request.state %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: group_request_path(@conn, :edit, @group_request) %></span>
|
||||
<span><%= link "Back", to: group_request_path(@conn, :index) %></span>
|
||||
Reference in New Issue
Block a user