Mooooore resources
This commit is contained in:
@@ -40,13 +40,11 @@
|
||||
<%= f.date_select :disposed_at, include_blank: true %>
|
||||
</p>
|
||||
|
||||
<% if can? :assign_user, @resource %>
|
||||
<p>
|
||||
<%= f.label :user_id, "Owner" %>
|
||||
<br />
|
||||
<%= select(:resource, :user_id, options_from_collection_for_select(@users, :id, :name, @resource.user_id), include_blank: true) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= f.label :donatable %><br />
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<script src="/bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
|
||||
|
||||
<style>
|
||||
#accordion .thumbnail { height: 150px; position: relative; }
|
||||
#accordion .thumbnail .ownership,
|
||||
#accordion .thumbnail .disposed
|
||||
.thumbnail { height: 150px; position: relative; }
|
||||
.thumbnail .ownership,
|
||||
.thumbnail .disposed
|
||||
{ position: absolute; top: 1px;
|
||||
text-shadow:
|
||||
-1px -1px 0 #fff,
|
||||
@@ -15,8 +15,8 @@
|
||||
-1px 1px 0 #fff,
|
||||
1px 1px 0 #fff;
|
||||
font-weight: bold; left: 10px; }
|
||||
#accordion .thumbnail .disposed { color: red; }
|
||||
#accordion .thumbnail h4 { position: absolute; bottom: 1px; margin-bottom: 1px; }
|
||||
.thumbnail .disposed { color: red; }
|
||||
.thumbnail h4 { position: absolute; bottom: 1px; margin-bottom: 1px; }
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user