Document upload and metadata input working
This commit is contained in:
33
apps/web_theme/templates/pagination/pagination.html
Normal file
33
apps/web_theme/templates/pagination/pagination.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% if is_paginated %}
|
||||
{% load i18n %}
|
||||
<div class="actions-bar wat-cf">
|
||||
<div class="pagination">
|
||||
{% if page_obj.has_previous %}
|
||||
<a class="prev_page" href="?page={{ page_obj.previous_page_number }}{{ getvars }}">‹‹ {% trans "Previous" %}</a>
|
||||
{% else %}
|
||||
<span class="disabled prev_page">‹‹ {% trans "Previous" %}</span>
|
||||
{% endif %}
|
||||
|
||||
{% for page in pages %}
|
||||
|
||||
{% if page %}
|
||||
|
||||
{% ifequal page page_obj.number %}
|
||||
<span class='current'>{{ page }}</span>
|
||||
{% else %}
|
||||
<a href="?page={{ page }}{{ getvars }}{{ hashtag }}">{{ page }}</a>
|
||||
{% endifequal %}
|
||||
{% else %}
|
||||
<span class="disabled">...</span>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% if page_obj.has_next %}
|
||||
<a class="next_page" href="?page={{ page_obj.next_page_number }}{{ getvars }}">{% trans "Next" %} ››</a>
|
||||
{% else %}
|
||||
<span class='disabled next-page'>{% trans "Next" %} ››</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
72
apps/web_theme/templates/web_theme_base.html
Normal file
72
apps/web_theme/templates/web_theme_base.html
Normal file
@@ -0,0 +1,72 @@
|
||||
{% load i18n %}
|
||||
{% load theme_tags %}
|
||||
{% get_theme as web_theme %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Language" content="{{ LANGUAGE_CODE }}" />
|
||||
|
||||
<title>{% block html_title %}{% endblock %}</title>
|
||||
|
||||
{% block keywords %}{% endblock %}
|
||||
|
||||
<link rel="stylesheet" href="{{ MEDIA_URL }}web_theme_media/stylesheets/base.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" id="current-theme" href="{{ MEDIA_URL }}web_theme_media/stylesheets/themes/{{ web_theme }}/style.css" type="text/css" media="screen" />
|
||||
{% block web_theme_stylesheets %}{% endblock %}
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}web_theme_media/javascripts/jquery-1.3.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}web_theme_media/javascripts/jquery.scrollTo.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}web_theme_media/javascripts/jquery.localscroll.js"></script>
|
||||
{% block web_theme_javascript %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
{% if user.is_anonymous %}
|
||||
<div id="box">
|
||||
{% block content_plain %}{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if not user.is_anonymous %}
|
||||
<div id="header">
|
||||
<h1><a href="{% url home %}">{% block web_theme_project_name %}{% endblock %}</a></h1>
|
||||
<div id="user-navigation">
|
||||
<ul class="wat-cf">
|
||||
{% block web_theme_user_navigation %}{% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main-navigation">
|
||||
<ul class="wat-cf">
|
||||
{% block web_theme_main_navigation %}{% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="wrapper" class="wat-cf">
|
||||
<div id="main">
|
||||
<div class="block" id="block-text">
|
||||
{% block web_theme_secondary_navigation %}{% endblock %}
|
||||
{% if messages %}
|
||||
<div class="inner">
|
||||
<div class="flash">
|
||||
{% for message in messages %}
|
||||
<div class="message{% if message.tags %}{% if 'success' in message.tags %} notice{% endif %} {{ message.tags }}{% else %} notice{% endif %}">
|
||||
<p onclick="$(this).parent().parent().fadeOut(); return false;">{{ message }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% block web_theme_messages %}{% endblock %}
|
||||
{% block web_theme_content %}{% endblock %}
|
||||
</div>
|
||||
{% block web_theme_footer %}{% endblock %}
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
{% block web_theme_sidebar %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
23
apps/web_theme/templates/web_theme_login.html
Normal file
23
apps/web_theme/templates/web_theme_login.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "web_theme_base.html" %}
|
||||
{% load i18n %}
|
||||
{% block html_title %}{% trans "Login" %}{% endblock %}
|
||||
{% block content_plain %}
|
||||
<div id="box">
|
||||
<h1>{% block project_name %}{% endblock %}</h1>
|
||||
<div class="block" id="block-login">
|
||||
<h2>{% trans "Login" %}</h2>
|
||||
<div class="content login">
|
||||
<form action="." method="post" class="form login">{% csrf_token %}
|
||||
<div class="group wat-cf">
|
||||
{% include "generic_form_instance.html" %}
|
||||
<input type="hidden" name="next" value="{{ next|escape }}" />
|
||||
<div class="group navform wat-cf">
|
||||
<button class="button" type="submit">
|
||||
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/key.png" alt="Save" /> Login
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user