Created
October 23, 2012 13:13
-
-
Save lonelydimple/3938669 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| -.row | |
| - %form.#edit-template.form-horizontal | |
| - #initial_term.span4 | |
| - %fieldset | |
| - %legend Term Length | |
| - .control-group.input | |
| - %label.control-label Renewal term length | |
| - .controls | |
| - %select.input-mini.span-2{name: 'term_length'} | |
| - - for term_length in [1..18] | |
| - %option= term_length | |
| - | |
| - .control-group.input | |
| - .controls | |
| - %label.checkbox | |
| - %input{name: 'can_prepay', type: 'checkbox'} | |
| - Allow prepay | |
| - | |
| - - if @model.get('can_prepay') | |
| - .control-group.input | |
| - %label.control-label Prepaid years allowed | |
| - .controls | |
| - %select.input-mini.span-2{name: 'prepay_years_allowed'} | |
| - %option | |
| - - for duration in [1..4] | |
| - %option= duration | |
| - .clearfloat | |
| - %fieldset | |
| - %legend Expiration | |
| - .control-group.input | |
| - .controls | |
| - %label.radio | |
| - Full-year terms | |
| - %input.radio{type: "radio", name: "expiration_directive_main", value: 'none'} | |
| - .clearfloat | |
| - %label.radio | |
| - MM/DD | |
| - %input.radio{type: "radio", name: "expiration_directive_main", value: 'month_day'} | |
| - .clearfloat | |
| - %label.radio | |
| - Other | |
| - %input.radio{type: "radio", name: "expiration_directive_main", value: 'other'} | |
| - | |
| - - if @model.get("expiration_directive_main") == 'month_day' | |
| - .control-group.input | |
| - %label.control-label Day of year | |
| - .controls | |
| - %input.input-mini{placeholder: "12/31", name: 'expiration_day_of_year'} | |
| - | |
| - - if @model.get('expiration_directive_main') == 'other' | |
| - .control-group.input | |
| - %label.control-label Expiration Rule | |
| - .controls | |
| - %select{name: "expiration_directive_other"} | |
| - %option{value: 'beginning_of_current_month'} Beginning of month | |
| - %option{value: 'beginning_of_next_month'} Beginning of next month | |
| - %option{value: 'end_of_current_month'} End of month | |
| - %option{value: 'end_of_previous_month'} End of previous month | |
| - | |
| - - if @model.get('expiration_directive_main') == 'other' || @model.get('expiration_directive_main') == 'month_day' | |
| - .control-group.input | |
| - %label.control-label Year Rules | |
| - .controls | |
| - %select.input-medium{name: "expiration_year_directive"} | |
| - %option{value: ""} None | |
| - %option{value: "odd"} Expires in odd years | |
| - %option{value: "even"} Expires in even years | |
| - | |
| - .clearfloat | |
| - %p | |
| - .submit_button | |
| - %input#submit.button.medium{type: 'submit', value: 'Save'} | |
| - | |
| - .span1 | |
| - .clearfloat | |
| - .well.span3 | |
| - %fieldset | |
| - %legend Sample expiration dates | |
| - .control-group.input | |
| - %label.control-label Given Effective Date | |
| - .controls | |
| - %input.input-small{name: 'effective_date'} | |
| - %h4 Expiration date options: | |
| - %ul | |
| - - for term_length in @model.term_length_options() | |
| - %li= term_length.expiration_date.toString('M/d/yyyy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment