1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Advancing on html5 basic theme

This commit is contained in:
Adolfo Gómez 2013-11-08 12:17:51 +00:00
parent b5aa6cd4b8
commit fcc7bffb2e
7 changed files with 42 additions and 20 deletions

View File

@ -0,0 +1,29 @@
{% extends "uds/html5/templates/base.html" %}
{% load i18n static %}
{% block title %}{% trans "Login redirection to UDS" %}{% endblock %}
{% block script %}
<script src="{% get_static_prefix %}js/PluginDetect_Java.js" type="text/javascript" ></script>
<script type="text/javascript">
function isJavaAvailable() {
if( PluginDetect.isMinVersion('Java', '1,6,0,0','{% get_static_prefix %}/other/getJavaInfo.jar') == 1 )
return true;
return false;
}
$(document).ready(function() {
var java = isJavaAvailable() ? "y" : "n";
window.location.replace("{% url "uds.web.views.authJava" idAuth=idAuth hasJava='' %}" + java);
});
</script>
{% endblock %}
{% block body %}
<!--<div>
<a href="<a href="{% url "uds.web.views.index" %}">{% trans "Go to main page" %}
</div>-->
{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "uds/html5/internal_page.html" %}
{% extends "uds/html5/templates/internal_page.html" %}
{% load i18n static html5 %}
{% block title %}{% trans 'Available services list' %}
{% block title %}{% trans 'Available services list' %}{% endblock %}
{% block css %}
<style>

View File

@ -1,4 +1,4 @@
{% extends "uds/html5/base.html" %}
{% extends "uds/html5/templates/base.html" %}
{% load i18n static html5 %}
{% block title %}{% trans 'Welcome to UDS' %}{% endblock %}

View File

@ -1,21 +1,14 @@
{% extends "uds/internal_page.html" %}
{% extends "uds/html5/templates/internal_page.html" %}
{% load i18n %}
{% load static %}
{% block title %}
{% trans "UDS User Preferences" %}
{% endblock %}
{% 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" %}"/>
{% block body %}
<form name="form1" method="post" class="form-preferences">
{% csrf_token %}
{% autoescape off %}{{ prefs_form }}{% endautoescape %}
<a href="{% url "uds.web.views.index" %}" class="btn btn-warning">{% trans "Cancel" %}</a>
<button type="submit" class="btn btn-success pull-right">{% trans "Save Preferences" %}</button>
</form>
{% include "uds/snippets/back_to_list.html" %}
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
{% block navbar %}
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="{% url "uds.web.views.prefs" %}">{% trans "User" %} {{ user.real_name }}</a></li>
<li><a href="{% url "uds.web.views.prefs" %}" title="{% trans 'Preferences' %}">{{ user.real_name }}</a></li>
</ul>
{% include "uds/html5/snippets/nav-right.html" with logout=True %}
</div>

View File

@ -1,4 +1,4 @@
{% extends "uds/html5/base.html" %}
{% extends "uds/html5/templates/base.html" %}
{% load i18n static html5 %}
{% block js %}