render

in www/project/icla/views/pages/discuss.js.rb [42:145]


  def render
    _p %{
      This form allows PMC and PPMC members to
      discuss contributors to achieve consensus.
    }
    if @phase == 'discuss'
      _b 'Project: ' + @pmc
      _p
      _b 'Contributor: ' + @iclaname + ' (' + @iclaemail + ')'
      _p
      _b 'Proposed by: ' + @proposer
      _p
      _p 'Subject: ' + @subject
      _p
      
      
      
      _div.form_group do
        _label 'Comment from ' + @member + ' (required)', :for => 'discussBody'
        _textarea.form_control rows: 4,
        required: true, placeholder: 'new comment',
        id: 'discussBody', value: @discussBody,
        onChange: self.setDiscussBody
      end
      @comments.each {|c|
        _b 'From: ' + c.member + ' Date: ' + c.timestamp
        _p c.comment
      }
      
      
      

      _p do
        _button.btn.btn_primary 'Submit comment and continue to discuss',
        disabled: @disabled,
        onClick: self.submitComment
        _b ' or '
        _button.btn.btn_primary 'Submit comment and start voting',
        disabled: @disabled,
        onClick: self.startVoting
        _b ' or '
        _button.btn.btn_primary 'Submit comment and invite contributor to submit ICLA',
        disabled: @disabled,
        onClick: self.invite
      end
    end
    if @debug
      _p 'token: ' + @token.to_s
      _p 'comment: ' + @discussBody.inspect
      _p 'progress: ' + @progress.inspect
    end

    
    if @alert
      _div.alert.alert_danger do
        _b 'Error: '
        _span @alert
      end
    end

    
    
    
    _div.modal.fade.invitation_preview! do
      _div.modal_dialog do
        _div.modal_content do
          _div.modal_header do
            _button.close "\u00d7", type: 'button', data_dismiss: 'modal'
            _h4 'Preview Invitation Email'
          end

          _div.modal_body do
            
            _div do
              _b 'From: '
              _span @memberEmail
            end
            _div do
              _b 'To: '
              _span "#{@iclaname} <#{@iclaemail}>"
            end
            _div do
              _b 'cc: '
              _span @pmcEmail
            end

            
            _div.form_group do
              _label :for => 'invitation'
              _textarea.form_control.invitation! value: @invitation, rows: 12,
                onChange: self.setInvitation
            end
          end

          _div.modal_footer do
            _button.btn.btn_default 'Cancel', data_dismiss: 'modal'
            _button.btn.btn_primary 'Mock Send', onClick: self.mockSend
          end
        end
      end
    end

  end