Change models, new migrations, fix front and make tests work
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Account</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, account_path(@conn, :update, @account)) %>
|
||||
|
||||
<span><%= link "Back", to: account_path(@conn, :index) %></span>
|
||||
@@ -1,65 +0,0 @@
|
||||
<%= 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, :username, class: "control-label" %>
|
||||
<%= text_input f, :username, class: "form-control" %>
|
||||
<%= error_tag f, :username %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :domain, class: "control-label" %>
|
||||
<%= text_input f, :domain, class: "form-control" %>
|
||||
<%= error_tag f, :domain %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :display_name, class: "control-label" %>
|
||||
<%= text_input f, :display_name, class: "form-control" %>
|
||||
<%= error_tag f, :display_name %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :description, class: "control-label" %>
|
||||
<%= text_input f, :description, class: "form-control" %>
|
||||
<%= error_tag f, :description %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :private_key, class: "control-label" %>
|
||||
<%= text_input f, :private_key, class: "form-control" %>
|
||||
<%= error_tag f, :private_key %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :public_key, class: "control-label" %>
|
||||
<%= text_input f, :public_key, class: "form-control" %>
|
||||
<%= error_tag f, :public_key %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :suspended, class: "control-label" %>
|
||||
<%= checkbox f, :suspended, class: "checkbox" %>
|
||||
<%= error_tag f, :suspended %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :uri, class: "control-label" %>
|
||||
<%= text_input f, :uri, class: "form-control" %>
|
||||
<%= error_tag f, :uri %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :url, class: "control-label" %>
|
||||
<%= text_input f, :url, class: "form-control" %>
|
||||
<%= error_tag f, :url %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,42 +0,0 @@
|
||||
<h2>Listing Accounts</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Domain</th>
|
||||
<th>Display name</th>
|
||||
<th>Description</th>
|
||||
<th>Private key</th>
|
||||
<th>Public key</th>
|
||||
<th>Suspended</th>
|
||||
<th>Uri</th>
|
||||
<th>Url</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for account <- @accounts do %>
|
||||
<tr>
|
||||
<td><%= account.username %></td>
|
||||
<td><%= account.domain %></td>
|
||||
<td><%= account.display_name %></td>
|
||||
<td><%= account.description %></td>
|
||||
<td><%= account.private_key %></td>
|
||||
<td><%= account.public_key %></td>
|
||||
<td><%= account.suspended %></td>
|
||||
<td><%= account.uri %></td>
|
||||
<td><%= account.url %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: account_path(@conn, :show, account), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: account_path(@conn, :edit, account), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: account_path(@conn, :delete, account), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Account", to: account_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Account</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, account_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: account_path(@conn, :index) %></span>
|
||||
@@ -1,53 +0,0 @@
|
||||
<h2>Show Account</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Username:</strong>
|
||||
<%= @account.username %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Domain:</strong>
|
||||
<%= @account.domain %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Display name:</strong>
|
||||
<%= @account.display_name %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Description:</strong>
|
||||
<%= @account.description %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Private key:</strong>
|
||||
<%= @account.private_key %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Public key:</strong>
|
||||
<%= @account.public_key %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Suspended:</strong>
|
||||
<%= @account.suspended %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Uri:</strong>
|
||||
<%= @account.uri %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Url:</strong>
|
||||
<%= @account.url %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: account_path(@conn, :edit, @account) %></span>
|
||||
<span><%= link "Back", to: account_path(@conn, :index) %></span>
|
||||
@@ -1 +0,0 @@
|
||||
<!DOCTYPE html><html><head><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel=stylesheet><script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBF37pw38j0giICt73TCAPNogc07Upe_Q4&libraries=places"></script><meta charset=utf-8><title>libre-event</title><link href=/css/app.c6f4f0637b07f4b32d59e43e26ada6c7.css rel=stylesheet></head><body><noscript>Mets du JS.</noscript><div id=app></div><script type=text/javascript src=/js/manifest.79c2975577a8222315fd.js></script><script type=text/javascript src=/js/vendor.94561603df84d1708ae1.js></script><script type=text/javascript src=/js/app.dc4c839388191b886181.js></script></body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Category</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, category_path(@conn, :update, @category)) %>
|
||||
|
||||
<span><%= link "Back", to: category_path(@conn, :index) %></span>
|
||||
@@ -1,23 +0,0 @@
|
||||
<%= 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, :title, class: "control-label" %>
|
||||
<%= text_input f, :title, class: "form-control" %>
|
||||
<%= error_tag f, :title %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :picture, class: "control-label" %>
|
||||
<%= text_input f, :picture, class: "form-control" %>
|
||||
<%= error_tag f, :picture %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,28 +0,0 @@
|
||||
<h2>Listing Categories</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Picture</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for category <- @categories do %>
|
||||
<tr>
|
||||
<td><%= category.title %></td>
|
||||
<td><%= category.picture %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: category_path(@conn, :show, category), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: category_path(@conn, :edit, category), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: category_path(@conn, :delete, category), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Category", to: category_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Category</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, category_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: category_path(@conn, :index) %></span>
|
||||
@@ -1,18 +0,0 @@
|
||||
<h2>Show Category</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Title:</strong>
|
||||
<%= @category.title %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Picture:</strong>
|
||||
<%= @category.picture %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: category_path(@conn, :edit, @category) %></span>
|
||||
<span><%= link "Back", to: category_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Event</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_path(@conn, :update, @event)) %>
|
||||
|
||||
<span><%= link "Back", to: event_path(@conn, :index) %></span>
|
||||
@@ -1,35 +0,0 @@
|
||||
<%= 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, :title, class: "control-label" %>
|
||||
<%= text_input f, :title, class: "form-control" %>
|
||||
<%= error_tag f, :title %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :description, class: "control-label" %>
|
||||
<%= text_input f, :description, class: "form-control" %>
|
||||
<%= error_tag f, :description %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :begin_on, class: "control-label" %>
|
||||
<%= datetime_select f, :begin_on, class: "form-control" %>
|
||||
<%= error_tag f, :begin_on %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :ends_on, class: "control-label" %>
|
||||
<%= datetime_select f, :ends_on, class: "form-control" %>
|
||||
<%= error_tag f, :ends_on %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,32 +0,0 @@
|
||||
<h2>Listing Events</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Description</th>
|
||||
<th>Begin on</th>
|
||||
<th>Ends on</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for event <- @events do %>
|
||||
<tr>
|
||||
<td><%= event.title %></td>
|
||||
<td><%= event.description %></td>
|
||||
<td><%= event.begin_on %></td>
|
||||
<td><%= event.ends_on %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: event_path(@conn, :show, event), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: event_path(@conn, :edit, event), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: event_path(@conn, :delete, event), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Event", to: event_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Event</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: event_path(@conn, :index) %></span>
|
||||
@@ -1,28 +0,0 @@
|
||||
<h2>Show Event</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Title:</strong>
|
||||
<%= @event.title %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Description:</strong>
|
||||
<%= @event.description %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Begin on:</strong>
|
||||
<%= @event.begin_on %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Ends on:</strong>
|
||||
<%= @event.ends_on %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: event_path(@conn, :edit, @event) %></span>
|
||||
<span><%= link "Back", to: event_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Event accounts</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_accounts_path(@conn, :update, @event_accounts)) %>
|
||||
|
||||
<span><%= link "Back", to: event_accounts_path(@conn, :index) %></span>
|
||||
@@ -1,17 +0,0 @@
|
||||
<%= 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, :roles, class: "control-label" %>
|
||||
<%= number_input f, :roles, class: "form-control" %>
|
||||
<%= error_tag f, :roles %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,26 +0,0 @@
|
||||
<h2>Listing Event accounts</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Roles</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for event_accounts <- @event_accounts do %>
|
||||
<tr>
|
||||
<td><%= event_accounts.roles %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: event_accounts_path(@conn, :show, event_accounts), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: event_accounts_path(@conn, :edit, event_accounts), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: event_accounts_path(@conn, :delete, event_accounts), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Event accounts", to: event_accounts_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Event accounts</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_accounts_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: event_accounts_path(@conn, :index) %></span>
|
||||
@@ -1,13 +0,0 @@
|
||||
<h2>Show Event accounts</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Roles:</strong>
|
||||
<%= @event_accounts.roles %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: event_accounts_path(@conn, :edit, @event_accounts) %></span>
|
||||
<span><%= link "Back", to: event_accounts_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Event request</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_request_path(@conn, :update, @event_request)) %>
|
||||
|
||||
<span><%= link "Back", to: event_request_path(@conn, :index) %></span>
|
||||
@@ -1,17 +0,0 @@
|
||||
<%= 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 %>
|
||||
@@ -1,26 +0,0 @@
|
||||
<h2>Listing Event requests</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>State</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for event_request <- @event_requests do %>
|
||||
<tr>
|
||||
<td><%= event_request.state %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: event_request_path(@conn, :show, event_request), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: event_request_path(@conn, :edit, event_request), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: event_request_path(@conn, :delete, event_request), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Event request", to: event_request_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Event request</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, event_request_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: event_request_path(@conn, :index) %></span>
|
||||
@@ -1,13 +0,0 @@
|
||||
<h2>Show Event request</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>State:</strong>
|
||||
<%= @event_request.state %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: event_request_path(@conn, :edit, @event_request) %></span>
|
||||
<span><%= link "Back", to: event_request_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Group</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_path(@conn, :update, @group)) %>
|
||||
|
||||
<span><%= link "Back", to: group_path(@conn, :index) %></span>
|
||||
@@ -1,41 +0,0 @@
|
||||
<%= 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, :title, class: "control-label" %>
|
||||
<%= text_input f, :title, class: "form-control" %>
|
||||
<%= error_tag f, :title %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :description, class: "control-label" %>
|
||||
<%= text_input f, :description, class: "form-control" %>
|
||||
<%= error_tag f, :description %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :suspended, class: "control-label" %>
|
||||
<%= checkbox f, :suspended, class: "checkbox" %>
|
||||
<%= error_tag f, :suspended %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :url, class: "control-label" %>
|
||||
<%= text_input f, :url, class: "form-control" %>
|
||||
<%= error_tag f, :url %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :uri, class: "control-label" %>
|
||||
<%= text_input f, :uri, class: "form-control" %>
|
||||
<%= error_tag f, :uri %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,34 +0,0 @@
|
||||
<h2>Listing Groups</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Description</th>
|
||||
<th>Suspended</th>
|
||||
<th>Url</th>
|
||||
<th>Uri</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for group <- @groups do %>
|
||||
<tr>
|
||||
<td><%= group.title %></td>
|
||||
<td><%= group.description %></td>
|
||||
<td><%= group.suspended %></td>
|
||||
<td><%= group.url %></td>
|
||||
<td><%= group.uri %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: group_path(@conn, :show, group), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: group_path(@conn, :edit, group), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: group_path(@conn, :delete, group), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Group", to: group_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Group</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: group_path(@conn, :index) %></span>
|
||||
@@ -1,33 +0,0 @@
|
||||
<h2>Show Group</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Title:</strong>
|
||||
<%= @group.title %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Description:</strong>
|
||||
<%= @group.description %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Suspended:</strong>
|
||||
<%= @group.suspended %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Url:</strong>
|
||||
<%= @group.url %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Uri:</strong>
|
||||
<%= @group.uri %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: group_path(@conn, :edit, @group) %></span>
|
||||
<span><%= link "Back", to: group_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Group account</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_account_path(@conn, :update, @group_account)) %>
|
||||
|
||||
<span><%= link "Back", to: group_account_path(@conn, :index) %></span>
|
||||
@@ -1,17 +0,0 @@
|
||||
<%= 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, :role, class: "control-label" %>
|
||||
<%= number_input f, :role, class: "form-control" %>
|
||||
<%= error_tag f, :role %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,26 +0,0 @@
|
||||
<h2>Listing Group accounts</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for group_account <- @group_accounts do %>
|
||||
<tr>
|
||||
<td><%= group_account.role %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: group_account_path(@conn, :show, group_account), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: group_account_path(@conn, :edit, group_account), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: group_account_path(@conn, :delete, group_account), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Group account", to: group_account_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Group account</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, group_account_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: group_account_path(@conn, :index) %></span>
|
||||
@@ -1,13 +0,0 @@
|
||||
<h2>Show Group account</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Role:</strong>
|
||||
<%= @group_account.role %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: group_account_path(@conn, :edit, @group_account) %></span>
|
||||
<span><%= link "Back", to: group_account_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<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>
|
||||
@@ -1,17 +0,0 @@
|
||||
<%= 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 %>
|
||||
@@ -1,26 +0,0 @@
|
||||
<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>
|
||||
@@ -1,5 +0,0 @@
|
||||
<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>
|
||||
@@ -1,13 +0,0 @@
|
||||
<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>
|
||||
@@ -1,27 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Hello Eventos!</title>
|
||||
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
|
||||
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
|
||||
|
||||
<main role="main">
|
||||
<%= render @view_module, @view_template, assigns %>
|
||||
</main>
|
||||
|
||||
</div> <!-- /container -->
|
||||
<script src="<%= static_path(@conn, "/js/app.js") %>"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1 @@
|
||||
<div class="jumbotron">
|
||||
<h2><%= gettext "Welcome to %{name}!", name: "Eventos" %></h2>
|
||||
<p class="lead">A decentralized event management platform, currently rewritten with Elixir</p>
|
||||
</div>
|
||||
<!DOCTYPE html><html><head><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel=stylesheet><script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBF37pw38j0giICt73TCAPNogc07Upe_Q4&libraries=places"></script><meta charset=utf-8><title>libre-event</title><link href=/css/app.a3c38b40a31fa078b9acdba649983cb5.css rel=stylesheet></head><body><noscript>Mets du JS.</noscript><div id=app></div><script type=text/javascript src=/js/manifest.881ff1dba0c9e5d0130f.js></script><script type=text/javascript src=/js/vendor.0d63a19c6680451dd336.js></script><script type=text/javascript src=/js/app.29c4f33994925affb616.js></script></body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit Tag</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, tag_path(@conn, :update, @tag)) %>
|
||||
|
||||
<span><%= link "Back", to: tag_path(@conn, :index) %></span>
|
||||
@@ -1,23 +0,0 @@
|
||||
<%= 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, :title, class: "control-label" %>
|
||||
<%= text_input f, :title, class: "form-control" %>
|
||||
<%= error_tag f, :title %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :slug, class: "control-label" %>
|
||||
<%= text_input f, :slug, class: "form-control" %>
|
||||
<%= error_tag f, :slug %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,28 +0,0 @@
|
||||
<h2>Listing Tags</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Slug</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for tag <- @tags do %>
|
||||
<tr>
|
||||
<td><%= tag.title %></td>
|
||||
<td><%= tag.slug %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: tag_path(@conn, :show, tag), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: tag_path(@conn, :edit, tag), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: tag_path(@conn, :delete, tag), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Tag", to: tag_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New Tag</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, tag_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: tag_path(@conn, :index) %></span>
|
||||
@@ -1,18 +0,0 @@
|
||||
<h2>Show Tag</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Title:</strong>
|
||||
<%= @tag.title %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Slug:</strong>
|
||||
<%= @tag.slug %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: tag_path(@conn, :edit, @tag) %></span>
|
||||
<span><%= link "Back", to: tag_path(@conn, :index) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>Edit User</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, user_path(@conn, :update, @user)) %>
|
||||
|
||||
<span><%= link "Back", to: user_path(@conn, :index) %></span>
|
||||
@@ -1,35 +0,0 @@
|
||||
<%= 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, :username, class: "control-label" %>
|
||||
<%= text_input f, :username, class: "form-control" %>
|
||||
<%= error_tag f, :username %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :email, class: "control-label" %>
|
||||
<%= text_input f, :email, class: "form-control" %>
|
||||
<%= error_tag f, :email %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :password_hash, class: "control-label" %>
|
||||
<%= text_input f, :password_hash, class: "form-control" %>
|
||||
<%= error_tag f, :password_hash %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= label f, :role, class: "control-label" %>
|
||||
<%= number_input f, :role, class: "form-control" %>
|
||||
<%= error_tag f, :role %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= submit "Submit", class: "btn btn-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -1,32 +0,0 @@
|
||||
<h2>Listing Users</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Email</th>
|
||||
<th>Password hash</th>
|
||||
<th>Role</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for user <- @users do %>
|
||||
<tr>
|
||||
<td><%= user.username %></td>
|
||||
<td><%= user.email %></td>
|
||||
<td><%= user.password_hash %></td>
|
||||
<td><%= user.role %></td>
|
||||
|
||||
<td class="text-right">
|
||||
<span><%= link "Show", to: user_path(@conn, :show, user), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Edit", to: user_path(@conn, :edit, user), class: "btn btn-default btn-xs" %></span>
|
||||
<span><%= link "Delete", to: user_path(@conn, :delete, user), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New User", to: user_path(@conn, :new) %></span>
|
||||
@@ -1,5 +0,0 @@
|
||||
<h2>New User</h2>
|
||||
|
||||
<%= render "form.html", Map.put(assigns, :action, user_path(@conn, :create)) %>
|
||||
|
||||
<span><%= link "Back", to: user_path(@conn, :index) %></span>
|
||||
@@ -1,28 +0,0 @@
|
||||
<h2>Show User</h2>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Username:</strong>
|
||||
<%= @user.username %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Email:</strong>
|
||||
<%= @user.email %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Password hash:</strong>
|
||||
<%= @user.password_hash %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Role:</strong>
|
||||
<%= @user.role %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= link "Edit", to: user_path(@conn, :edit, @user) %></span>
|
||||
<span><%= link "Back", to: user_path(@conn, :index) %></span>
|
||||
Reference in New Issue
Block a user