Commit 69597f5
Changed files (2)
app
views
my
clients
app/views/my/clients/index.html.erb
@@ -7,14 +7,14 @@
<thead>
<th>Client ID</th>
<th>Name</th>
- <th>Redirect URI</th>
+ <th>Redirect URIs</th>
</thead>
<tbody>
<% @clients.each do |client| %>
<tr>
<td><%= client.to_param %></td>
<td><%= client.name %></td>
- <td><%= client.redirect_uri %></td>
+ <td><%= client.redirect_uris.join(',') %></td>
</tr>
<% end %>
</tbody>
app/views/my/clients/new.html.erb
@@ -13,7 +13,7 @@
</div>
<div class="form-group">
<%= form.label :redirect_uris %>
- <%= form.url_field :redirect_uris, data: { target: 'clients--new.redirect_uris' } %>
+ <%= form.url_field :redirect_uris, data: { target: 'clients--new.redirect_uris' }, multiple: true %>
</div>
<%= form.submit t(".enable"), class: 'btn btn-primary', data: { disable_with: 'Saving…' } %>
<%= link_to t(".cancel"), my_clients_path, class: 'btn' %>