-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare 0.6.2; make it simple to render list of fobi forms on any page
- Loading branch information
1 parent
d9b09bc
commit 91a880c
Showing
20 changed files
with
323 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Django | ||
Jinja2 | ||
MarkupSafe | ||
MySQL-python | ||
mailchimp | ||
Sphinx | ||
django-admin-tools>=0.5.2 | ||
django-autoslug>=1.7.1 | ||
django-debug-toolbar>=0.11.0 | ||
django-localeurl>=2.0.2 | ||
Pillow>=2.0.0 | ||
requests>=1.0.0 | ||
django-autoslug>=1.3.0 | ||
django-nonefield>=0.1 | ||
ordereddict>=1.1 | ||
six>=1.4.1 | ||
easy-thumbnails>=1.4 | ||
vishap>=0.1.3,<2.0 | ||
Unidecode>=0.04.1 | ||
django-nine>=0.1.6 | ||
django-registration-redux>=1.1 | ||
docutils | ||
ipdb | ||
ipython | ||
ordereddict>=1.1 | ||
# Selenium shall always be upgraded | ||
selenium | ||
simple-timer>=0.2 | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<html> | ||
<body> | ||
{% include theme.forms_list_template %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
from django.conf.urls import url | ||
|
||
from foo.views import endpoint as foo_views_endpoint | ||
from foo.views import ( | ||
endpoint as foo_views_endpoint, forms_list as foo_forms_list, | ||
) | ||
|
||
urlpatterns = [ | ||
url(r'^endpoint/$', view=foo_views_endpoint, name='foo.endpoint'), | ||
url(r'^forms-list/$', view=foo_forms_list, name='foo.forms_list'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/fobi/contrib/themes/bootstrap3/templates/bootstrap3/forms_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends "fobi/generic/forms_list.html" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
.../themes/djangocms_admin_style_theme/templates/djangocms_admin_style_theme/forms_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% load i18n %} | ||
|
||
<table id="result_list"> | ||
<thead> | ||
<tr> | ||
<th> | ||
<div class="text"> | ||
<span>{% trans "Name" %}</span> | ||
</div> | ||
<div class="clear"></div> | ||
</th> | ||
{% if show_custom_actions %} | ||
<th> | ||
<div class="text"> | ||
<span>{% trans "Actions" %}</span> | ||
</div> | ||
<div class="clear"></div> | ||
</th> | ||
{% endif %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for form_entry in form_entries %} | ||
<tr class="{% if forloop.counter|divisibleby:2 %}row2{% else %}row1{% endif %}"> | ||
<th><a href="{% url 'fobi.view_form_entry' form_entry.slug %}">{{ form_entry.name }}</a></th> | ||
{% if show_custom_actions %} | ||
<td> | ||
<ul class="list-inline"> | ||
{% if show_edit_link %} | ||
<li> | ||
<a href="{% url 'fobi.edit_form_entry' form_entry.pk %}" class="edit" title="{% trans 'Edit' %}"> | ||
<span></span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if show_delete_link %} | ||
<li> | ||
<a href="{% url 'fobi.delete_form_entry' form_entry.pk %}" class="deletelink" title="{% trans 'Delete' %}"> | ||
<span></span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if show_export_link %} | ||
<li> | ||
<a href="{% url 'fobi.export_form_entry' form_entry.pk %}" class="exportlink" title="{% trans 'Export' %}"> | ||
<span class="custom-icon custom-icon-export"></span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/fobi/contrib/themes/foundation5/templates/foundation5/forms_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% load i18n %} | ||
|
||
<table class="table table-striped large-12"> | ||
<thead> | ||
<tr> | ||
<th>{% trans "Form" %}</th> | ||
{% if show_custom_actions %}<th>{% trans "Actions" %}</th>{% endif %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for form_entry in form_entries %} | ||
<tr> | ||
<td><a href="{% url 'fobi.view_form_entry' form_entry.slug %}">{{ form_entry.name }}</a></td> | ||
{% if show_custom_actions %} | ||
<td> | ||
<ul class="inline-list"> | ||
{% if show_edit_link %} | ||
<li><a href="{% url 'fobi.edit_form_entry' form_entry.pk %}"><span class="fi-page-edit"></span> {% trans "Edit" %}</a></li> | ||
{% endif %} | ||
{% if show_delete_link %} | ||
<li><a href="{% url 'fobi.delete_form_entry' form_entry.pk %}"><span class="fi-page-delete"></span> {% trans "Delete" %}</a></li> | ||
{% endif %} | ||
{% if show_export_link %} | ||
<li><a href="{% url 'fobi.export_form_entry' form_entry.pk %}"><span class="fi-download"></span> {% trans "Export" %}</a></li> | ||
{% endif %} | ||
</ul> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/fobi/contrib/themes/simple/templates/simple/forms_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% load i18n %} | ||
|
||
<table id="result_list"> | ||
<thead> | ||
<tr> | ||
<th> | ||
<div class="text"> | ||
<span>{% trans "Name" %}</span> | ||
</div> | ||
<div class="clear"></div> | ||
</th> | ||
{% if show_custom_actions %} | ||
<th> | ||
<div class="text"> | ||
<span>{% trans "Actions" %}</span> | ||
</div> | ||
<div class="clear"></div> | ||
</th> | ||
{% endif %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for form_entry in form_entries %} | ||
<tr class="{% if forloop.counter|divisibleby:2 %}row2{% else %}row1{% endif %}"> | ||
<th><a href="{% url 'fobi.view_form_entry' form_entry.slug %}">{{ form_entry.name }}</a></th> | ||
{% if show_custom_actions %} | ||
<td> | ||
<ul class="list-inline"> | ||
{% if show_edit_link %} | ||
<li> | ||
<a href="{% url 'fobi.edit_form_entry' form_entry.pk %}"> | ||
<span class="glyphicon glyphicon-edit"></span> {% trans "Edit" %} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if show_delete_link %} | ||
<li> | ||
<a href="{% url 'fobi.delete_form_entry' form_entry.pk %}"> | ||
<span class="glyphicon glyphicon-remove"></span> {% trans "Delete" %} | ||
</a> | ||
</li> | ||
{% endif %} | ||
{% if show_export_link %} | ||
<li> | ||
<a href="{% url 'fobi.export_form_entry' form_entry.pk %}"> | ||
<span class="glyphicon glyphicon-export"></span> {% trans "Export" %} | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
Oops, something went wrong.