Skip to content

Commit

Permalink
add select2 css/js to process settings (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 21, 2018
1 parent c008db5 commit 2c9d2fb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
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

0 comments on commit 2c9d2fb

Please sign in to comment.