| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- extends ../layout
- block content
- include ../general/sidebar
- .content-with-navigation-sidebar
- .box
- .row-fluid
- .span12
- .page-header
- h1 Settings
- .messageArea
- .tabbable
- ul.nav.nav-tabs
- li.active
- a(href='#personalSettings', data-toggle="tab") Personal
- li
- a(href='#editorSettings', data-toggle="tab") Editor
- li
- a(href='#passwordReset', data-toggle="tab") Password
- li
- a(href='#newsletter', data-toggle="tab") Newsletter
- li
- a(href='#dropboxSettings', data-toggle="tab") Dropbox
- span.label.label-warning beta
- li
- a(href='#deleteAccount', data-toggle="tab") Delete Account
-
- form#userSettings.tab-content.form-horizontal
- input(type="hidden", name="_csrf", value=csrfToken)
- .tab-pane#personalSettings.active
- .control-group
- label(for='firstName').control-label Email
- .controls
- input#emailAddress(type='email', name='email', value=user.email)
- .control-group
- label(for='firstName').control-label First Name
- .controls
- input#firstName(type='text', name='first_name', value=user.first_name)
- .control-group
- label(for='lastName').control-label Last Name
- .controls
- input#lastName(type='text', name='last_name', value=user.last_name)
- .form-actions
- button.btn.btn-primary.large(type='submit') Update
- .tab-pane#dropboxSettings
- .alert.alert-info
- a(href='/help/kb/dropbox-2') Read how dropbox works
- - if(!userHasDropboxFeature)
- .alert.alert-info Dropbox sync is a premium feature
- a.btn.btn-info(href='/user/subscription/plans') Upgrade
- - else if(userIsRegisteredWithDropbox)
- .alert.alert-success Account is linked!
- row
- a(href='/dropbox/unlink').btn Unlink Dropbox
- - else
- a.btn.btn-info(href='/dropbox/beginAuth') Link to dropbox
- .tab-pane#editorSettings
- .control-group
- label(for='theme').control-label Theme
- a(href='/themes') (preview)
- .controls
- select(name='theme')#theme
- each theme in themes
- if(theme.name == user.ace.theme)
- option(value=theme.name, selected='selected')= theme.name
- else
- option(value=theme.name)= theme.name
- .control-group
- label(for='mode').control-label Key Binding
- .controls
- select(name='mode')#mode
- each mode in editors
- if(mode == user.ace.mode)
- option(value=mode, selected='selected')= mode
- else
- option(value=mode)= mode
- .control-group
- label(for='fontSize').control-label Font Size
- .controls
- select(name='fontSize')#fontSize
- each fontSize in fontSizes
- if(fontSize == user.ace.fontSize)
- option(value=fontSize, selected='selected')= fontSize
- else
- option(value=fontSize)= fontSize
- .control-group
- label(for='autoComplete').control-label
- | Auto complete
- .controls
- if (user.ace.autoComplete)
- label.radio.inline
- input(type='radio', name='autoComplete', value='true', checked)
- | On
- label.radio.inline
- input(type='radio', name='autoComplete', value='false')
- | Off
- else
- label.radio.inline
- input(type='radio', name='autoComplete', value='true')
- | On
- label.radio.inline
- input(type='radio', name='autoComplete', value='false', checked)
- | Off
- .control-group
- label(for='spellCheck').control-label
- | Default Spell check language
- .controls
- select(name="spellCheckLanguage")
- option(value="",selected=(user.ace.spellCheckLanguage == "")) Off
- optgroup(label="Language")
- for language in languages
- option(
- value=language.code,
- selected=(language.code == user.ace.spellCheckLanguage)
- )= language.name
- .control-group
- label(for="pdfViewer").control-label
- | PDF Viewer
- .controls
- if (user.ace.pdfViewer == "native")
- label.radio.inline
- input(type='radio', name='pdfViewer', value='native', checked)
- | Native (Best image quality)
- br
- label.radio.inline
- input(type='radio', name='pdfViewer', value='pdfjs')
- | Built in (Pdf page stays the same after recompile)
- else
- label.radio.inline
- input(type='radio', name='pdfViewer', value='native')
- | Native (Best image quality)
- br
- label.radio.inline
- input(type='radio', name='pdfViewer', value='pdfjs', checked)
- | Built in (Pdf page stays the same after recompile)
-
- .form-actions
- button.btn.btn-primary.large(type='submit') Update
- .tab-pane#passwordReset
- a#changePassword.btn Change Password
- .tab-pane#deleteAccount
- a#deleteUserAccount.btn.btn-danger(data-csrf=csrfToken) Delete your account
- .tab-pane#newsletter
- p Every few months we send a news letter out summarizing the new features available, if you would prefer to not receive this email then you are free to unsubscribe below at any time
- a#unsubscribeFromNewsletter.btn.btn-danger(data-csrf=csrfToken) Unsubscribe
- include ../general/small-footer
- #changePasswordModal(style='display: none')
- .modal
- form#changePasswordForm(method="post", action="/user/password/update")
- .modal-header
- h3 Change Password
- .modal-body
- input(type="hidden", name="_csrf", value=csrfToken)
- .clearfix
- label(for='xlinput.inputmodal') Current Password
- .input.inputmodal
- input.inputmodal.span5#currentPassword(type='password', name='currentPassword', placeholder='*********')
- .clearfix
- label(for='xlinput.inputmodal') New Password
- .input.inputmodal
- input.inputmodal.span5#newPassword1(type='password', name='newPassword1', placeholder='************')
- .clearfix
- label(for='xlinput.inputmodal') New Password
- .input.inputmodal
- input.inputmodal.span5#newPassword2(type='password', name='newPassword2', placeholder='************')
- .modal-footer
- button(type="submit").btn.btn-primary#confirmPasswordChange Change
- button.btn.cancel Cancel
|