forked from shaba/openuds
This commit is contained in:
parent
9dd35ebf1e
commit
b5aa6cd4b8
@ -1,25 +1,30 @@
|
|||||||
{% extends "uds/html5/internal_page.html" %}
|
{% extends "uds/html5/internal_page.html" %}
|
||||||
{% load i18n static html5 %}
|
{% load i18n static html5 %}
|
||||||
|
|
||||||
|
{% block title %}{% trans 'Available services list' %}
|
||||||
|
|
||||||
{% block css %}
|
{% block css %}
|
||||||
<style>
|
<style>
|
||||||
.testing {
|
.list-btn-group {
|
||||||
width: 95px;
|
margin-bottom: 24px;
|
||||||
height: 95px;
|
margin-right: 24px;
|
||||||
margin-bottom: 16px;
|
}
|
||||||
margin-left: 16px;
|
.list-btn {
|
||||||
|
padding-top: 24px;
|
||||||
background: rgb(255,255,255); /* Old browsers */
|
height: 96px;
|
||||||
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */
|
overflow: hidden;
|
||||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
|
}
|
||||||
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Chrome10+,Safari5.1+ */
|
.list-btn-reduced {
|
||||||
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */
|
width: 96px;
|
||||||
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */
|
}
|
||||||
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* W3C */
|
.list-btn-normal {
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
|
width: 112px;
|
||||||
overflow: hidden;
|
}
|
||||||
}
|
|
||||||
</style>
|
.list-dropdown-toggle {
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
@ -34,6 +39,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
$(".btn-default").tooltip({container: 'body', placement: 'bottom'});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -43,22 +49,30 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
{% for ser in services %}
|
{% for ser in services %}
|
||||||
{% if ser.transports %}
|
{% if ser.transports %}
|
||||||
{% with trans=ser.transports|first %}
|
{% with trans=ser.transports|first numTransports=ser.transports|length %}
|
||||||
{% if forloop.counter0 > 0 %}
|
<div class="btn-group list-btn-group">
|
||||||
{% endif %}
|
<a class="{% if not java and trans.needsJava %} nojava{% endif %} btn list-btn btn-default list-btn-{% if numTransports > 1 %}reduced{% else %}normal{% endif %}"
|
||||||
<div class="pull-left">
|
href="{% url "uds.web.views.service" idService=ser.id idTransport=trans.id %}"
|
||||||
<div class="thumbnail testing">
|
title="{{ ser.name }}"
|
||||||
<a class="{% if not java and trans.needsJava %} nojava{% endif %}" href="{% url "uds.web.views.service" idService=ser.id idTransport=trans.id %}">
|
data-toggle="tooltip">
|
||||||
<img src="{% url "uds.web.views.transportIcon" idTrans=trans.id %}" class="" alt="{{ ser.name }}" />
|
<div><img src="{% url "uds.web.views.transportIcon" idTrans=trans.id %}" class="" alt="{{ ser.name }}" /></div>
|
||||||
<div class="caption">{{ ser.name }}</div>
|
<div>{{ ser.name|truncatechars:12 }}</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
{% if numTransports > 1 %}
|
||||||
</div>
|
<button type="button" class="btn list-btn btn-default dropdown-toggle list-dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<span class="caret"></span>
|
||||||
|
<span class="sr-only">{% trans 'transports' %}</span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
{% for trans in ser.transports %}
|
||||||
|
{% if not forloop.first %}
|
||||||
|
<li><a{% if not java and trans.needsJava %} class="nojava"{% endif %} href="{% url "uds.web.views.service" idService=ser.id idTransport=trans.id %}"><img src="{% url "uds.web.views.transportIcon" idTrans=trans.id %}" alt="{{ trans.name }}" />{{ trans.name }}</a></li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<!--
|
|
||||||
{% for trans in ser.transports %}
|
|
||||||
<li><a{% if not java and trans.needsJava %} class="nojava"{% endif %} href="{% url "uds.web.views.service" idService=ser.id idTransport=trans.id %}"><img src="{% url "uds.web.views.transportIcon" idTrans=trans.id %}" alt="{{ trans.name }}" />{{ trans.name }}</a></li>
|
|
||||||
{% endfor %} -->
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% extends "uds/html5/base.html" %}
|
{% extends "uds/html5/base.html" %}
|
||||||
{% load i18n static html5 %}
|
{% load i18n static html5 %}
|
||||||
|
|
||||||
{% block title %}{% trans "Login to UDS" %}{% endblock %}
|
{% block title %}{% trans 'Welcome to UDS' %}{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
<script src="{% get_static_prefix %}js/PluginDetect_Java.js" type="text/javascript" ></script>
|
<script src="{% get_static_prefix %}js/PluginDetect_Java.js" type="text/javascript" ></script>
|
||||||
|
21
server/src/uds/templates/uds/html5/prefs.html
Normal file
21
server/src/uds/templates/uds/html5/prefs.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{% extends "uds/internal_page.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans "UDS User Preferences" %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<h2>{% trans "Preferences" %}</h2>
|
||||||
|
<form name="form1" method="post" action="">
|
||||||
|
{% csrf_token %}
|
||||||
|
{% autoescape off %}{{ prefs_form }}{% endautoescape %}
|
||||||
|
<input type="submit" name="submit" value="{% trans "Save Preferences" %}"/>
|
||||||
|
</form>
|
||||||
|
{% include "uds/snippets/back_to_list.html" %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user