Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e07b4c
commit 15bb505
Showing
11 changed files
with
127 additions
and
37 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,28 +1,10 @@ | ||
{% extends "page.html" %} | ||
{% extends "organization/edit_base.html" %} | ||
|
||
{% block breadcrumb_content %} | ||
<li>{{ h.nav_link(_('Organizations'), controller='organization', action='index') }}</li> | ||
<li class="active">{% block breadcrumb_link %}{{ h.nav_link(_('Add a Organization'), controller='organization', action='new') }}{% endblock %}</li> | ||
{% endblock %} | ||
|
||
{% block primary_content %} | ||
<div class="module"> | ||
<div class="module-content"> | ||
<h1 class="page-heading">{% block page_heading %}{{ _('Organization Form') }}{% endblock %}</h1> | ||
{% block form %} | ||
{{ c.form | safe }} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
<div class="module module-narrow module-shallow"> | ||
<h2 class="module-heading"><i class="icon-large icon-info-sign"></i> {{ _('What are Organizations?') }}</h2> | ||
<div class="module-content"> | ||
{% trans %} | ||
<p>good question<P/> | ||
{% endtrans %} | ||
</div> | ||
{% block primary_content_inner %} | ||
<div class="module-content"> | ||
<h1 class="page-heading">{% block page_heading %}{{ _('Organization Form') }}{% endblock %}</h1> | ||
{% block form %} | ||
{{ c.form | safe }} | ||
{% endblock %} | ||
</div> | ||
{% endblock %} |
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,52 @@ | ||
{% extends "page.html" %} | ||
|
||
{% set organization = c.group_dict %} | ||
|
||
{% block bodytag %}{{ super() }} class="editing"{% endblock %} | ||
|
||
{% block subtitle %}{{ organization.display_name }}{% endblock %} | ||
|
||
{% block breadcrumb_content %} | ||
<li>{% link_for _('Organizations'), controller='organization', action='index' %}</li> | ||
{% block breadcrumb_content_inner %} | ||
<li>{% link_for organization.display_name|truncate(35), controller='organization', action='read', id=organization.name %}</li> | ||
<li class="active">{% link_for _('Edit Organization'), controller='organization', action='edit', id=organization.name %}</li> | ||
{% endblock %} | ||
{% endblock %} | ||
|
||
{% block actions_content %} | ||
{% if h.check_access('organization_update', {'id': c.group.id}) %} | ||
<li><a href="{% url_for controller='organization', action='read', id=organization.name %}" class="btn">{{ _('View organization') }} <i class="icon-arrow-right"></i></a></li> | ||
{% endif %} | ||
{# <li>{% link_for _('History'), controller='organization', action='history', id=organization.name, class_='btn', icon='undo' %}</li> #} | ||
{% endblock %} | ||
|
||
{% block primary_content %} | ||
<section class="module"> | ||
{% block primary_content_header %} | ||
<header class="module-content page-header"> | ||
<ul class="nav nav-tabs"> | ||
<li{% if c.action == 'edit' %} class="active"{% endif %}> | ||
{% link_for _('Info'), controller='organization', action='edit', id=organization.name, icon='info-sign' %} | ||
</li> | ||
{% if h.check_access('organization_member_create', {'id': organization.id}) %} | ||
<li{% if c.action == 'members' or c.action =='member_new' %} class="active"{% endif %}> | ||
{% link_for _('Members'), controller='organization', action='members', id=organization.name, icon='group' %} | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</header> | ||
{% endblock %} | ||
{% block primary_content_inner %} | ||
{% endblock %} | ||
</section> | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
{% snippet 'snippets/organization.html', organization=organization %} | ||
{% endblock %} | ||
|
||
{% block links %} | ||
{{ super() }} | ||
{% include "organization/snippets/feeds.html" %} | ||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{# | ||
Displays a sidebard module with information for given organization | ||
|
||
org - The organization dict. | ||
|
||
Example: | ||
|
||
{% snippet "organization/snippets/info.html", org=org %} | ||
|
||
#} | ||
{% if organization and h.check_access('organization_update', {'id':organization.id }) %} | ||
<section class="module module-narrow package-info"> | ||
<h2 class="module-heading"><i class="icon-sitemap"></i> {{ _("Edit Organization") }}</h2> | ||
<ul class="unstyled nav nav-simple"> | ||
<li class="nav-item{% if action == 'edit' %} active{% endif %}"> | ||
{% link_for _("Edit Organization"), controller='organization', action='edit', id=organization.name %} | ||
</li> | ||
</ul> | ||
</section> | ||
{% endif %} |
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