Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update promo sit. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmbvnr committed May 11, 2015
1 parent 89bb793 commit 1f706bc
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 10 deletions.
12 changes: 8 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,15 @@ Admin support development is on initial stage. Only basic admin features are ava
Changelog
=========

0.3.0 - GIT Version
-------------------

* Added frontend module
0.3.0 2015-05-11 - Alpha
------------------------

* Migrated to new version of materializecss framework
* List all applications in admin navigation menu
* Added breadcrumbs in admin
* Custom material css and js cleanup
* New Frontend template
* Various widget rendering fixes (splitdatetime, empty selects)

0.2.1 2015-04-20 - Alpha
------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='django-material',
version='0.2.1',
version='0.3.0',
description='Material design for django forms and admin',
license='BSD',
author='Mikhail Podgurskiy',
Expand Down
Binary file modified tests/static/img/admin_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/static/img/admin_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/static/img/admin_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/static/img/admin_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/static/img/frontend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 69 additions & 5 deletions tests/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,21 @@ <h6><a target="_blank" href="http://viewflow.io" style="text-transform:none;marg
<div class="col s12 m10 offset-m1">
<div class="divider"></div>
<div id="features" class="section scrollspy">
<h5>Features</h5>
<h5>Overview</h5>
<h6>Material design with goodies</h6>
<div class="row">
<div class="col m8">
<h5 style="line-height:50px">
<ul style="margin:0">
<li><i class="green-text mdi-action-done"></i> Strong python/html code separation</li>
<li><i class="green-text mdi-action-done"></i> Easy redefinition of particular field rendering</li>
<li><i class="green-text mdi-action-done"></i> Complex form layout support</li>
<li><a href="#forms" style="text-transform:none">Forms</a>&ndash; Easy way to render custom django forms
<ul style="padding-left:20px;font-size:0.7em;line-height:30px">
<li><i class="green-text mdi-action-done"></i> Strong python/html code separation</li>
<li><i class="green-text mdi-action-done"></i> Easy redefinition of particular field rendering</li>
<li><i class="green-text mdi-action-done"></i> Complex form layout support</li>
</ul>
</li>
<li><a href="#frontend" style="text-transform:none">Frontend</a>&ndash; Quick starter template</li>
<li><a href="#admin" style="text-transform:none">Admin</a>&ndash; Material-designed django admin</li>
</ul>
</h5>
</div>
Expand All @@ -177,10 +184,11 @@ <h5>Installation</h5><br/>

<pre><code class="python"> $ pip install django-material </code></pre>

And add it into INSTALLED_APPS settings
And add desired apps into INSTALLED_APPS settings

<pre><code class="python"> INSTALLED_APPS = (
'material',
'material.frontend',
'material.admin',
...
)
Expand Down Expand Up @@ -274,6 +282,61 @@ <h4>Forms samples</h4>
</div>
</div>
</div>
<div class="col s12">
<div id="frontend" class="card scrollspy">
<div class="card-content">
<div class="row">
<div class="col s8">
<h4>Frontend</h4>
<h6>Quick starter template for modular ERP-like applications developent</h6>
<h5>Quick start</h5><br/>
Add <i>material.frontend.context_processors.modules</i> into <i>context_processor</i> setting
<pre><code class="python">TEMPLATES = [
{
...
'OPTIONS': {
'context_processors': [
...
'material.frontend.context_processors.modules',
],
},
},
]</code></pre>
</div>
<div class="col s4">
<img src="{% static 'img/frontend.png'%}" class="responsive-img" style="border:2px solid grey"/>
</div>
<div class="col s12">

Add frontend urls into global urlconf module at urls.py

<pre><code class="python">from material.frontend import urls as frontend_urls

urlpatterns = [
...
url(r'^admin/', include(admin.site.urls)),
url(r'', include(frontend_urls)),
]</code></pre>


To create a new module make a `modules.py` file, inside app directory, with following content

.. code-block:: python

<pre><code class="python">from material.frontend import Module

class Sample(Module):
icon = 'mdi-image-compare'
</code></pre>
By default module expose a single view that renders html template from &lt;module_name&gt;/index.html file.
<br/><br/>
You can override `Module.get_urls()` method to provide module url config that would be automatically included into
global urls.
</div>
</div>
</div>
</div>
</div>
<div class="col s12">
<h4>Administration</h4>
</div>
Expand Down Expand Up @@ -380,6 +443,7 @@ <h5 class="white-text">Links</h5>
<li><a href="#quick_start">Quick Start</a></li>
<li><a href="#docs">Documentation</a></li>
<li><a href="#forms">Forms samples</a></li>
<li><a href="#frontend">Frontend Template</a></li>
<li><a href="#admin">Admin</a></li>
</ul>

Expand Down

0 comments on commit 1f706bc

Please sign in to comment.