Skip to content
Snippets Groups Projects
Commit 6a885199 authored by Brian Wood's avatar Brian Wood
Browse files

Updated responsiveness and libItem

parent 4aaa73cf
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ span.vert{ ...@@ -94,7 +94,7 @@ span.vert{
font-size: 22px; font-size: 22px;
} }
@media (max-width: 480px) { @media (max-width: 568px) {
span.vert { span.vert {
display: inline-block; display: inline-block;
} }
......
...@@ -6,15 +6,18 @@ ...@@ -6,15 +6,18 @@
<div class="col-xs-12 col-sm-3 col-md-2"> <div class="col-xs-12 col-sm-3 col-md-2">
<img src="{{ item.poster }}" style="max-width: 180px;" alt="{{ item.title }}"> <img src="{{ item.poster }}" style="max-width: 180px;" alt="{{ item.title }}">
<h3>{{ item.title }}</h3> <h3>{{ item.title }}</h3>
{% if loan != None %}
Loaned to: {{ loan.borrower_email }}<br/>
Due back: {{ loan.expected_return_date.strftime('%m-%d-%Y') }}
{% endif %}
<div class="btn-group"> <div class="btn-group">
{% if loan == None %} {% if loan == None %}
<button type="button" class="btn btn-default btn-small lend-movie" data-toggle="modal" data-target="#loan-form" data-id='{{ item.id }}'>Lend</button> <button type="button" class="btn btn-default btn-small lend-movie" data-toggle="modal" data-target="#loan-form" data-id='{{ item.id }}'>Lend</button>
{% else %} {% else %}
Loaned to: {{ loan.borrower_email }}<br/>
Due back: {{ loan.expected_return_date.strftime('%m-%d-%Y') }}
<button type="button" class="btn btn-default btn-small return-movie" data-toggle="modal" data-target="#return-form" data-id='{{ item.id }}'>Return</button> <button type="button" class="btn btn-default btn-small return-movie" data-toggle="modal" data-target="#return-form" data-id='{{ item.id }}'>Return</button>
<button type="button" class="btn btn-default btn-small reminder" data-toggle="modal" data-target="#reminder-form" data-id='{{ item.id }}'>Reminder</button> <button type="button" class="btn btn-default btn-small reminder" data-toggle="modal" data-target="#reminder-form" data-id='{{ item.id }}'>Reminder</button>
{% endif %} {% endif %}
{% if library.name != "Master" or loan == None %} {% if library.name != "Master" or loan == None %}
<button type="button" class="btn btn-default btn-small remove-movie" data-id='{{ index }}'>Remove</button> <button type="button" class="btn btn-default btn-small remove-movie" data-id='{{ index }}'>Remove</button>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment