- var val = ( conf && conf.val ) ? conf.val : ''
- var code = ( conf && conf.marketCode ) ? conf.marketCode : ''
- var status = sessionStorage.getItem( 'current_status' )

#edit-budget
  .content
    if val.name
      .ad-title
        span.tit 广告类型
        span #{code[val.objective]}
      .ad-name
        span.tit 广告系列名称
        input( type="text" id="name" value="#{val.name}" maxLength="50" )
    if ( val.guaranteedDelivery !== 1 )
      .ad-budget
        span.tit 广告系列预算
        span
          label( for="any" )
            input( type="radio" name="budget" id="any" checked= parseFloat( val.lifetimeBudget ) === 0 )
            em 不限
          if ( status === 'ad' )
            label( for="custom" )
              input( type="radio" name="budget" id="custom"  checked= parseFloat( val.lifetimeBudget ) > 0 )
              em 自定义
          else if ( !conf.val.isDisabled )
            label( for="custom" )
              input( type="radio" name="budget" id="custom"  checked= parseFloat( val.lifetimeBudget ) > 0 )
              em 自定义
          input.budget( type="number" placeholder="输入预算" value="#{val.lifetimeBudget || ''}" )

  .submit-cancel
    a.submit( href="#" ) 确定
    a.cancel( href="#" ) 取消
