Added new switch to header.

This commit is contained in:
Martin Edenhofer 2015-12-15 01:29:05 +01:00
parent 18597b7e2a
commit 8b7c787c42
2 changed files with 7 additions and 8 deletions

View file

@ -27,6 +27,9 @@ class App.ChannelForm extends App.Controller
@updateParams() @updateParams()
release: =>
App.Setting.unsubscribe(@subscribeId)
updateParams: -> updateParams: ->
quote = (string) -> quote = (string) ->
string = string.replace('\'', '\\\'') string = string.replace('\'', '\\\'')

View file

@ -1,19 +1,15 @@
<div class="page-header"> <div class="page-header">
<div class="page-header-title"> <div class="page-header-title">
<div class="zammad-switch zammad-switch--small js-formSetting">
<input name="form_ticket_create" type="checkbox" id="setting-form" <% if @formSetting: %>checked<% end %>>
<label for="setting-form"></label>
</div>
<h1><%- @T('Form') %> <small></small></h1> <h1><%- @T('Form') %> <small></small></h1>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<p><%- @T('With form you can add a formular to your web page witch directly generates a Ticket for you.') %></p> <p><%- @T('With form you can add a formular to your web page witch directly generates a Ticket for you.') %></p>
<h2><%- @T('Enable') %>/<%- @T('Disable') %></h2>
<form>
<div class="zammad-switch js-formSetting">
<input name="form_ticket_create" type="checkbox" id="setting-form" <% if @formSetting: %>checked<% end %>>
<label for="setting-form"></label>
</div>
</form>
<h2><%- @T('Designer') %></h2> <h2><%- @T('Designer') %></h2>
<form class="js-params"> <form class="js-params">