Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add select2 css/js to process settings (#169) #171

Merged
merged 1 commit into from
Sep 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions phoenix/settings/templates/settings/processes.pt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<metal:block use-macro="main_template">

<div metal:fill-slot="css">
<link rel="stylesheet" href="${request.static_path('deform:static/select2/select2.css')}"/>
</div>

<div metal:fill-slot="javascript">
<script src="${request.static_path('deform:static/select2/select2.js')}"
type="text/javascript"></script>
</div>

<div metal:fill-slot="content">
<div class="container">

<div class="panel panel-default">
<div class="panel-heading">
<span class="panel-title">
<a href="${request.route_path('settings')}">
<i class="fa fa-fw fa-chevron-left" ></i>
</a>
${title}
</span>
</div>
<div class="panel-body">
<tal:form replace="structure form">The form will render here</tal:form>
</div>
</div>

</div>
</div>

</metal:block>
2 changes: 1 addition & 1 deletion phoenix/settings/views/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def appstruct(self):
appstruct = self.collection.find_one() or {}
return skip_csrf_token(appstruct)

@view_config(route_name='settings_processes', renderer='../templates/settings/default.pt')
@view_config(route_name='settings_processes', renderer='../templates/settings/processes.pt')
def view(self):
form = self.generate_form()
if 'submit' in self.request.POST:
Expand Down