Commit 98e4cda7de042cd0fd8c6dd98d4601e57685db26
1 parent
f4d8f713
Exists in
master
and in
3 other branches
Adding resources list (Changes to be made)
Showing
4 changed files
with
65 additions
and
0 deletions
Show diff stats
amadeus/static/css/base/amadeus.css
| @@ -749,4 +749,32 @@ a.add-row { | @@ -749,4 +749,32 @@ a.add-row { | ||
| 749 | -moz-user-select: none; | 749 | -moz-user-select: none; |
| 750 | -ms-user-select: none; | 750 | -ms-user-select: none; |
| 751 | user-select: none; | 751 | user-select: none; |
| 752 | +} | ||
| 753 | + | ||
| 754 | +.resource_list { | ||
| 755 | + margin-left: 30px; | ||
| 756 | + border-top: none !important; | ||
| 757 | +} | ||
| 758 | + | ||
| 759 | +.resource_list > .list-group-item:first-child { | ||
| 760 | + border-top-left-radius: 4px !important; | ||
| 761 | + border-top-right-radius: 4px !important; | ||
| 762 | +} | ||
| 763 | + | ||
| 764 | +.resource_list > .list-group-item { | ||
| 765 | + position: relative; | ||
| 766 | + display: block; | ||
| 767 | + padding: 10px 15px; | ||
| 768 | + margin-bottom: -1px; | ||
| 769 | + border-width: 1px !important; | ||
| 770 | +} | ||
| 771 | + | ||
| 772 | +.resource_list > .list-group-item:last-child { | ||
| 773 | + margin-bottom: 0; | ||
| 774 | + border-bottom-right-radius: 4px !important; | ||
| 775 | + border-bottom-left-radius: 4px !important; | ||
| 776 | +} | ||
| 777 | + | ||
| 778 | +.resource_list .list-group-item .list-group-item-heading { | ||
| 779 | + font-weight: 500; | ||
| 752 | } | 780 | } |
| 753 | \ No newline at end of file | 781 | \ No newline at end of file |
amadeus/static/css/themes/green.css
| @@ -356,6 +356,15 @@ a.add-row { | @@ -356,6 +356,15 @@ a.add-row { | ||
| 356 | color: rgba(255,255,255,.84); | 356 | color: rgba(255,255,255,.84); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | +.resource_list > .list-group-item { | ||
| 360 | + background-color: #fff; | ||
| 361 | + border: 1px solid #ddd; | ||
| 362 | +} | ||
| 363 | + | ||
| 364 | +.resource_list > .list-group-item:last-child { | ||
| 365 | + border-bottom: 1px solid #ddd !important; | ||
| 366 | +} | ||
| 367 | + | ||
| 359 | @media(max-width: 768px) { | 368 | @media(max-width: 768px) { |
| 360 | .navbar .navbar-nav .dropdown .dropdown-menu li > a { | 369 | .navbar .navbar-nav .dropdown .dropdown-menu li > a { |
| 361 | color: #333333 !important; | 370 | color: #333333 !important; |
topics/templates/topics/list.html
webpage/templates/webpages/list.html
| @@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
| 1 | +{% load static i18n pagination permissions_tags %} | ||
| 2 | +{% load django_bootstrap_breadcrumbs %} | ||
| 3 | + | ||
| 4 | +<div class="list-group resource_list"> | ||
| 5 | + {% for resource in topic.resource_topic.all %} | ||
| 6 | + <div class="list-group-item"> | ||
| 7 | + <h4 class="pull-left list-group-item-heading"> | ||
| 8 | + {{ resource }} | ||
| 9 | + </h4> | ||
| 10 | + <div class="pull-right category-card-items"> | ||
| 11 | + <a href=""><i class="fa fa-arrows" aria-hidden="true"></i></a> | ||
| 12 | + <a href="" id="moreResources" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
| 13 | + <i class="fa fa-ellipsis-v" aria-hidden="true"></i> | ||
| 14 | + </a> | ||
| 15 | + <ul class="dropdown-menu pull-right" aria-labelledby="moreResources"> | ||
| 16 | + <li><a href="{% url 'topics:update' subject.slug topic.slug %}"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>{% trans 'Edit' %}</a></li> | ||
| 17 | + <li><a href="javascript:delete_topic('{% url 'topics:delete' topic.slug %}')"><i class="fa fa-trash fa-fw" aria-hidden="true"></i> {% trans 'Remove' %}</a></li> | ||
| 18 | + </ul> | ||
| 19 | + </div> | ||
| 20 | + <br clear="all" /> | ||
| 21 | + {% autoescape off %} | ||
| 22 | + {{ resource.brief_description }} | ||
| 23 | + {% endautoescape %} | ||
| 24 | + </div> | ||
| 25 | + {% endfor %} | ||
| 26 | +</div> | ||
| 0 | \ No newline at end of file | 27 | \ No newline at end of file |