<% if !component['options'].empty? && !plugin_has_required_file_option?( component['options'] )%>
Options
<% component['options'].each do |opt| %>

<%=escape(opt['desc'])%> <% if opt['required'] %> * <%end%> disabled="disabled" type="file" value="<%=opt['default']%>" <% elsif opt['type'] == 'bool' %> type="checkbox" <% if session_options[component['plug_name']] && !(val = session_options[component['plug_name']][opt['name']]).nil? %> <%=val ? 'checked="checked"' : '' %> <% elsif opt['default'] %> checked="checked" <%end%> <% else %> value="<%=( session_options[component['plug_name']] && (val = session_options[component['plug_name']][opt['name']]) ) ? val : opt['default']%>" <%end%> />

<%end%> <%end%>