0001-backoffice-use-appbar-markup-for-global-view-title-2.patch
wcs/backoffice/management.py | ||
---|---|---|
908 | 908 |
get_response().filter['sidebar'] = self.get_global_listing_sidebar( |
909 | 909 |
limit=limit, offset=offset, order_by=order_by) |
910 | 910 |
rt = TemplateIO(html=True) |
911 |
rt += htmltext('<div class="top-title">')
|
|
911 |
rt += htmltext('<div id="appbar">')
|
|
912 | 912 |
rt += htmltext('<h2>%s</h2>') % _('Global View') |
913 |
rt += htmltext('<div class="alt-views">') |
|
914 | 913 |
rt += htmltext('<a href="forms">%s</a>') % _('Forms View') |
915 | 914 |
for formdef in FormDef.select(lightweight=True): |
916 | 915 |
if formdef.geolocations: |
917 |
rt += htmltext(' - <a href="map">%s</a>') % _('Map View')
|
|
916 |
rt += htmltext(' <a href="map">%s</a>') % _('Map View') |
|
918 | 917 |
break |
919 | 918 |
rt += htmltext('</div>') |
920 |
rt += htmltext('</div>') |
|
921 | 919 |
rt += get_session().display_message() |
922 | 920 |
rt += r.getvalue() |
923 | 921 |
r = rt |
wcs/qommon/static/css/dc2/admin.css | ||
---|---|---|
657 | 657 |
margin: 0; |
658 | 658 |
} |
659 | 659 | |
660 |
div.alt-views { |
|
661 |
position: absolute; |
|
662 |
right: 1rem; |
|
663 |
top: 2.5rem; |
|
664 |
} |
|
665 | ||
666 | 660 |
ul.biglist li { |
667 | 661 |
border-width: 1px; |
668 | 662 |
border-color: #e4e4e4; |
669 |
- |