in www/secretary/workbench/views/forms/icla2.js.rb [9:107]
def render
_h4 'Additional ICLA'
_form.form do
_h5 'Search'
_table.form do
_tr do
_input value: @search
end
end
end
if @search.length >= 3 and not @iclas.empty?
search = @search.downcase().split(' ')
_ul.icla_search do
@iclas.each do |icla|
if
search.all? {|part|
icla.id.include? part or
icla.name.downcase().include? part or
icla.fullname.downcase().include? part
}
then
_li do
_input type: 'radio', name: 'icla',
onClick: lambda {
window.parent.frames.content.location.href =
location.toString()[/.*\//] + @@selected
@icla = icla
}
_a icla.name, href: "../../icla/#{icla.filename}",
target: 'content'
end
end
end
end
end
_form method: 'post', action: '../../tasklist/icla2', target: 'content' do
_input type: 'hidden', name: 'message'
_input type: 'hidden', name: 'selected'
_input type: 'hidden', name: 'signature', value: @@signature
_input type: 'hidden', name: 'filename', value: @icla && @icla.filename
_input type: 'hidden', name: 'id', value: @icla && @icla.id
_input type: 'hidden', name: 'oldemail', value: @icla && @icla.email
_h5 'Current values'
_table.form do
_tr do
_th 'Full Name'
_td @icla && @icla.fullname
end
_tr do
_th 'Public Name'
_td @icla && @icla.name
end
_tr do
_th 'E-mail'
_td @icla && @icla.email
end
_tr do
_th 'File Name'
_td @icla && @icla.filename
end
_tr do
_th 'AvailId'
_td @icla && @icla.id
end
end
_h5 'Updated values'
_table.form do
_tr do
_th 'Public Name'
_td do
_input name: 'pubname', value: @pubname, required: true,
disabled: @filed, onFocus: lambda {@pubname ||= @realname}
end
end
_tr do
_th 'E-mail'
_td do
_input name: 'email', value: @email, required: true, type: 'email',
disabled: @filed
end
end
end
_input.btn.btn_primary value: 'File', type: 'submit', ref: 'file',
disabled: @submitted || (not @icla) || (not @icla.filename)
end
end